From 513576b487b69d546edb838f3b0770e0cac43b30 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sun, 15 Feb 2026 01:37:38 +0000 Subject: [PATCH] fix(test): disable safeBins expectations on Windows --- src/infra/exec-approvals.test.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/infra/exec-approvals.test.ts b/src/infra/exec-approvals.test.ts index 917e12b9234..8251b6ca99f 100644 --- a/src/infra/exec-approvals.test.ts +++ b/src/infra/exec-approvals.test.ts @@ -459,6 +459,11 @@ describe("exec approvals allowlist evaluation", () => { safeBins: normalizeSafeBins(["jq"]), cwd: "/tmp", }); + // Safe bins are disabled on Windows (PowerShell parsing/expansion differences). + if (process.platform === "win32") { + expect(result.allowlistSatisfied).toBe(false); + return; + } expect(result.allowlistSatisfied).toBe(true); expect(result.allowlistMatches).toEqual([]); }); @@ -651,6 +656,11 @@ describe("exec approvals node host allowlist check", () => { safeBins: normalizeSafeBins(["jq"]), cwd: "/tmp", }); + // Safe bins are disabled on Windows (PowerShell parsing/expansion differences). + if (process.platform === "win32") { + expect(safe).toBe(false); + return; + } expect(safe).toBe(true); }); });