-
Notifications
You must be signed in to change notification settings - Fork 273
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
Using something from testing library causes warning: Jest did not exit one second after the test run has completed. #982
Comments
@paskalov-aris I'm experiencing this exact problem, but with |
I'm also experiencing the same issue. Would love to know what you did to solve this @paskalov-aris (assuming it was solved that is) |
I am using Expo and I got the same error. I solved it by using Jest version compatible to Expo (in my case 26.x). The error occurred when I was using Jest 28.x |
I was about to say - downgrading Jest to I still feel like this issue should be reopened though, feels like there's something in the way @testing-library/react-native methods operate that cause this to be an issue in jest v28+. |
Can confirm that downgrading to the version that expo supports fixed the issue for me. expo install jest -- -D |
This seems to be the same error as #1054. @dennis-gonzales @jamesL92 @dapicester @sondreluc @paskalov-aris please check if [this fix]((#1054 (comment)) works for you. |
@mdjastrzebski Can confirm that it fixes this issue for me 👍 |
Describe the bug
When I import and using something from
@testing-library/react-native
the following warning appears:Jest did not exit one second after the test run has completed.
Expected behavior
This warning does not appear
Steps to Reproduce
Just import
render
and use it in a test:Screenshots
Versions
The text was updated successfully, but these errors were encountered: