Skip to content

Commit f2dddf5

Browse files
committed
Avoid EBUSY errors on windows.
1 parent 97d78c4 commit f2dddf5

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tests/cli-test.js

+6-2
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ QUnit.module('codemod-cli', function(hooks) {
4141
});
4242

4343
hooks.afterEach(async function() {
44-
await codemodProject.dispose();
45-
4644
process.chdir(ROOT);
45+
46+
await codemodProject.dispose();
4747
});
4848

4949
QUnit.module('new', function() {
@@ -311,6 +311,8 @@ QUnit.module('codemod-cli', function(hooks) {
311311
});
312312

313313
hooks.afterEach(function() {
314+
process.chdir(ROOT);
315+
314316
return userProject.dispose();
315317
});
316318

@@ -345,6 +347,8 @@ QUnit.module('codemod-cli', function(hooks) {
345347
});
346348

347349
hooks.afterEach(function() {
350+
process.chdir(ROOT);
351+
348352
return userProject.dispose();
349353
});
350354

0 commit comments

Comments
 (0)