Skip to content

Commit

Permalink
refactor: replace the order of coverage and watch (#634)
Browse files Browse the repository at this point in the history
  • Loading branch information
btea committed Jan 26, 2022
1 parent a2013a5 commit 5b51bf1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/vitest/src/node/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 5b51bf1

Please sign in to comment.