refactor: trim widget reload plumbing

This commit is contained in:
Thomas Camlong committed 2026-08-23 09:00:33 +02:00
1 parent a22fb60647
commit 0073dfe044
7 files changed
+2 -66

No files matched your search

-2
View File
@@ -107,8 +107,6 @@ describe("lazy widget application graph", () => {
const pageErrors: Error[] = [];
const hydrationErrors: string[] = [];
page.on("pageerror", (error) => pageErrors.push(error));
// Production React reports hydration mismatches as minified error codes with
// a react.dev link, so matching the development wording alone never fires.
const hydrationErrorPattern = /hydrat|did not match|react\.dev\/errors\/4(18|2[1235])|react error #4(18|2[1235])/i;
page.on("console", (message) => {
if (message.type() === "error" && hydrationErrorPattern.test(message.text())) {