-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Closed
Labels
Milestone
Description
Which @angular/* package(s) are the source of the bug?
Don't known / other
Is this a regression?
Yes
Description
On a brand new Angular 13 project, the coverage report show unreliable data.
Create a brand new Angular 13 project
npx @angular/cli@13 new ng13
Add an emtpy method to app.component.ts
Inside the project, run tests with coverage data:
ng test --no-watch --code-coverage
Report is broken as the uncovered code red sign is misplaced and coverage summary is wrong:


For comparison, this is the correct one for Angular 12:


Please provide a link to a minimal reproduction of the bug
No response
Please provide the exception or error you saw
No response
Please provide the environment you discovered this bug in
Angular CLI: 13.0.1
Node: 14.18.1
Package Manager: npm 6.14.15
OS: linux x64
Angular: 13.0.0
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router
Package Version
---------------------------------------------------------
@angular-devkit/architect 0.1300.1
@angular-devkit/build-angular 13.0.1
@angular-devkit/core 13.0.1
@angular-devkit/schematics 13.0.1
@angular/cli 13.0.1
@schematics/angular 13.0.1
rxjs 7.4.0
typescript 4.4.4
Anything else?
No response