-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Labels
angular/build:unit-testarea: @angular/buildfreq1: lowOnly reported by a handful of users who observe it rarelyOnly reported by a handful of users who observe it rarelyseverity3: brokentype: bug/fix
Description
Command
test
Is this a regression?
- Yes, this behavior used to work in the previous version
The previous version in which this bug was not present was
No response
Description
Coverage reporters are working with 21.0.0-rc.4 as long the coverageInclude option is not set in angular.json.
Coverage reporting and summary will fail if the following option is added:
"options" : {
"coverageInclude": [
"src/**/*.ts"
]
}
Minimal Reproduction
- Unzip the attached minimal reproduction on Windows 11
- Run: npm install
- Run: npm test
The coverage summary will show 0 statements, branches, etc.
Now, delete the coverageInclude option in angular.json and run: npm test. The coverage summary is now correct.
Exception or Error
Your Environment
Angular CLI : 21.0.0-rc.4
Angular : 21.0.0-rc.2
Node.js : 22.18.0
Package Manager : npm 10.9.3
Operating System : win32 x64
┌───────────────────────────┬───────────────────┬───────────────────┐
│ Package │ Installed Version │ Requested Version │
├───────────────────────────┼───────────────────┼───────────────────┤
│ @angular/build │ 21.0.0-rc.4 │ ^21.0.0-rc.4 │
│ @angular/cli │ 21.0.0-rc.4 │ ^21.0.0-rc.4 │
│ @angular/common │ 21.0.0-rc.2 │ ^21.0.0-rc.2 │
│ @angular/compiler │ 21.0.0-rc.2 │ ^21.0.0-rc.2 │
│ @angular/compiler-cli │ 21.0.0-rc.2 │ ^21.0.0-rc.2 │
│ @angular/core │ 21.0.0-rc.2 │ ^21.0.0-rc.2 │
│ @angular/forms │ 21.0.0-rc.2 │ ^21.0.0-rc.2 │
│ @angular/platform-browser │ 21.0.0-rc.2 │ ^21.0.0-rc.2 │
│ @angular/router │ 21.0.0-rc.2 │ ^21.0.0-rc.2 │
│ rxjs │ 7.8.2 │ ~7.8.0 │
│ typescript │ 5.9.3 │ ~5.9.2 │
│ vitest │ 4.0.9 │ ^4.0.9 │
└───────────────────────────┴───────────────────┴───────────────────┘
Anything else relevant?
No response
Metadata
Metadata
Assignees
Labels
angular/build:unit-testarea: @angular/buildfreq1: lowOnly reported by a handful of users who observe it rarelyOnly reported by a handful of users who observe it rarelyseverity3: brokentype: bug/fix