Skip to content

Commit

Permalink
fix: import useRouter explicitly in entry
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Dec 2, 2023
1 parent bbd67b2 commit 129d833
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/runtime/entry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 129d833

Please sign in to comment.