Skip to content

Commit 4afbcff

Browse files
committed
Reset working directory after running tests
1 parent 9443066 commit 4afbcff

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/cli/tsconfig.spec.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ beforeEach(async () => {
1010
process.chdir(temp);
1111
});
1212

13+
const originalWorkingDirectory = process.cwd();
1314
afterEach(async () => {
15+
process.chdir(originalWorkingDirectory);
1416
// TODO [node@12]: `rmdir` has `recursive` option
1517
await fs.remove(temp);
1618
});

0 commit comments

Comments
 (0)