发布

  • fix(angular): disable vitest watch by default (#35493)

    frostbyte_neo 发布于 2026-04-29 16:42:03 +00:00

    Current Behavior

    Generated Angular projects using vitest-angular create a test target
    without an explicit watch value. The Angular unit-test builder
    defaults watch mode to true in TTY environments, so running generated
    projects through monorepo workflows such as nx run-many can leave test
    tasks running instead of exiting.

    Expected Behavior

    Generated Angular vitest-angular test targets explicitly set watch: false, matching Nx Vitest's default non-watch behavior and preserving
    terminating test tasks for run-many and affected workflows. Users can
    still opt into watch mode with --watch or a watch configuration.

    下载附件