Skip to content

Commit d612efd

Browse files
masciisheremet-va
andauthored
fix: do not include source files in onWatcherStart when typecheck.ignoreSourceErrors is true (#2774)
Co-authored-by: Vladimir <sleuths.slews0s@icloud.com>
1 parent 07a9faf commit d612efd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/vitest/src/node/core.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ export class Vitest {
183183
}
184184
if (this.config.watch) {
185185
await this.report('onWatcherStart', files, [
186-
...sourceErrors,
186+
...(this.config.typecheck.ignoreSourceErrors ? [] : sourceErrors),
187187
...this.state.getUnhandledErrors(),
188188
])
189189
}

0 commit comments

Comments
 (0)