Skip to content
This repository has been archived by the owner on May 17, 2019. It is now read-only.

Commit

Permalink
Ensure test --watch continues watching after test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
lhorie authored and fusion-bot[bot] committed Dec 8, 2017
1 parent 0289aea commit 2c0f6c7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion commands/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ exports.run = async function({dir = '.', cover, watch, skipBuild}) {
await runTests();

if (watch) {
compiler.on('done', runTests);
compiler.on('done', () => {
runTests().catch(() => {}); // ignore error, since test output is already actionable enough
});
}

return {
Expand Down

0 comments on commit 2c0f6c7

Please sign in to comment.