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
After implementing branch.io in my project I've installed this package input my project, to be able to gracefully handle deconstruction of the link. This works like a charm. Thanks
However when I run my tests i get a the following error
ReferenceError: You are trying to `import` a file after the Jest environment has been torn down.
at node_modules/react-native-url-polyfill/index.js:13:69
at Object.getValue [as URL] (node_modules/react-native/Libraries/Utilities/defineLazyObjectProperty.js:43:16)
at Array.forEach (<anonymous>)
ReferenceError: You are trying to `import` a file after the Jest environment has been torn down.
at node_modules/react-native-url-polyfill/index.js:16:23
at Object.getValue [as URLSearchParams] (node_modules/react-native/Libraries/Utilities/defineLazyObjectProperty.js:43:16)
at Array.forEach (<anonymous>)
In my code i import URL from this lib like this import { URL } from 'react-native-url-polyfill'
Should I write a mock for this? Does such a mock already exist?
After implementing branch.io in my project I've installed this package input my project, to be able to gracefully handle deconstruction of the link. This works like a charm. Thanks
However when I run my tests i get a the following error
In my code i import URL from this lib like this
import { URL } from 'react-native-url-polyfill'
Should I write a mock for this? Does such a mock already exist?
A bit info about my system
npx envinfo --preset jest
npx react-native info
The text was updated successfully, but these errors were encountered: