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 8, 2022
1 parent 67f4263 commit 44b040f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/runner/process-listener.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,10 @@ module.exports = class {
}

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

if (this.process.exit) {
this.process.exitCode = this.exitCode;
}

return this;
}
};

0 comments on commit 44b040f

Please sign in to comment.