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
Hi, I'm trying to integrate MirageJS in a existing React Native app that uses Apollo Client as it GraphQL client.
Using MirageJS for development works great, however inside test files I'm having some troubles to make it work.
Could you please provide an example for a React Native app that uses the GraphQL package?
The text was updated successfully, but these errors were encountered:
Hi, I've found why my code was not working for testing, I've needed to add global.FormData = class FormData {} on jest.setup.js. This line of Pretender throws because FormData in undefined whatwg-fetch is used because Apollo client is using the React Native implementation of fetch API but it does not exists for Node env.
This my final version of the jest.setup.js file
Hi, I'm trying to integrate MirageJS in a existing React Native app that uses Apollo Client as it GraphQL client.
Using MirageJS for development works great, however inside test files I'm having some troubles to make it work.
Could you please provide an example for a React Native app that uses the GraphQL package?
The text was updated successfully, but these errors were encountered: