Skip to content

Commit 481b1fd

Browse files
authoredApr 27, 2023
fix: reporter to log version before provider initalizations (#3131)
1 parent f4cc7e1 commit 481b1fd

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed
 

‎packages/vitest/src/node/core.ts

+4-10
Original file line numberDiff line numberDiff line change
@@ -285,18 +285,12 @@ export class Vitest {
285285
return
286286
}
287287

288-
try {
289-
await this.initCoverageProvider()
290-
await this.coverageProvider?.clean(this.config.coverage.clean)
291-
await this.initBrowserProviders()
292-
}
293-
catch (e) {
294-
this.logger.error(e)
295-
process.exit(1)
296-
}
297-
298288
await this.report('onInit', this)
299289

290+
await this.initCoverageProvider()
291+
await this.coverageProvider?.clean(this.config.coverage.clean)
292+
await this.initBrowserProviders()
293+
300294
const files = await this.filterTestsBySource(
301295
await this.globTestFiles(filters),
302296
)

0 commit comments

Comments
 (0)