-
Hi, We are working on changing our selectors with props over to factory selectors as recommended here: #2980 But we are now kinda stuck how we should test our selectors now. In the past we would do something like:
What we are struggling with is that in the past you could pass in a custom Just to be clear I don't want to mock my selectors in this case because I want to test the implementation of the selector. (So I am not looking for #3279 ) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Have you tried to invoke the factory to create the selector? |
Beta Was this translation helpful? Give feedback.
Have you tried to invoke the factory to create the selector?
expect(foobarSelector('222-222-222').projector(state)).toEqual(expected);