diff --git a/packages/vitest/src/node/core.ts b/packages/vitest/src/node/core.ts index 2f44fc6e2cb8..041d14a6eee2 100644 --- a/packages/vitest/src/node/core.ts +++ b/packages/vitest/src/node/core.ts @@ -282,12 +282,12 @@ export class Vitest { return } + await this.report('onInit', this) + await this.initCoverageProvider() await this.coverageProvider?.clean(this.config.coverage.clean) await this.initBrowserProviders() - await this.report('onInit', this) - const files = await this.filterTestsBySource( await this.globTestFiles(filters), )