We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 446e5ef commit 974a472Copy full SHA for 974a472
packages/extension/src/worker/index.ts
@@ -25,7 +25,7 @@ emitter.on('message', async function onMessage(message: any) {
25
pathToFileURL(normalizeDriveLetter(data.meta.vitestNodePath)).toString()
26
) as typeof import('vitest/node')
27
28
- const isOld = Number(vitestModule.version[0]) < 4
+ const isOld = !vitestModule.version || (Number(vitestModule.version[0]) < 4)
29
const workerName = isOld ? './workerLegacy.js' : './workerNew.js'
30
const workerPath = pathToFileURL(join(__dirname, workerName))
31
const initModule = await import(workerPath.toString())
0 commit comments