angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

`unit-test` builder with `vitest` runner should augment types with provider

Open yjaaidi opened this issue 2 months ago • 1 comments

Command

test

Description

In Vitest 4, the import of @vitest/browser-* automatically augments the types of vitest/browser with provider's APIs specificities.

Angular CLI could either expose a vitest.config.ts using public Angular vite plugins, or in the meantime, the generator could add the provider's package to tsconfig.spec.json#compilerOptions.types or warn if it's missing or if there is a provider mismatch.

Describe the solution you'd like

No response

Describe alternatives you've considered

Using custom vitest.config.ts with Analog plugin https://github.com/analogjs/analog/tree/main/packages/vitest-angular

yjaaidi avatar Oct 31 '25 01:10 yjaaidi

This feature request is now candidate for our backlog! In the next phase, the community has 60 days to upvote. If the request receives more than 20 upvotes, we'll move it to our consideration list.

You can find more details about the feature request process in our documentation.

angular-robot[bot] avatar Oct 31 '25 17:10 angular-robot[bot]

Just a heads up that we kicked off a community voting process for your feature request. There are 20 days until the voting process ends.

Find more details about Angular's feature request process in our documentation.

angular-robot[bot] avatar Dec 10 '25 13:12 angular-robot[bot]