Skip to content

Commit 95c6599

Browse files
committed
try to delete the swc compiler after testing
1 parent 9cf57f6 commit 95c6599

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Diff for: test/index.js

+5-3
Original file line numberDiff line numberDiff line change
@@ -132,10 +132,7 @@ describe('interpret.extensions', function() {
132132

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

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

140137
// TODO: log failures
141138
try {
@@ -190,6 +187,11 @@ describe('interpret.extensions', function() {
190187
};
191188
expect(require(fixture)).toEqual(expected);
192189
}
190+
191+
// Clean up after a successful run; otherwise keep them around for debugging
192+
shell.exec('trash node_modules', { silent: true });
193+
shell.exec('trash package-lock.json', { silent: true });
194+
193195
done();
194196
});
195197
});

0 commit comments

Comments
 (0)