mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 13:45:18 +00:00
fix(test-utils)!: use vitest/node
subpath export (#8815)
This commit is contained in:
parent
2bc3c18dfa
commit
46cf2566f1
@ -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 */,
|
||||||
|
Loading…
Reference in New Issue
Block a user