[READ-ONLY] Mirror of https://github.com/vitest-dev/vitest. Next generation testing framework powered by Vite. vitest.dev
test testing-tools vite
12

Configure Feed

Select the types of activity you want to include in your feed.

fix: forceRerunTriggers uses directory globs against files (fix #10421) (#10420)

Co-authored-by: Patrick Clausen <patrick@tourcompass.com>

authored by

Patrick Clausen
Patrick Clausen
and committed by
GitHub
(May 23, 2026, 7:26 PM +0200) 4fee2e30 e203202f

+2 -2
+1 -1
docs/config/forcereruntriggers.md
··· 6 6 # forceRerunTriggers <CRoot /> 7 7 8 8 - **Type:** `string[]` 9 - - **Default:** `['**/package.json/**', '**/vitest.config.*/**', '**/vite.config.*/**']` 9 + - **Default:** `['**/package.json', '**/vitest.config.*', '**/vite.config.*']` 10 10 11 11 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. 12 12
+1 -1
packages/vitest/src/defaults.ts
··· 114 114 include: defaultInclude, 115 115 exclude: defaultExclude, 116 116 teardownTimeout: 10000, 117 - forceRerunTriggers: ['**/package.json/**', '**/{vitest,vite}.config.*/**'], 117 + forceRerunTriggers: ['**/package.json', '**/{vitest,vite}.config.*'], 118 118 update: false, 119 119 reporters: [ 120 120 isAgent ? 'minimal' : 'default',