Skip to content

Commit 828858f

Browse files
authoredFeb 12, 2024··
feat: deprecate watchExclude (#5171)
1 parent 5749d2c commit 828858f

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed
 

‎docs/config/index.md

+1
Original file line numberDiff line numberDiff line change
@@ -1003,6 +1003,7 @@ declare module 'vitest' {
10031003

10041004
- **Type:** `string[]`
10051005
- **Default:** `['**/node_modules/**', '**/dist/**']`
1006+
- **Deprecated** use [`server.watch.ignored`](https://vitejs.dev/config/server-options.html#server-watch)
10061007

10071008
Glob pattern of file paths to be ignored from triggering watch rerun.
10081009

‎packages/vitest/src/types/config.ts

+1
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,7 @@ export interface InlineConfig {
430430

431431
/**
432432
* Glob pattern of file paths to be ignore from triggering watch rerun
433+
* @deprecated Use server.watch.ignored instead
433434
*/
434435
watchExclude?: string[]
435436

0 commit comments

Comments
 (0)
Please sign in to comment.