diff --git a/packages/vitest/src/node/core.ts b/packages/vitest/src/node/core.ts index 51b52a899966..07fdd3fb7a7c 100644 --- a/packages/vitest/src/node/core.ts +++ b/packages/vitest/src/node/core.ts @@ -245,14 +245,14 @@ export class Vitest { return } + await this.report('onInit', this) + await this.initCoverageProvider() await this.coverageProvider?.clean(this.config.coverage.clean) if (this.isBrowserEnabled()) await this.initBrowserProvider() - await this.report('onInit', this) - const files = await this.filterTestsBySource( await this.globTestFiles(filters), )