Replies: 2 comments 5 replies
-
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Note that we don't really have a good story if you wanna use globals instead of importing. We use this in our own repo: https://github.com/facebook/jest/tree/main/packages/test-globals Not sure if something similar would work for RN (I'm guessing not) |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
According to the documentation and jestjs/jest#13133, jest is recommending in favor of their own "@jest/globals".
Would it be better to switch from "@types/jest" to "@jest/globals" in the react-native template?
Beta Was this translation helpful? Give feedback.
All reactions