Skip to content

fix(@angular/build): adjust coverage includes/excludes for unit-test vitest runner #30582

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 23, 2025

Conversation

clydin
Copy link
Member

@clydin clydin commented Jun 23, 2025

The experimental unit-test builder with vitest support will now explicitly include the tested files instead of using the default of all files within the workspace. This prevents a potentially long wait time to calculate coverage. The excludes have also been adjusted to ensure that application code bundled into the intermediate test output is also counted within the coverage reports.

Closes #30557

…vitest runner

The experimental `unit-test` builder with `vitest` support will now explicitly
include the tested files instead of using the default of all files within
the workspace. This prevents a potentially long wait time to calculate
coverage. The excludes have also been adjusted to ensure that application
code bundled into the intermediate test output is also counted within the
coverage reports.
@clydin clydin added the target: minor This PR is targeted for the next minor release label Jun 23, 2025
@clydin clydin added the action: merge The PR is ready for merge by the caretaker label Jun 23, 2025
@jkrems jkrems merged commit adfeee0 into angular:main Jun 23, 2025
33 checks passed
@clydin clydin deleted the unit-test/vitest-coverage-includes branch June 23, 2025 18:23
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: minor This PR is targeted for the next minor release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

vitest: code coverage is always 0 (and is slow)
2 participants