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.

@Untildestroy decorators breaks the mock component

See original GitHub issue

Hi,

I’m using the @ngneat/until-destroy library. If i try to mock the component. Then I’m getting error like TypeError: Cannot read property 'get' of undefined. How to solve this?

Thanks for this awesome library

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
satanTimecommented, May 17, 2020

Aha, ivy - that’s nice 😃 then definitely please give a try 9.4.0, quite sure it won’t have the issue. If it does I would like to ask you to find some time some day and create an example of the issue. Perhaps it’s possible to invite me to the repo for the investigation.

1reaction
sheikalthafcommented, May 11, 2020

@satanTime will create a repo and share with you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issue with Decorator when testing component #91 - GitHub
I cannot post real example so I was doing a mocking scenario to show you ;). Working Component and Test: @UntilDestroy() @Component({ selector: ......
Read more >
r/Angular2 - Reddit
Hello angular community, I saw in some posts talking about custom decorators to manage subscriptions with components/ services
Read more >
karma cannot read properties of undefined - You.com | The search ...
I am trying to test a method (refreshMemberList()) that contains a subscribe, but when I run the tests I get this error from...
Read more >
@ngneat/until-destroy | Yarn - Package Manager
RxJS operator that unsubscribes when Angular component is destroyed ... A neat way to unsubscribe from observables when the component destroyed.
Read more >
angular/angular - Gitter
hi guys, when I try to test a class using Jest, that import an enum, i get the error Cannot find module './model'...
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