angular / angular/angular-cli

Allow to pass --update to vitest

オープン
#32,218 コメント 4 件 リアクション 11 件 担当者 0 名 GitHub で見る
angular/build:unit-test area: @angular/build freq1: low severity3: broken type: bug/fix
主要言語
TypeScript
スター
27k
フォーク
11.8k
平均マージ
14時間 23分
マージ済み PR(30日)
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

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。