Skip to content

Commit 228d484

Browse files
Make tests fail when tests fail (#1659)
1 parent 6b8c02f commit 228d484

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

bin/run-tests.mjs

+7
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,13 @@ try {
5858
const location = msg.location();
5959
const text = msg.text();
6060

61+
if (text.includes('# fail')) {
62+
if (!text.includes('# fail 0')) {
63+
console.error(text);
64+
process.exit(1);
65+
}
66+
}
67+
6168
if (location.url?.includes(`/qunit.js`)) {
6269
console.log(text);
6370
} else if (text === `[HARNESS] done`) {

0 commit comments

Comments
 (0)