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
{{ message }}
This repository was archived by the owner on Mar 5, 2022. It is now read-only.
I am trying to unit test a custom hook which also uses redux hook, like useSelector & useDispatch but I am getting an error that the hook is not wrapped in Provider. I am mounting the hook using mountHook but am not sure how to get around the provider issue. Any help is appreciated.
Internally the mountHook call the hook inside a component, so I was wondering if there is a way we can change that, or if there is any other work around to go over this issue.