Skip to content

Commit 8d89cae

Browse files
committed
fix: use fileURLToPath for Windows-compatible chdir in vitest setup
1 parent c7a136f commit 8d89cae

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
import { fileURLToPath } from 'node:url';
2+
13
import { beforeAll } from 'vitest';
24

35
beforeAll(() => {
4-
globalThis.process.chdir(new URL('.', import.meta.url).pathname);
6+
process.chdir(fileURLToPath(new URL('.', import.meta.url)));
57
});

0 commit comments

Comments
 (0)