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
FakeTimes problem when upgrading jest 25 to 29 #1161
Comments
Same to me. I tested it against the official sample "Scenario 5: setTimeout" from https://react-testing-library-examples.netlify.app/. It appears the |
My error was,
Configuration
But putting |
Except using |
It doesn't look like this bug report has enough info for one of us to reproduce it. Please provide a CodeSandbox (https://react.new), or a link to a repository on GitHub. Here are some tips for providing a minimal example: https://stackoverflow.com/help/mcve |
Closing since no repro was provided. |
Hi, everyone! I have several problems when upgrading jest 25 to 29
(Problem on faketimers)
Installed dependencies
"react": "16.13.1",
"react-dom": "16.13.1",
"@testing-library/react-hooks": "^7.0.2",
"@testing-library/jest-dom": "5.16.5",
"@testing-library/react": "12.1.5",
"@types/jest": "28.1.1",
"@types/react": "^17.0.33",
"jest": "29.2.2",
"jest-environment-jsdom": "^29.2.2",
"jest-junit": "^12.0.0",
"typescript": "4.3"
Jest.config
When using fake timers i have to set legacy to true and the advanceTimers going to works, but it's not work in another test
Example :
On this code advanceTimers not works fine, at some cases there are a few tests that we need to raise the timeout duration, is there any explanation or something ?
If you have any suggestions for my problem, it's going to help me a lot. Thank you
The text was updated successfully, but these errors were encountered: