MCPcopy
hub / github.com/nuxt/nuxt / completeNavigation

Function completeNavigation

test/nuxt/router.options.test.ts:22–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20 const pageLoadingEnd = vi.fn()
21
22 async function completeNavigation () {
23 await flushPromises()
24
25 // Ensure everything is settled
26 await expect.poll(() => pageTransitionFinish.mock.calls.length).toBeGreaterThan(0)
27
28 expect(pageTransitionFinish).toHaveBeenCalled()
29 expect(pageLoadingEnd).toHaveBeenCalled()
30 }
31
32 beforeAll(async () => {
33 router = useRouter()

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…