Skip to content

Commit

Permalink
fix: correct exit code on fail
Browse files Browse the repository at this point in the history
  • Loading branch information
robertsLando committed Oct 24, 2024
1 parent 5453c83 commit f46c16c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,10 @@ async function run() {
console.log(pc.red(output));
}
console.log(`Time: ${msToHumanDuration(end - start)}`);

if (failed.length > 0) {
process.exit(2);
}
}

run();

0 comments on commit f46c16c

Please sign in to comment.