mirror of
https://github.com/nuxt/nuxt.git
synced 2025-03-20 00:11:18 +00:00
test: filter out dev server logs 🙈
This commit is contained in:
parent
ad306f4726
commit
ee040eea3d
@ -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('<Suspense>'))
|
||||
expect(hydrationLogs.map(log => log.text)).toEqual([])
|
||||
|
||||
await page.close()
|
||||
|
Loading…
Reference in New Issue
Block a user