From b3bf8677944f38136ddfc31d5063e9dea4628772 Mon Sep 17 00:00:00 2001 From: Jacob Bare Date: Thu, 23 Feb 2023 13:19:36 -0600 Subject: [PATCH] =?UTF-8?q?Test=20for=20presence=20of=20`data-marko-error?= =?UTF-8?q?=3D"true=E2=80=9D`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/marko-web/integration/test-website-boot.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/marko-web/integration/test-website-boot.js b/packages/marko-web/integration/test-website-boot.js index 1ac0154b4..9fc48e60d 100644 --- a/packages/marko-web/integration/test-website-boot.js +++ b/packages/marko-web/integration/test-website-boot.js @@ -13,6 +13,13 @@ setInterval(async () => { if (!found) { error('Unable to find closing HTML tags!'); process.exit(1); + return; + } + // now check for any server errors + if (/data-marko-error="true"/g.test(html)) { + error('An in-page server-side Marko error was encountered!'); + process.exit(1); + return; } log('Integration tests passed!'); process.exit(0);