Why would you not want to test the connected component? Just curious, a lot of the time, there could be complex selectors that run on a component in the "mapStatesToProps" section retrieving data from the store, why wouldn't you want to test this with the connected component (which is possible btw)
excellent video, thank you so much
What if my component that I test does API call with hook that was generated by Redux Toolkit
Why would you not want to test the connected component? Just curious, a lot of the time, there could be complex selectors that run on a component in the "mapStatesToProps" section retrieving data from the store, why wouldn't you want to test this with the connected component (which is possible btw)
Why there is not an errow showing "could not find react-redux context value; please ensure the component is wrapped in a " when you render ?
That’s because he imports the component to the test, not the default export. Checkout the bit where he starts writing tests. It’s explained.
can u post demo with the same test but for hooks? using useDispatch, and useSelector?
Did you figure out how to do the same for hooks? Please do share the link if you have. Thanks!
Very informative.Thank you so much. Can you please share your github link for this session.
Can you share link to all these code ? Kudos Thankss