Skip to content

Commit

Permalink
fix: run partial test suite on windows (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
lmexo authored and zxch3n committed Aug 6, 2022
1 parent 0363459 commit a6019a4
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/pure/runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import {
filterColorFormatOutput,
sanitizeFilePath,
} from './utils'
import { isWindows } from './platform'
import type { StartConfig } from './ApiProcess'
import { runVitestWithApi } from './ApiProcess'

Expand Down Expand Up @@ -78,12 +77,8 @@ export class TestRunner {
if (updateSnapshot)
args.push('--update')

if (testNamePattern) {
if (isWindows)
args.push('-t', `"${testNamePattern}"`)
else
args.push('-t', testNamePattern)
}
if (testNamePattern)
args.push('-t', testNamePattern)

const workspacePath = sanitizeFilePath(this.workspacePath)
const outputs: string[] = []
Expand Down

0 comments on commit a6019a4

Please sign in to comment.