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 authored and sheremet-va committed Jan 27, 2023
1 parent 1c65ac4 commit 61cf9a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/vitest/src/node/core.ts
Expand Up @@ -374,7 +374,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 @@ -467,7 +467,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 61cf9a7

Please sign in to comment.