Skip to content

Commit

Permalink
fix: do not include source files in onWatcherStart when `typecheck.…
Browse files Browse the repository at this point in the history
…ignoreSourceErrors` is true (#2774)

Co-authored-by: Vladimir <sleuths.slews0s@icloud.com>
  • Loading branch information
mascii and sheremet-va committed Feb 3, 2023
1 parent 07a9faf commit d612efd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vitest/src/node/core.ts
Expand Up @@ -183,7 +183,7 @@ export class Vitest {
}
if (this.config.watch) {
await this.report('onWatcherStart', files, [
...sourceErrors,
...(this.config.typecheck.ignoreSourceErrors ? [] : sourceErrors),
...this.state.getUnhandledErrors(),
])
}
Expand Down

0 comments on commit d612efd

Please sign in to comment.