test: filter out dev server logs 🙈

This commit is contained in:
Daniel Roe 2025-03-01 19:59:26 +00:00
parent 50d71bdccd
commit 2ba333928f
No known key found for this signature in database
GPG Key ID: CBC814C393D93268

View File

@ -2930,7 +2930,7 @@ describe('lazy import components', () => {
const hydratedText = 'This is mounted.' const hydratedText = 'This is mounted.'
await page.locator('[data-testid=hydrate-after]', { hasText: hydratedText }).waitFor({ state: 'visible' }) 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('<Suspense>'))
expect(hydrationLogs.map(log => log.text)).toEqual([]) expect(hydrationLogs.map(log => log.text)).toEqual([])
await page.close() await page.close()