Skip to content
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.

Commit

Permalink
Test for presence of data-marko-error="true”
Browse files Browse the repository at this point in the history
  • Loading branch information
zarathustra323 committed Feb 23, 2023
1 parent 2096c9b commit b3bf867
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/marko-web/integration/test-website-boot.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b3bf867

Please sign in to comment.