Skip to content

Commit

Permalink
fix: return number as test exit code
Browse files Browse the repository at this point in the history
PR-URL: #273
  • Loading branch information
tshemsedinov committed Jul 19, 2023
1 parent 3d7f9a0 commit f2519da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/no-reporter-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ if (process.argv[2] === 'child-success') {
test.end();
metatests.runner.instance.on('finish', hasFailures => {
// this test must succeed if test has 'error' - the above end-after-end
process.exit(!hasFailures);
process.exit(hasFailures ? 0 : 1);
});
} else {
test.plan(2);
Expand Down

0 comments on commit f2519da

Please sign in to comment.