Skip to content

Commit 0831bad

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 0831bad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/e2e/utils/puppeteer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export async function executeBrowserTest(options: BrowserTestOptions = {}) {
4848
// Capture errors
4949
const errors: string[] = [];
5050
page.on('console', (msg) => {
51-
if (msg.type() === 'error') {
51+
if (msg.type() === 'error' && !msg.text().includes('Hot Module Replacement is disabled')) {
5252
errors.push(msg.text());
5353
}
5454
});

0 commit comments

Comments
 (0)