Skip to content

Commit

Permalink
fix: throw provider initialization errors
Browse files Browse the repository at this point in the history
  • Loading branch information
AriPerkkio committed Apr 21, 2023
1 parent cbfd2c5 commit 3984c61
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions packages/vitest/src/node/core.ts
Expand Up @@ -282,15 +282,9 @@ 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.initCoverageProvider()
await this.coverageProvider?.clean(this.config.coverage.clean)
await this.initBrowserProviders()

await this.report('onInit', this)

Expand Down

0 comments on commit 3984c61

Please sign in to comment.