Skip to content

Commit

Permalink
fix: clear errors before running files
Browse files Browse the repository at this point in the history
  • Loading branch information
sheremet-va committed Apr 28, 2022
1 parent 306b545 commit a37d82b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions packages/vitest/src/node/core.ts
Expand Up @@ -226,6 +226,7 @@ export class Vitest {
const invalidates = Array.from(this.invalidates)
this.invalidates.clear()
this.snapshot.clear()
this.state.clearErrors()
try {
await this.pool.runTests(files, invalidates)
}
Expand Down
1 change: 0 additions & 1 deletion packages/vitest/src/node/reporters/base.ts
Expand Up @@ -122,7 +122,6 @@ export abstract class BaseReporter implements Reporter {
async onWatcherRerun(files: string[], trigger?: string) {
this.watchFilters = files

this.ctx.state.clearErrors()
this.ctx.clearScreen()
this.ctx.log(`\n${c.inverse(c.bold(c.blue(' RERUN ')))}${trigger ? c.dim(` ${this.relative(trigger)}\n`) : ''}`)
this.start = performance.now()
Expand Down

0 comments on commit a37d82b

Please sign in to comment.