Error in Test cases
Describe the bug
We are trying to mock context and spy on dispatch. But we are not able to do so. dispatch is coming as undefined.
` const dispatch = jest.fn();
jest.spyOn(ReactExports, 'useContext').mockReturnValue(() => { return dispatch }); `
Please suggest how to mock context and test dicpatch.
Hi, @nicocunin @kcmr @johnmcase @andrusch ,
Can you please have a look at this please
Hi, @nicocunin @kcmr @johnmcase @andrusch ,
Can you please have a look at this please
Hi, @nicocunin @kcmr @johnmcase @andrusch ,
Can you please have a look at this please
Hi @vinitkumargoel
I'm not part of the maintainers of this project and only contributed once to it to fix an error that was affecting me. I don't know the code enough to help you with this and I don't have time either. Sorry.