From 828858f861514a0ba3d456068d340577f4d81510 Mon Sep 17 00:00:00 2001 From: patak <583075+patak-dev@users.noreply.github.com> Date: Mon, 12 Feb 2024 13:16:34 +0100 Subject: [PATCH] feat: deprecate watchExclude (#5171) --- docs/config/index.md | 1 + packages/vitest/src/types/config.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/docs/config/index.md b/docs/config/index.md index 0ab8bdef7493..18ebf912a88a 100644 --- a/docs/config/index.md +++ b/docs/config/index.md @@ -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. diff --git a/packages/vitest/src/types/config.ts b/packages/vitest/src/types/config.ts index adc7f3c06e2b..ec674dfb3f7a 100644 --- a/packages/vitest/src/types/config.ts +++ b/packages/vitest/src/types/config.ts @@ -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[]