Mark `unit-test` builder's `runnerConfig` option as experimental

Aperta
#31,810 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@clydin ci sta già lavorando.

Dal 14/11/2025.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

angular/build:unit-test area: @angular/build
Command

test

Description

Considering the way unit-test builder works, not all Vitest config options are available.
Some options are explicitly detected and the user is warned:
https://github.com/angular/angular-cli/blob/720603223f2e9d1487ce54dac903fe8954bda3a5/packages/angular/build/src/builders/unit-test/runners/vitest/plugins.ts#L81

But there are also some options or configurations that could cause surprising issues.
For example, as of 21.0.0-rc.3, isolate: false can break the tests in browser mode.

Describe the solution you'd like

It would be nice if the option was marked as experimental or at least in dev preview and/or if it would come with a warning.
It would set the expectations right and leave some time for the Angular team and the community to document or fix the rough edges.

Describe alternatives you've considered

In the future @angular/build could either:

  • expose a defineAngularVitestConfig function that only allows the subset of Vitest options that are known to be supported by the CLI.
  • expose a Vitest plugin and give full control for most advanced configs and use cases
Lingua principale
TypeScript
Stelle
27k
Fork
11.8k
Merge medio
16h 21m
PR unite (30g)
170

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di angular/angular-cli

Tutte le issue di angular/angular-cli

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.