From 859e7f01c5ff004409f9429f4d32a07460bcbfe0 Mon Sep 17 00:00:00 2001 From: yoho Date: Wed, 18 Jan 2023 21:36:32 +0800 Subject: [PATCH] fix: show correct number of tests in test summary (#2703) fix https://github.com/vitest-dev/vitest/issues/2661 --- packages/vitest/src/node/core.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 })