Skip to content

Commit

Permalink
feat: deprecate watchExclude (#5171)
Browse files Browse the repository at this point in the history
  • Loading branch information
patak-dev committed Feb 12, 2024
1 parent 5749d2c commit 828858f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/config/index.md
Expand Up @@ -1003,6 +1003,7 @@ declare module 'vitest' {

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

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

Expand Down
1 change: 1 addition & 0 deletions packages/vitest/src/types/config.ts
Expand Up @@ -430,6 +430,7 @@ export interface InlineConfig {

/**
* Glob pattern of file paths to be ignore from triggering watch rerun
* @deprecated Use server.watch.ignored instead
*/
watchExclude?: string[]

Expand Down

0 comments on commit 828858f

Please sign in to comment.