Jeff Lau
Jeff Lau
@bhatti-waqas I had a look at it briefly, but didn't have time to take a deep dive. Have you tried a simpler example?
Happy to take a pull request
Sounds like you're doing integration tests. I prefer to use react-testing-library and use wait. I haven't used enzyme before so i'm not sure it has it, but it probably should...
Where are you using mockResponses?
That is definitely not expected behavior. I’ve never used it with generators though. What does your whole test look like? After you mock it, how do you call your function...
I came back to look at this again. I just realised what your code is doing. Can you try doing ``` fetch .mockReject(new Error('rejected') .once(addressUserFailure, { headers: { 'Content-Type': 'application/json'...
It definitely should not be 1. Can you create replicate the bug in a simplified repo?
I've PR'd your repo with an async await example. I'm not familiar with sagas, so I couldn't really debug yours for you. But it feels like the initial call uses...
Can't immediately see what's going, but it doesn't look like you have a mock inside your test file: ```js describe('request', () => { beforeEach(() => { fetch.resetMocks(); }); it('perform the...
Thanks for reporting this. PR is welcome for this. If not I will try and find some time in the next week or so