Skip to content

Conversation

@clydin
Copy link
Member

@clydin clydin commented Jan 23, 2026

The Vitest unit test builder now correctly merges coverage thresholds and watermarks from a user's Vitest configuration with CLI-provided options. Previously, providing any CLI thresholds would completely replace the configuration's thresholds. Now, partial CLI thresholds are merged, allowing users to override specific metrics while keeping others from their config.

This change also ensures that the builder correctly reports failure when Vitest coverage thresholds are not met by monitoring process.exitCode.

…runnerConfig

The Vitest unit test builder now correctly merges coverage thresholds and
watermarks from a user's Vitest configuration with CLI-provided options.
Previously, providing any CLI thresholds would completely replace the
configuration's thresholds. Now, partial CLI thresholds are merged, allowing
users to override specific metrics while keeping others from their config.

This change also ensures that the builder correctly reports failure when Vitest
coverage thresholds are not met by monitoring `process.exitCode`.
@clydin clydin added the target: patch This PR is targeted for the next patch release label Jan 23, 2026
@clydin clydin added the action: review The PR is still awaiting reviews from at least one requested reviewer label Jan 23, 2026
@alan-agius4 alan-agius4 added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Jan 26, 2026
@alan-agius4 alan-agius4 merged commit 1f1b21d into angular:main Jan 26, 2026
38 checks passed
@alan-agius4
Copy link
Collaborator

This PR was merged into the repository. The changes were merged into the following branches:

@clydin clydin deleted the vitest/coverage-merging branch January 26, 2026 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action: merge The PR is ready for merge by the caretaker area: @angular/build target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants