Skip to content

Commit

Permalink
feat: fix exit
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoffer Åström committed May 24, 2018
1 parent 28b07f8 commit 74c3dcd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/node/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,9 @@ class Runner {
process.on('exit', () => {
process.exit(failures);
});
if (this.argv.exit) {
process.exit();
}
}
onEnd() {
if (this.argv.coverage) {
Expand All @@ -152,9 +155,6 @@ class Runner {
const srcFiles = this.all ? [`${this.argv.src}`] : this.onlySrcFiles;
this.log(mode, testFiles, srcFiles);
}
if (this.argv.exit) {
process.kill(process.pid);
}
}
runTests() {
this.isRunning = true;
Expand Down

0 comments on commit 74c3dcd

Please sign in to comment.