Skip to content

fix(@angular/build): validate V8 coverage support for browsers in Vitest#32987

Draft
clydin wants to merge 1 commit intoangular:mainfrom
clydin:vitest/browser-coverage-val
Draft

fix(@angular/build): validate V8 coverage support for browsers in Vitest#32987
clydin wants to merge 1 commit intoangular:mainfrom
clydin:vitest/browser-coverage-val

Conversation

@clydin
Copy link
Copy Markdown
Member

@clydin clydin commented Apr 10, 2026

This change introduces a validation check in the Vitest runner to ensure that code coverage is only enabled when using supported Chromium-based browsers. Since the Angular CLI integration currently relies exclusively on the V8 coverage provider, running tests in non-Chromium browsers like Firefox or Safari with coverage enabled would result in incomplete data or missing reports. By adding this check, developers will receive a clear, actionable error message early in the process, preventing confusion and ensuring reliable coverage reports.

@clydin clydin added the target: patch This PR is targeted for the next patch release label Apr 10, 2026
This change introduces a validation check in the Vitest runner to ensure that code coverage is only enabled when using supported Chromium-based browsers. Since the Angular CLI integration currently relies exclusively on the V8 coverage provider, running tests in non-Chromium browsers like Firefox or Safari with coverage enabled would result in incomplete data or missing reports. By adding this check, developers will receive a clear, actionable error message early in the process, preventing confusion and ensuring reliable coverage reports.
@clydin clydin force-pushed the vitest/browser-coverage-val branch from 1574491 to f28dabb Compare April 11, 2026 01:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

1 participant