@Untildestroy decorators breaks the mock component
See original GitHub issueHi,
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:
- Created 3 years ago
- Comments:8 (5 by maintainers)
Top 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 >
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
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.
@satanTime will create a repo and share with you.