Skip to content

Commit

Permalink
Make tests fail when tests fail (#1659)
Browse files Browse the repository at this point in the history
  • Loading branch information
NullVoxPopuli authored Nov 13, 2024
1 parent 6b8c02f commit 228d484
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions bin/run-tests.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,13 @@ try {
const location = msg.location();
const text = msg.text();

if (text.includes('# fail')) {
if (!text.includes('# fail 0')) {
console.error(text);
process.exit(1);
}
}

if (location.url?.includes(`/qunit.js`)) {
console.log(text);
} else if (text === `[HARNESS] done`) {
Expand Down

0 comments on commit 228d484

Please sign in to comment.