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) }