fix(test-utils)!: use vitest/node subpath export (#8815)

This commit is contained in:
Daniel Roe 2022-11-10 10:27:56 +01:00 committed by GitHub
parent 2bc3c18dfa
commit 46cf2566f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,8 +21,7 @@ export async function runTests (opts: RunTestOptions) {
process.env.NUXT_TEST_DEV = 'true' process.env.NUXT_TEST_DEV = 'true'
} }
// @ts-ignore missing types const { startVitest } = await import('vitest/node')
const { startVitest } = await import('vitest/dist/node.mjs') as typeof import('vitest/dist/node')
const succeeded = await startVitest( const succeeded = await startVitest(
'test', 'test',
[] /* argv */, [] /* argv */,