Unit test: Add reporter watermark configuration to angular.json
- Lingua principale
- TypeScript
- Stelle
- 27k
- Fork
- 11.8k
- Merge medio
- 14h 23m
- PR unite (30g)
- 162
Descrizione
### Command
test
### Description
After taking advantage of all the new Vitest unit test features in 21.0.0, there is only one configuration item left in the vitest-base.config.ts:
```
export default defineConfig({
test: {
slowTestThreshold: 1000
}
});
```
This is required since the Vitest's [slowTestThreshold](https://vitest.dev/guide/cli.html#slowtestthreshold) default of 300 ms is not adequate for extended test cases.
Ideally this configuration should be available through the angular.json configuration unit-test options, since it would allow the complete removal of the vitest-base.config.ts file.
Maybe follow the nomenclature that you introduced with "coverageWatermarks" and call it "reporterWatermark".
### Describe the solution you'd like
_No response_
### Describe alternatives you've considered
_No response_
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia con le opzioni dei test unitari di angular.json e vitest-base.config.ts, quindi esegui il comando per i test unitari del repository per tracciare come le opzioni arrivano a Vitest. Verifica che l'impostazione desiderata della soglia per i test lenti venga accettata tramite angular.json e che vitest-base.config.ts possa essere rimosso senza perdere la configurazione.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- angular, typescript
- Ambito
- cli, testing, tooling
- Tipo di issue
- Funzionalità
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 45/100