question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The coverage for constructors with injectables is wrong

See original GitHub issue
jest 23.6.0
ts-jest 23.10.3
jest-preset-angular-6.0.1
screen shot 2018-10-03 at 7 12 46 pm

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
ahnpnlcommented, Dec 5, 2018

confirm fixed in 7.0.0-alpha.1 cc @huafu

1reaction
thymikeecommented, Nov 8, 2018

Awesome, thanks! Enjoy new house 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found