Skip to content

Commit 6ca9389

Browse files
Merge pull request #20878 from timvandermeij/exit-code
Use a non-zero exit code if the tests failed
2 parents f49877a + c798f88 commit 6ca9389

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

test/test.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -743,6 +743,7 @@ function onAllSessionsClosedAfterTests(name) {
743743
}
744744
var runtime = (Date.now() - startTime) / 1000;
745745
console.log(name + " tests runtime was " + runtime.toFixed(1) + " seconds");
746+
process.exit(numErrors > 0 ? 1 : 0);
746747
};
747748
}
748749

0 commit comments

Comments
 (0)