Skip to content

Commit

Permalink
fix mocha exitCode issue nightwatchjs#3001
Browse files Browse the repository at this point in the history
  • Loading branch information
swrdfish committed Feb 3, 2022
1 parent fd4ffc6 commit 8fa49fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/runner/process-listener.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ module.exports = class {
}

exit() {
this.process.exit && this.process.exit(this.exitCode);
this.process.exitCode = this.exitCode;

return this;
}
Expand Down

0 comments on commit 8fa49fd

Please sign in to comment.