Skip to content

Commit

Permalink
Fix Vitest not starting up due to failed version check on windows vit…
Browse files Browse the repository at this point in the history
  • Loading branch information
ngirardin committed Jan 10, 2023
1 parent 306eda3 commit f981f1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pure/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export async function getVitestVersion(
})
}
else {
child = spawn(vitestCommand.cmd, [...vitestCommand.args, '-v'], {
child = spawn(process.execPath, [vitestCommand.cmd, ...vitestCommand.args, '-v'], {
stdio: ['ignore', 'pipe', 'pipe'],
env: { ...process.env, ...env },
})
Expand Down

0 comments on commit f981f1c

Please sign in to comment.