I'm having a problem with ng test and Angular v21

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
angular, node.js, typescript
領域
cli, testing

調査の方向性

まず、報告された Windows、Angular CLI 21.0.1、Node.js 24.11.1、pnpm 10.24.0 の環境で ng testpnpm run test を実行して失敗を再現します。2 つのコマンド経路を比較し、根本のエラーを取得します。テストコマンドがターミナルを閉じずに有用な失敗を報告すれば完了です。

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

説明

angular/build:unit-test area: @angular/build needs: investigation
Which @angular/* package(s) are the source of the bug?

Don't known / other

Is this a regression?

No

Description

Let me explain my problem. I'm trying to run tests using ng test, but I don't know why it suddenly closes the terminal and I don't get any errors. If I run pnpm run test or pnpm test using pnpm run test, I get these errors:

ELIFECYCLE Test failed. See above for more details.

I've searched on Google but haven't found anything about this issue.

I'm using a Windows environment.

Please provide a link to a minimal reproduction of the bug

No response

Please provide the exception or error you saw
When I launch ng test, my terminal immediately shuts down. But if I run it via `pnpm run test`, I get this error ELIFECYCLE Test failed. See above for more details.
Please provide the environment you discovered this bug in (run ng version)
Angular CLI       : 21.0.1
Angular           : 21.0.1
Node.js           : 24.11.1
Package Manager   : pnpm 10.24.0
Operating System  : win32 x64

┌───────────────────────────┬───────────────────┬───────────────────┐
│ Package                   │ Installed Version │ Requested Version │
├───────────────────────────┼───────────────────┼───────────────────┤
│ @angular/build            │ 21.0.1            │ ^21.0.1           │
│ @angular/cli              │ 21.0.1            │ ^21.0.1           │
│ @angular/common           │ 21.0.1            │ ^21.0.0           │
│ @angular/compiler         │ 21.0.1            │ ^21.0.0           │
│ @angular/compiler-cli     │ 21.0.1            │ ^21.0.0           │
│ @angular/core             │ 21.0.1            │ ^21.0.0           │
│ @angular/forms            │ 21.0.1            │ ^21.0.0           │
│ @angular/platform-browser │ 21.0.1            │ ^21.0.0           │
│ @angular/router           │ 21.0.1            │ ^21.0.0           │
│ rxjs                      │ 7.8.2             │ ~7.8.0            │
│ typescript                │ 5.9.3             │ ~5.9.2            │
│ vitest                    │ 4.0.14            │ ^4.0.8            │
└───────────────────────────┴───────────────────┴───────────────────┘
Anything else?
Image Image
主要言語
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 をメールで受け取る

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