Skip to content

Commit

Permalink
fix: use 'node vitest' as vitest command on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
InfiniteXyy committed Apr 18, 2022
1 parent 8654778 commit e3df7da
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pure/runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ export class TestRunner {
log: (msg: string) => void = () => {},
workspaceEnv: Record<string, string> = {},
vitestCommand: string[] = this.vitestPath
? [this.vitestPath]
? isWindows
? ["node", this.vitestPath]
: [this.vitestPath]
: ["npx", "vitest"],
): Promise<FormattedTestResults> {
if (isWindows) {
Expand Down

0 comments on commit e3df7da

Please sign in to comment.