Mark `unit-test` builder's `runnerConfig` option as experimental

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

@clydin がすでに取り組んでいます。

2025年11月14日 から。

評価

この issue はまだ評価されていません。

説明

angular/build:unit-test area: @angular/build
Command

test

Description

Considering the way unit-test builder works, not all Vitest config options are available.
Some options are explicitly detected and the user is warned:
https://github.com/angular/angular-cli/blob/720603223f2e9d1487ce54dac903fe8954bda3a5/packages/angular/build/src/builders/unit-test/runners/vitest/plugins.ts#L81

But there are also some options or configurations that could cause surprising issues.
For example, as of 21.0.0-rc.3, isolate: false can break the tests in browser mode.

Describe the solution you'd like

It would be nice if the option was marked as experimental or at least in dev preview and/or if it would come with a warning.
It would set the expectations right and leave some time for the Angular team and the community to document or fix the rough edges.

Describe alternatives you've considered

In the future @angular/build could either:

  • expose a defineAngularVitestConfig function that only allows the subset of Vitest options that are known to be supported by the CLI.
  • expose a Vitest plugin and give full control for most advanced configs and use cases
主要言語
TypeScript
スター
27k
フォーク
11.8k
平均マージ
16時間 21分
マージ済み PR(30日)
170

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

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

はじめの一歩

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

angular/angular-cli のほかの issue

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

似ている issue

TypeScript の issue をもっと見る

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

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