diff --git a/src/runtime/entry.ts b/src/runtime/entry.ts index 598e38439..b27a9a893 100644 --- a/src/runtime/entry.ts +++ b/src/runtime/entry.ts @@ -3,6 +3,7 @@ if ( // @ts-expect-error undefined property window.__NUXT_VITEST_ENVIRONMENT__ ) { + const { useRouter } = await import('#app/composables/router') // @ts-expect-error alias to allow us to transform the entrypoint await import('#app/nuxt-vitest-app-entry').then(r => r.default()) // We must manually call `page:finish` to snc route after navigation