diff --git a/packages/vitest/src/node/core.ts b/packages/vitest/src/node/core.ts index 26597bebf19d..47033d2ef925 100644 --- a/packages/vitest/src/node/core.ts +++ b/packages/vitest/src/node/core.ts @@ -346,7 +346,7 @@ export class Vitest { .finally(async () => { this.state.finishCollectingPaths() if (!this.config.browser) - await this.report('onFinished', this.state.getFiles(), this.state.getUnhandledErrors()) + await this.report('onFinished', this.state.getFiles(paths), this.state.getUnhandledErrors()) this.runningPromise = undefined })