Allow passing --changed cli option to vitest
- Lingua principale
- TypeScript
- Stelle
- 27k
- Fork
- 11.8k
- Merge medio
- 14h 23m
- PR unite (30g)
- 162
Descrizione
### Command
test
### Description
The `unit-test` builder does not provide a way to use the `--changed` vitest option: https://vitest.dev/guide/cli.html#changed. This will analyze the import graph and only run tests affected by a change, which is useful for running a subset of the test suite for pull requests. This option is not available through the vitest configuration file.
### Describe the solution you'd like
Add a `changed: ` option to the `unit-test` builder options which passes `--changed ` to the vitest runner.
### Describe alternatives you've considered
I don't think there are any good workarounds. Using `@analogjs/vitest-angular` exposes vitest directly, but requires more setup and is not an "official" package.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia dalle opzioni del builder dei test unitari e segui come vengono passate al runner Vitest. Verifica che un’opzione string modificata inoltri --changed e che i test pertinenti del builder coprano il comando risultante.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- typescript
- Ambito
- cli, testing
- Tipo di issue
- Funzionalità
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Stato di attività
- Ferma
- Chiarezza
- Specificata chiaramente
- Idoneità per principianti
- 55/100