Skip to content

Commit 61cf9a7

Browse files
AriPerkkiosheremet-va
authored andcommittedJan 27, 2023
fix: dont incorrectly mark run failed if filename pattern excludes previously failed tests
1 parent 1c65ac4 commit 61cf9a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎packages/vitest/src/node/core.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ export class Vitest {
374374
await this.reportCoverage(!trigger)
375375

376376
if (!this.config.browser)
377-
await this.report('onWatcherStart')
377+
await this.report('onWatcherStart', this.state.getFiles(files))
378378
}
379379

380380
async changeNamePattern(pattern: string, files: string[] = this.state.getFilepaths(), trigger?: string) {
@@ -467,7 +467,7 @@ export class Vitest {
467467
await this.reportCoverage(false)
468468

469469
if (!this.config.browser)
470-
await this.report('onWatcherStart')
470+
await this.report('onWatcherStart', this.state.getFiles(files))
471471
}, WATCHER_DEBOUNCE)
472472
}
473473

0 commit comments

Comments
 (0)
Please sign in to comment.