Skip to content

Commit

Permalink
Update lib/internal/test_runner/utils.js
Browse files Browse the repository at this point in the history
Co-authored-by: Jordan Harband <ljharb@gmail.com>
  • Loading branch information
MoLow and ljharb authored Sep 14, 2023
1 parent 4586ecb commit 81853a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/internal/test_runner/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ async function setupTestReporters(rootTest) {
for (let i = 0; i < reportersMap.length; i++) {
const { reporter, destination } = reportersMap[i];
compose(rootTest.reporter, reporter).on('error', (err) => {
process.exitCode = 1;
process.exitCode ||= 1;
console.error(err);
}).pipe(destination);
}
Expand Down

0 comments on commit 81853a5

Please sign in to comment.