MCPcopy
hub / github.com/nuxt/nuxt / expectNoErrorsOrWarnings

Function expectNoErrorsOrWarnings

test/utils.ts:66–72  ·  view source on GitHub ↗
(consoleLogs: Array<{ type: string, text: string }>)

Source from the content-addressed store, hash-verified

64}
65
66export function expectNoErrorsOrWarnings (consoleLogs: Array<{ type: string, text: string }>) {
67 const consoleLogErrors = consoleLogs.filter(i => i.type === 'error')
68 const consoleLogWarnings = consoleLogs.filter(i => i.type === 'warning')
69
70 expect(consoleLogErrors).toEqual([])
71 expect(consoleLogWarnings).toEqual([])
72}
73
74const BASE_TIMEOUT = isCI ? 6_000 : 3_000
75export async function gotoPath (page: Page, path: string, retries = 0) {

Callers 1

expectNoClientErrorsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…