Skip to content

Commit

Permalink
Clear tmp directories gracefully.
Browse files Browse the repository at this point in the history
  • Loading branch information
rwjblue committed Sep 22, 2019
1 parent 79c71f1 commit b62ee69
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/cli-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ QUnit.module('codemod-cli', function(hooks) {
});

hooks.afterEach(async function() {
await codemodProject.dispose();
await fs.remove(codemodProject.path());

process.chdir(ROOT);
});
Expand Down Expand Up @@ -311,7 +311,7 @@ QUnit.module('codemod-cli', function(hooks) {
});

hooks.afterEach(function() {
return userProject.dispose();
return fs.remove(userProject.path());
});

QUnit.test('works with globs', async function(assert) {
Expand Down Expand Up @@ -345,7 +345,7 @@ QUnit.module('codemod-cli', function(hooks) {
});

hooks.afterEach(function() {
return userProject.dispose();
return fs.remove(userProject.path());
});

QUnit.test('runs transform', async function(assert) {
Expand Down

0 comments on commit b62ee69

Please sign in to comment.