From effcc2c2fdbebdba0a9dc6ba84231566b12f75d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaroslav=20Bene=C5=A1?= Date: Tue, 10 Nov 2026 13:07:48 +0000 Subject: [PATCH] tests/ui: a failure's annotation on GitHub names the line of run.mjs Co-Authored-By: Claude Opus 5.5 --- tests/ui/run.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/ui/run.mjs b/tests/ui/run.mjs index c47af3c..2c434a8 100644 --- a/tests/ui/run.mjs +++ b/tests/ui/run.mjs @@ -989,7 +989,7 @@ for (const { name, fn } of tests) { failed++ console.log(`FAIL ${name}\n ${String(err?.stack || err).split("\n").slice(0, 6).join("\n ")}`) // On GitHub Actions, also as an annotation: readable without the job's log. - if (process.env.GITHUB_ACTIONS) console.log(`::error title=tests/ui::${`${name}: ${String(err?.message || err)}`.replace(/%/g, "%25").replace(/\r/g, "%0D").replace(/\n/g, "%0A").slice(0, 900)}`) + if (process.env.GITHUB_ACTIONS) console.log(`::error title=tests/ui::${`${name}: ${String(err?.message || err)} (${String(err?.stack || "").match(/run\.mjs:\d+/)?.[0] || ""})`.replace(/%/g, "%25").replace(/\r/g, "%0D").replace(/\n/g, "%0A").slice(0, 900)}`) } } await browser.close()