Allow to pass --update to vitest
- 主要語言
- TypeScript
- 星號
- 27k
- 分支
- 11.8k
- 平均合併
- 14 小時 23 分鐘
- 30 天內合併 PR
- 162
描述
### 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?
貢獻指南
研究方向
從 Angular CLI 的 `test` 命令引數處理開始,並使用 Vitest 的 `--update` 旗標重現問題。追蹤記憶體中的 Vitest 設定是如何提供的,接著確認該旗標能傳遞給 Vitest,而不需要另外的設定檔;當可以透過 CLI 更新視覺回歸截圖和快照時,即表示完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- typescript
- 領域
- cli, testing
- Issue 類型
- 功能
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 64/100