Skip to content

Commit

Permalink
refactor: in rerun replace the order of coverage and watch (#698)
Browse files Browse the repository at this point in the history
  • Loading branch information
btea committed Feb 8, 2022
1 parent 5474637 commit 578258e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/vitest/src/node/core.ts
Expand Up @@ -284,10 +284,10 @@ export class Vitest {

await this.runFiles(files)

await this.report('onWatcherStart')

if (this.config.coverage.enabled)
await reportCoverage(this)

await this.report('onWatcherStart')
}, WATCHER_DEBOUNCE)
}

Expand Down

0 comments on commit 578258e

Please sign in to comment.