Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Commit

Permalink
fix(test-utils)!: use vitest/node subpath export (#8815)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe authored Nov 10, 2022
1 parent 2bc3c18 commit 46cf256
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/test-utils/src/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ export async function runTests (opts: RunTestOptions) {
process.env.NUXT_TEST_DEV = 'true'
}

// @ts-ignore missing types
const { startVitest } = await import('vitest/dist/node.mjs') as typeof import('vitest/dist/node')
const { startVitest } = await import('vitest/node')
const succeeded = await startVitest(
'test',
[] /* argv */,
Expand Down

0 comments on commit 46cf256

Please sign in to comment.