Skip to content

Commit

Permalink
fix: clean coverage-c8 tmp before reporting (fix #1917) (#1925)
Browse files Browse the repository at this point in the history
  • Loading branch information
sun0day committed Aug 28, 2022
1 parent 5b190e8 commit e7e8a76
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/vitest/src/node/core.ts
Expand Up @@ -105,8 +105,6 @@ export class Vitest {

this.runningPromise = undefined

await this.coverageProvider?.clean(this.config.coverage.clean)

this.cache.results.setConfig(resolved.root, resolved.cache)
try {
await this.cache.results.readFromCache()
Expand Down Expand Up @@ -148,6 +146,7 @@ export class Vitest {
async start(filters?: string[]) {
try {
await this.initCoverageProvider()
await this.coverageProvider?.clean(this.config.coverage.clean)
}
catch (e) {
this.logger.error(e)
Expand Down

0 comments on commit e7e8a76

Please sign in to comment.