Unit test: Add reporter watermark configuration to angular.json

オープン
#31,998 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
45/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
angular, typescript
領域
cli, testing, tooling

調査の方向性

angular.json のユニットテストオプションと vitest-base.config.ts から始め、次にリポジトリのユニットテストコマンドを実行して、オプションがどのように Vitest に渡されるかを追跡します。遅いテストのしきい値として望ましい設定が angular.json を通じて受け入れられること、および設定を失わずに vitest-base.config.ts を削除できることを確認します。

索引モデルが issue の本文から書いたものです。

説明

angular/build:unit-test area: @angular/build feature feature: insufficient votes
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 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

主要言語
TypeScript
スター
27k
フォーク
11.8k
平均マージ
16時間 35分
マージ済み PR(30日)
176

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

angular/angular-cli のほかの issue

angular/angular-cli の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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