-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
does not play well with jest 27 #918
Comments
@TrejGun it looks like this was a breaking change in Jest 27, see https://github.com/facebook/jest/blob/master/CHANGELOG.md#fixes-2. Specifically:
See also testing-library/dom-testing-library#914 which looks related. |
With RTL:
And Jest version 27.0.1 I'm getting |
Seeing the same problems. Will be even be possible for rtl to work in v26 and v27 of Jest with the same version? |
[Date: 2 June 2021] with RTL:
After updating jest version: 26 -> 27 Following Error Message Prompts out.
As I've looked over the PRs mentioned this issue, @kentcdodds has already recognized the issue regarding the jest27 updates on switching default test env from Applause for @eps1lon 👏👏👏 Unfortunately, I could not clearly figure out the future action plan to resolve this breaking change of jest.
Or
Would it be still using jsdom though they suggest node? FYI: |
Having the same issue after upgrading to Jest@27. Is anyone working on a fix? |
We're in the process of fixing this in |
Hello, Facing same issue but it seems to work for |
We have the same issue. Trying to update a monorepo with 297 test suites to jest v27 caused a full 47 test suites to fail. A couple of issues I saw:
Jest 27 config file changes I made:
|
Same issues here but also not only rtl related.
It turned out that disabling core-js under test for us was generally a good idea. However, leaving us with the issue that jest v27 seems to struggle with native promises. |
Closed in #931 |
🎉 This issue is fixed in version 12.0.0-alpha.2 🎉 The release is available on:
|
I got this error : My packages installed :
|
@maximeNaulleau Can you please share which version of |
@MatanBobi I get the same error. I installed [email protected].
|
You don't need to install it on your own, it should be a dependency for |
@testing-library/react
version:"@testing-library/jest-dom": "5.12.0",
"@testing-library/react": "11.2.7",
"jest": "27.0.1",
jsdom
Relevant code or config:
please refer to this project
https://github.com/TrejGun/casino
What you did:
updated jest from 26 to 27
What happened:
Tests are now failing with
Reproduction:
see above
Problem description:
Tests are failing :(
Suggested solution:
N/A
The text was updated successfully, but these errors were encountered: