Skip to content

Commit

Permalink
try to delete the swc compiler after testing
Browse files Browse the repository at this point in the history
  • Loading branch information
phated committed Apr 7, 2022
1 parent 9cf57f6 commit 95c6599
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,7 @@ describe('interpret.extensions', function() {

process.chdir(path.join(__dirname, fixtureDir));

shell.exec('trash node_modules', { silent: true });
shell.exec('trash package-lock.json', { silent: true });
shell.exec('npm install', { silent: true });
shell.exec('npm ls');

// TODO: log failures
try {
Expand Down Expand Up @@ -190,6 +187,11 @@ describe('interpret.extensions', function() {
};
expect(require(fixture)).toEqual(expected);
}

// Clean up after a successful run; otherwise keep them around for debugging
shell.exec('trash node_modules', { silent: true });
shell.exec('trash package-lock.json', { silent: true });

done();
});
});
Expand Down

0 comments on commit 95c6599

Please sign in to comment.