From ee040eea3dce0a98c3fb6a5f9675d95c10c88b4e Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Sat, 1 Mar 2025 19:59:26 +0000 Subject: [PATCH] =?UTF-8?q?test:=20filter=20out=20dev=20server=20logs=20?= =?UTF-8?q?=F0=9F=99=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/basic.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/basic.test.ts b/test/basic.test.ts index e826bca631..8ad55f6006 100644 --- a/test/basic.test.ts +++ b/test/basic.test.ts @@ -2933,7 +2933,7 @@ describe('lazy import components', () => { const hydratedText = 'This is mounted.' await page.locator('[data-testid=hydrate-after]', { hasText: hydratedText }).waitFor({ state: 'visible' }) - const hydrationLogs = consoleLogs.filter(log => log.type !== 'warn') + const hydrationLogs = consoleLogs.filter(log => !log.text.includes('[vite]') && !log.text.includes('')) expect(hydrationLogs.map(log => log.text)).toEqual([]) await page.close()