The coverage for constructors with injectables is wrong
See original GitHub issuejest 23.6.0
ts-jest 23.10.3
jest-preset-angular-6.0.1

Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:10 (3 by maintainers)
Top Results From Across the Web
Angular 10 Dependency Injection fails for extension classes ...
However, when unit tests are run, the dependency injection falls apart, and all of the arguments to the base class constructor are undefined....
Read more >Unit Testing: Constructor Injection with Fake Objects
A few things wrong with these tests: The fake class throws an exception, nothing catches it, and the SUT ( IsValidLogFileName ) is...
Read more >squid:S1948 False positive when using constructor or setter ...
Setter injection */ private CdiManagedBean field3; // False positive: Make "field3" ... this is indeed a FP, and we should cover it.
Read more >Testing Dependency Injection • Angular - codecraft.tv
If we wanted to get the same instance of a dependency that was passed to the component's constructor we would need to resolve...
Read more >InjectionToken - Angular
protected _desc: string, Declared in Constructor. Description for the token, used only for debugging purposes, it should but does not need to be...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
confirm fixed in
7.0.0-alpha.1
cc @huafuAwesome, thanks! Enjoy new house 😃