Skip to content

Commit

Permalink
Fix exception when a file cannot be deleted.
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-zaera authored and jbalsas committed Sep 14, 2017
1 parent 989b66b commit f1ea327
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ beforeEach(() => {
// Delete result files after running each test
afterEach(() => {
pkgFiles.forEach(file => {
fs.unlink(`${pkg.dir}/${file}`);
try {
fs.unlink(`${pkg.dir}/${file}`);
} catch (err) {}
});
});

Expand Down

0 comments on commit f1ea327

Please sign in to comment.