From bdb300b919cdbf7d5fbdc30da8ea45d850bc9167 Mon Sep 17 00:00:00 2001 From: Mohamed Boudra Date: Mon, 13 Apr 2026 21:01:28 +0700 Subject: [PATCH] fix: skip Unix-specific which path test on Windows The "warns when which returns non-absolute path" test exercises Unix which behavior. On Windows, where.exe path resolution works differently and the test expectation doesn't apply. --- packages/server/src/utils/executable.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/server/src/utils/executable.test.ts b/packages/server/src/utils/executable.test.ts index 53cd412f9..0d83189f6 100644 --- a/packages/server/src/utils/executable.test.ts +++ b/packages/server/src/utils/executable.test.ts @@ -149,7 +149,7 @@ describe("findExecutable", () => { ); }); - test("warns and returns null when the final which line is not an absolute path", async () => { + test.skipIf(process.platform === "win32")("warns and returns null when the final which line is not an absolute path", async () => { const warnSpy = vi.spyOn(console, "warn").mockImplementation(() => {}); const { findExecutable } = await loadExecutableModule({ execFileImpl: (_command, _args, _options, callback) => {