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
I'm using this package in my Expo/React Native app and when I try to run my front-end unit tests, the Jest runner fails before it even gets to my actual tests.
The runner is saying that fetch is undefined in the ._pushEvent method.
I'm able to resolve this by importing another package (import fetch from 'jest-fetch-mock') into each of my test files. But I was wondering if there was a way that this could be resolved within your package itself?
If it's something that I could help out with by doing a PR, I'd be happy to do so. :-)
Please let me know if you have any questions. Thanks!
The text was updated successfully, but these errors were encountered:
I'm using this package in my Expo/React Native app and when I try to run my front-end unit tests, the Jest runner fails before it even gets to my actual tests.
The runner is saying that fetch is undefined in the
._pushEvent
method.I'm able to resolve this by importing another package (
import fetch from 'jest-fetch-mock'
) into each of my test files. But I was wondering if there was a way that this could be resolved within your package itself?If it's something that I could help out with by doing a PR, I'd be happy to do so. :-)
Please let me know if you have any questions. Thanks!
The text was updated successfully, but these errors were encountered: