Open gourav-singhal opened 5 years ago
@zachdunn @samdunn Can you help me out with this? Tried this but it is not working
jest.mock('react-native-fetch-polyfill', () => { fetch: jest.fn().mockImplementation( () => Promise.resolve({ json: () => Promise.resolve(JSON.parse(body)) }), ), })
Seems like this library is not maintained anymore
Can you provide a mock implementation of this module for jest testing?