-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
MockReducerManager.addReducers is not a function when testing #2776
Comments
Hi @nagyadam2092 You are right - adding these methods and making them a In the meantime you might to extend Do you want to send a PR for the fix? |
Thanks for the reply @alex-okrushko ! Didn't know about the Discord community, going to check it! |
As per the guideline states, I already asked my general support question on SO: https://stackoverflow.com/questions/64715061/addreducer-missing-on-mockstore
but didn't get any answers yet, so I opened an Issue instead, sorry if this is still not following the guidelines.
Basically my question is that what is the proposed setup if my code uses
ReducerManager.addReducers
in a test environment. Our setup relies on dynamically adding reducers to the store, but thisReducerManager.addReducers
call breaks tests with this error:this.reducerManager.addReducers is not a function
.What is the suggested way of testing modules that are calling
ReducerManager.addReducers
? Maybe adding this asnoop
calls would solve the issue? (like this PR: https:/ngrx/platform/pull/2265/files)The text was updated successfully, but these errors were encountered: