Skip to content

Commit

Permalink
fix: dont incorrectly mark run failed if filename pattern excludes pr…
Browse files Browse the repository at this point in the history
…eviously failed tests
  • Loading branch information
AriPerkkio committed Jan 26, 2023
1 parent 70e2ba3 commit 4d9d48a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/vitest/src/node/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ export class Vitest {
await this.reportCoverage(!trigger)

if (!this.config.browser)
await this.report('onWatcherStart')
await this.report('onWatcherStart', this.state.getFiles(files))
}

async changeNamePattern(pattern: string, files: string[] = this.state.getFilepaths(), trigger?: string) {
Expand Down Expand Up @@ -462,7 +462,7 @@ export class Vitest {
await this.reportCoverage(false)

if (!this.config.browser)
await this.report('onWatcherStart')
await this.report('onWatcherStart', this.state.getFiles(files))
}, WATCHER_DEBOUNCE)
}

Expand Down

0 comments on commit 4d9d48a

Please sign in to comment.