fix(test-utils): update vitest import path with .mjs (#5817)

This commit is contained in:
Bob Olde Hampsink 2022-07-11 17:37:21 +02:00 committed by GitHub
parent b8db1c1ff6
commit 8685bfa9e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,7 +21,7 @@ export async function runTests (opts: RunTestOptions) {
process.env.NUXT_TEST_DEV = 'true' process.env.NUXT_TEST_DEV = 'true'
} }
const { startVitest } = await import('vitest/dist/node.js') const { startVitest } = await import('vitest/dist/node.mjs')
const succeeded = await startVitest( const succeeded = await startVitest(
[] /* argv */, [] /* argv */,
// Vitest options // Vitest options