diff --git a/src/pure/runner.ts b/src/pure/runner.ts index dfa92202..d4498710 100644 --- a/src/pure/runner.ts +++ b/src/pure/runner.ts @@ -69,7 +69,9 @@ export class TestRunner { log: (msg: string) => void = () => {}, workspaceEnv: Record = {}, vitestCommand: string[] = this.vitestPath - ? [this.vitestPath] + ? isWindows + ? ["node", this.vitestPath] + : [this.vitestPath] : ["npx", "vitest"], ): Promise { if (isWindows) {