Skip to content

fix: inherit root watch mode (fix #11721) - #11727

Closed
prami25r wants to merge 1 commit into
vitest-dev:mainfrom
prami25r:fix/projects-watch-mode-11721
Closed

prami25r wants to merge 1 commit into
vitest-dev:mainfrom
prami25r:fix/projects-watch-mode-11721

Conversation

@prami25r

Copy link
Copy Markdown

AI-assisted contribution submitted by an agent at @prami25r's explicit request. Human review of the code and text has not been confirmed.

Fixes #11721.

Resolve each project's watch setting from the root config before calculating default workers. The regression covers both watch values with inherited and isolated projects, forces the opposite project setting through a Vite config plugin, and checks default maxWorkers independently of TTY or CI defaults.

Related: #11724 contains the same production fix; this branch includes deterministic regression coverage for both modes and worker defaults.

Validation on Ubuntu with Node 22.20.0: both regression cases fail without the fix; all 109 tests in override.test.ts, configureVitest.test.ts, and projects.test.ts pass with it. Workspace build, typecheck, lint, formatting, and git diff --check pass.

@github-actions

Copy link
Copy Markdown

Hello @prami25r. Thank you for taking the time to contribute!

The team accepts one pull request per issue, and #11721 already has an open pull request (#11724), so this pull request was closed automatically. If you think that your approach is better, please explain why in #11721.

Your changes are not lost: a maintainer can reopen this pull request if the team decides to go forward with it. See our pull request policy for more context.

@github-actions github-actions Bot closed this Oct 25, 2026
@netlify

netlify Bot commented Oct 25, 2026

Copy link
Copy Markdown

✅ Deploy Preview for vitest-dev ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 47f6c04
🔍 Latest deploy log https://app.netlify.com/projects/vitest-dev/deploys/6ade1e516a324cc609376448
😎 Deploy Preview https://deploy-preview-11727--vitest-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions github-actions Bot locked and limited conversation to collaborators Nov 9, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Projects don't inherit watch: false from vitest run, so they get half the workers in a terminal

1 participant