Closed krzyhan closed 3 years ago
@krzyhan could you provide a minimal reproducible example? This error is thrown Cannot read property 'get' of undefined
when Ivy is actually disabled and it can be disabled in testing environment.
I'm closing the issue. If you can reproduce it, let us know.
Sorry guys, I updated Angular & and all dependencies to the latest version and it's working fine.
Thanks for replying.
Hi, Is there any workaround to deal with an error while testing with spectator & ng-mocks?
Child component has a decorator
@UntilDestory()
and when I useMockComponent(ChildComponent)
I cannot run test. Getting error like with disabled Ivy (but Ivy is enabled).Cannot read property 'get' of undefined
Sth like this:
If I use
shallow: true
w/out usingMockComponent()
everything is working fine. Any idea?