Skip to content

Commit 6db6791

Browse files
committed
feat: add setup file to reset working directory after each test
1 parent 344876f commit 6db6791

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎tests/helpers/setup.ts‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { afterEach } from "vitest";
2+
3+
const originalCwd = process.cwd();
4+
5+
afterEach(() => {
6+
process.chdir(originalCwd);
7+
});

0 commit comments

Comments
 (0)