MCPcopy
hub / github.com/nuxt/nuxt / gotoPath

Function gotoPath

test/utils.ts:75–78  ·  view source on GitHub ↗
(page: Page, path: string, retries = 0)

Source from the content-addressed store, hash-verified

73
74const BASE_TIMEOUT = isCI ? 6_000 : 3_000
75export async function gotoPath (page: Page, path: string, retries = 0) {
76 await vi.waitFor(() => page.goto(url(path), { timeout: BASE_TIMEOUT }), { timeout: BASE_TIMEOUT * retries || BASE_TIMEOUT })
77 await page.waitForFunction(path => window.useNuxtApp?.()._route.fullPath === path && !window.useNuxtApp?.().isHydrating, path)
78}
79
80const revivers = {
81 NuxtError: (data: any) => createError(data),

Callers 2

basic.test.tsFile · 0.90
renderPageFunction · 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…