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 7, 2022
1 parent 6ea57eb commit e3ff6f1
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 e3ff6f1

Please sign in to comment.