From 61cf9a7a98096913037472fb6c34735e94d6b423 Mon Sep 17 00:00:00 2001 From: AriPerkkio Date: Thu, 26 Jan 2023 12:00:49 +0200 Subject: [PATCH] fix: dont incorrectly mark run failed if filename pattern excludes previously failed tests --- packages/vitest/src/node/core.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/vitest/src/node/core.ts b/packages/vitest/src/node/core.ts index d00af5841a1b..e44c1468f37b 100644 --- a/packages/vitest/src/node/core.ts +++ b/packages/vitest/src/node/core.ts @@ -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) { @@ -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) }