Skip to content

feat(@angular/build): support Istanbul coverage in Vitest runner#33029

Draft
clydin wants to merge 1 commit intoangular:mainfrom
clydin:feat/vitest-istanbul-coverage
Draft

feat(@angular/build): support Istanbul coverage in Vitest runner#33029
clydin wants to merge 1 commit intoangular:mainfrom
clydin:feat/vitest-istanbul-coverage

Conversation

@clydin
Copy link
Copy Markdown
Member

@clydin clydin commented Apr 21, 2026

This change enables code coverage reporting when running tests in non-Chromium browsers (like Firefox or Safari) with the Vitest runner.

The system now automatically detects the best coverage provider based on the configured browsers and installed packages:

  • If non-Chromium browsers are configured, it selects 'istanbul'.
  • If only Chromium browsers are used, it selects 'istanbul' if it is the only provider package installed.
  • Otherwise, it defaults to 'v8'. It also respects the provider specified in the user's custom Vitest configuration.

@clydin clydin added the target: minor This PR is targeted for the next minor release label Apr 21, 2026
@angular-robot angular-robot Bot added detected: feature PR contains a feature commit area: @angular/build labels Apr 21, 2026
@clydin clydin force-pushed the feat/vitest-istanbul-coverage branch 3 times, most recently from 603042a to 87bb020 Compare April 21, 2026 21:10
This change enables code coverage reporting when running tests in non-Chromium browsers (like Firefox or Safari) with the Vitest runner.

The system now automatically detects the best coverage provider based on the configured browsers and installed packages:
- If non-Chromium browsers are configured, it selects 'istanbul'.
- If only Chromium browsers are used, it selects 'istanbul' if it is the only provider package installed.
- Otherwise, it defaults to 'v8'.
It also respects the provider specified in the user's custom Vitest configuration.
@clydin clydin force-pushed the feat/vitest-istanbul-coverage branch from 87bb020 to f3443aa Compare April 21, 2026 23:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: @angular/build detected: feature PR contains a feature commit target: minor This PR is targeted for the next minor release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant