-
-
Notifications
You must be signed in to change notification settings - Fork 452
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jest test failures in React Native 0.72 #468
Comments
@jkepps did you find the solution? had same issue |
I fixed it by adding |
How about if must use the real timer in some test cases? |
I am also having this issue, and I cannot use fake timers. |
I encountered a similar issue with the same error, for some reason the CLI had the NODE_ENV set to "development". Unsetting the NODE_ENV resolved the issue. |
After migrating to react native 0.72, a simple jest test with react testing library gives the following error about a hundred times and the test fails:
ReferenceError: You are trying to access a property or method of the Jest environment after it has been torn down. From src/components/form/CollapsibleFormField/index.test.tsx.
Here is the component and its test:
here is the test output:
The text was updated successfully, but these errors were encountered: