Describe the bug
- Given some test suites with more than one test exists
- When running tests in watch mode
- Given test
A in suite α has failed
- When pressing the
f shortcut
- Expects only test
A to be rerun, instead all tests within α are run
Reproduction
https://stackblitz.com/edit/vitest-dev-vitest-mqt9hpxp?file=test%2Fsuite.test.ts
System Info
System:
OS: macOS 26.3
CPU: (10) arm64 Apple M5
Memory: 151.45 MB / 32.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 24.14.1 - /Users/sebastianmalton/.nvm/versions/node/v24.14.1/bin/node
npm: 11.11.0 - /Users/sebastianmalton/.nvm/versions/node/v24.14.1/bin/npm
pnpm: 10.33.2 - /Users/sebastianmalton/.nvm/versions/node/v24.14.1/bin/pnpm
Browsers:
Firefox: 150.0
Safari: 26.3
npmPackages:
@vitest/coverage-v8: 4.1.5 => 4.1.5
vitest: ^4.1.5 => 4.1.5
Used Package Manager
npm
Validations
Describe the bug
Ain suiteαhas failedfshortcutAto be rerun, instead all tests withinαare runReproduction
https://stackblitz.com/edit/vitest-dev-vitest-mqt9hpxp?file=test%2Fsuite.test.ts
System Info
System: OS: macOS 26.3 CPU: (10) arm64 Apple M5 Memory: 151.45 MB / 32.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 24.14.1 - /Users/sebastianmalton/.nvm/versions/node/v24.14.1/bin/node npm: 11.11.0 - /Users/sebastianmalton/.nvm/versions/node/v24.14.1/bin/npm pnpm: 10.33.2 - /Users/sebastianmalton/.nvm/versions/node/v24.14.1/bin/pnpm Browsers: Firefox: 150.0 Safari: 26.3 npmPackages: @vitest/coverage-v8: 4.1.5 => 4.1.5 vitest: ^4.1.5 => 4.1.5Used Package Manager
npm
Validations