Allow to pass --update to vitest
- Lenguaje dominante
- TypeScript
- Estrellas
- 27k
- Forks
- 11.8k
- Merge medio
- 14 h 23 min
- PR fusionados (30 d)
- 162
Descripción
### Command
test
### Description
Vitest has an update command, that updates the visual regression screenshots and the snapshots. However, it is currently impossible to invoke this command, because the Angular CLI does not seem to pass it on to vitest. Just running `vitest --update` fails as well, because it is missing the vitest.config that Angular CLI seems to create in memory.
### Describe the solution you'd like
Pass the `--update` flag vitest execution.
### Describe alternatives you've considered
Maybe all arguments preceded by `--` could be automatically passed on?
Guía de contribución
Línea de trabajo
Comienza en el manejo de argumentos del comando `test` de Angular CLI y reproduce el problema con el flag `--update` de Vitest. Rastrea cómo se proporciona la configuración de Vitest en memoria y, a continuación, verifica que el flag llegue a Vitest sin requerir un archivo de configuración independiente; la tarea estará completa cuando se puedan actualizar las capturas de pantalla de regresión visual y los snapshots a través de la CLI.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- typescript
- Área
- cli, testing
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Tranquilo
- Claridad
- Bastante claro
- Aptitud para principiantes
- 64/100