From e22ed051e2ddffae7e4802e75881348ef565e2e5 Mon Sep 17 00:00:00 2001 From: NullVoxPopuli <199018+NullVoxPopuli@users.noreply.github.com> Date: Wed, 13 Nov 2024 17:47:48 -0500 Subject: [PATCH] Make tests fail when tests fail --- bin/run-tests.mjs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bin/run-tests.mjs b/bin/run-tests.mjs index e079aa83e9..b5f85cb3eb 100644 --- a/bin/run-tests.mjs +++ b/bin/run-tests.mjs @@ -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`) {