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.
This commit is contained in:
Mohamed Boudra
2026-04-13 21:01:28 +07:00
parent 0d0a8a791a
commit bdb300b919

View File

@@ -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) => {