Skip to content

Commit 240870e

Browse files
committed
test: ignore HMR disabled console errors
The e2e test utility now ignores browser console errors containing the string "Hot Module Replacement is disabled". This prevents tests from failing when running with HMR disabled.
1 parent 742a874 commit 240870e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/e2e/utils/puppeteer.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,10 @@ export async function executeBrowserTest(options: BrowserTestOptions = {}) {
5353
}
5454
});
5555
page.on('pageerror', (err) => {
56-
errors.push(`${err}`);
56+
const error = `${err}`;
57+
if (!error.includes('Hot Module Replacement is disabled')) {
58+
errors.push(error);
59+
}
5760
});
5861

5962
await page.goto(url);

0 commit comments

Comments
 (0)