Skip to content

Commit

Permalink
fix: reporter to log version before provider initalizations (#3131)
Browse files Browse the repository at this point in the history
  • Loading branch information
AriPerkkio authored Apr 27, 2023
1 parent f4cc7e1 commit 481b1fd
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions packages/vitest/src/node/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -285,18 +285,12 @@ export class Vitest {
return
}

try {
await this.initCoverageProvider()
await this.coverageProvider?.clean(this.config.coverage.clean)
await this.initBrowserProviders()
}
catch (e) {
this.logger.error(e)
process.exit(1)
}

await this.report('onInit', this)

await this.initCoverageProvider()
await this.coverageProvider?.clean(this.config.coverage.clean)
await this.initBrowserProviders()

const files = await this.filterTestsBySource(
await this.globTestFiles(filters),
)
Expand Down

0 comments on commit 481b1fd

Please sign in to comment.