Code Coverage ignores functions like forwardRef in decorator #23776
Labels
area: devkit/build-angular
devkit/build-angular:karma
freq1: low
Only reported by a handful of users who observe it rarely
needs: investigation
Requires some digging to determine if action is needed
severity3: broken
type: bug/fix
Which @angular/* package(s) are the source of the bug?
Don't known / other
Is this a regression?
Yes
Description
With Angular 13 we have encountered fat arrow functions like the forward ref in decorators aren't counted in coverage any longer.
Before Angular 13 we had 100 % code coverage and after updating to Angular 13 it looses the coverage in functions. lines and statements.
It seems to be related to the target version, we had to update it to ES2015 in the specific tsconfig.json files.
Angular 12 was still using ES5 because of the issue we found here angular/angular#44781
Angular 13:
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 (run
ng version
)Anything else?
No response
The text was updated successfully, but these errors were encountered: