-
-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
9.6.1 breaks tests with ngrx #142
Comments
Hi, thank you for the report. I have tests with |
I'll see if I can extract such a test. |
Thanks, I think if you should how TestBed is setup and how module imports / declarations look like it should be enough. Perhaps I'm missing something in my setup. |
Test for MyComponent (in MyModule) fails with mocked "MyOtherModule" that has ngrx integrated.
|
Thanks, I was able to reproduce the issue, working on the fix. |
Hi, again, might you verify the fix? Simply unpack it and put under |
Yes, fixed these problems. Thanks for your quick fix! |
Cool, the fix will be released on Sunday. About the form - might you share the test and the template of its component? |
Hi there, 9.6.2 has been released. Please let me know how it works for you. |
We upgraded ng-mocks to 9.6.1 today and several (about 10 of ~700) tests break because of ngrx missing injection tokens:
These now failing tests work absolutely fine with 9.5.0, @ngrx/effects 9.2.0 and @ngrx/store 9.2.0.
I see that the Module mock has been totally refactored and as far as I can tell it now seems to sometimes miss the given imports of StoreModule.forRoot(), StoreModule.forFeature(), EffectsModule.forRoot() and EffectsModule.forFeature().
The text was updated successfully, but these errors were encountered: