diff --git a/docs/config/forcereruntriggers.md b/docs/config/forcereruntriggers.md index 9dad489c4375..7dca49ab75d9 100644 --- a/docs/config/forcereruntriggers.md +++ b/docs/config/forcereruntriggers.md @@ -6,7 +6,7 @@ outline: deep # forceRerunTriggers - **Type:** `string[]` -- **Default:** `['**/package.json/**', '**/vitest.config.*/**', '**/vite.config.*/**']` +- **Default:** `['**/package.json', '**/vitest.config.*', '**/vite.config.*']` Glob pattern of file paths that will trigger the whole suite rerun. When paired with the `--changed` argument will run the whole test suite if the trigger is found in the git diff. diff --git a/packages/vitest/src/defaults.ts b/packages/vitest/src/defaults.ts index 3d29a547f8cc..560638eb1fa7 100644 --- a/packages/vitest/src/defaults.ts +++ b/packages/vitest/src/defaults.ts @@ -114,7 +114,7 @@ export const configDefaults: Readonly<{ include: defaultInclude, exclude: defaultExclude, teardownTimeout: 10000, - forceRerunTriggers: ['**/package.json/**', '**/{vitest,vite}.config.*/**'], + forceRerunTriggers: ['**/package.json', '**/{vitest,vite}.config.*'], update: false, reporters: [ isAgent ? 'minimal' : 'default',