From 5b51bf188b5726619859ff17b089e74487dba8c0 Mon Sep 17 00:00:00 2001 From: btea <2356281422@qq.com> Date: Wed, 26 Jan 2022 03:48:47 -0600 Subject: [PATCH] refactor: replace the order of coverage and watch (#634) --- packages/vitest/src/node/core.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/vitest/src/node/core.ts b/packages/vitest/src/node/core.ts index 62724ebccde8..15b2d9c404a3 100644 --- a/packages/vitest/src/node/core.ts +++ b/packages/vitest/src/node/core.ts @@ -129,11 +129,11 @@ export class Vitest { await this.runFiles(files) - if (this.config.watch) - await this.report('onWatcherStart') - if (this.config.coverage.enabled) await reportCoverage(this) + + if (this.config.watch) + await this.report('onWatcherStart') } private async getTestDependencies(filepath: string) {