Skip to content

Commit c6a3dc8

Browse files
committed
test(process): normalize Windows system path casing
1 parent 0fbd764 commit c6a3dc8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/process/exec.windows.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ describe("Windows command execution", () => {
177177
try {
178178
await withMockedWindowsPlatform(async () => {
179179
await runCommandWithTimeout(["pnpm", "--version"], { timeoutMs: 1_000 });
180-
expect(requireExecaCall(0)[0]).toBe("C:\\Windows\\System32\\cmd.exe");
180+
expect(requireExecaCall(0)[0].toLowerCase()).toBe("c:\\windows\\system32\\cmd.exe");
181181
});
182182
} finally {
183183
if (previousComSpec === undefined) {

0 commit comments

Comments
 (0)