-
fix(angular): disable vitest watch by default (#35493)
发布于
2026-04-29 16:42:03 +00:00 Current Behavior
Generated Angular projects using
vitest-angularcreate a test target
without an explicitwatchvalue. The Angular unit-test builder
defaults watch mode totruein TTY environments, so running generated
projects through monorepo workflows such asnx run-manycan leave test
tasks running instead of exiting.Expected Behavior
Generated Angular
vitest-angulartest targets explicitly setwatch: false, matching Nx Vitest's default non-watch behavior and preserving
terminating test tasks forrun-manyand affected workflows. Users can
still opt into watch mode with--watchor a watch configuration.下载附件