You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I dont think this is an issue with NGRX or your test setup,
In the example you have provided https://github.com/Fallenstedt/users-ngrx
You have defined your state as: { user: UsersState }
but you are loading in your feature state as export const USERS_FEATURE_KEY = 'users';
changing either your feature state to user or your state interface to users will solve your issue?
EDIT:
ive just tested it and its correct, your state/definitions are incoherent, follow the tip above to rectify
@King-i I cannot thank you enough. Last night I was so confused as to why I could not get my effects to to run properly. A single missing character led to so much confusion. I need to use my USERS_FEATURE_KEY liberally.
This is a classic "D'oh!" moment. I applied changes, and my tests work properly now.
Minimal reproduction of the bug/regression with instructions:
This issue is regarding tests. You can clone this simple example here: https://github.com/Fallenstedt/users-ngrx
Expected behavior:
The effect uses
withLatestFrom
to pipe off the store and obtain data in the store.Removing or adding
withLatestFrom
in the effect will make the test pass or fail respectively.The error I see when I have an effect using
withLatestFrom
isI would expect tests to pass when my effect uses
withLatestFrom
Versions of NgRx, Angular, Node, affected browser(s) and operating system(s):
Other information:
This issue references #414. Other people still have problems with this when using ngrx v7
I would be willing to submit a PR to fix this issue
[X] Yes!!!!!!!!!!!!!!!!!! (Assistance is provided if you need help submitting a pull request)
The text was updated successfully, but these errors were encountered: