mirror of
https://github.com/getpaseo/paseo.git
synced 2026-07-29 12:01:31 +00:00
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:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user