-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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, RTL, @apollo/client/testing, test failures, Element type is invalid: expected a string
#11330
Comments
Unfortunately, I cannot access your codespace. What I can say is that our own tests (which are based on jest and RTL) are using Can you do a |
We've hard pinned to |
I really cannot say anything without being able to see your setup, but I can assure you that thousands of developers use |
We're closing this issue now but feel free to ping the maintainers or open a new issue if you still need support. Thank you! |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Issue Description
Setup a
test-utils
directory to load providers we utilize to manage react themes with JSS. Outlined by RTL here, https://testing-library.com/docs/react-testing-library/setup/. Our custom render is setup likethe
AllTheProviders
component is just a wrapper that also includes a theme provider andchildren
.Any component that runs
MockedProvider
runs into this failure.We are locked to 3.3 due to this issue. I can confirm that anything after 3.4 has seen this issue.
Link to Reproduction
https://bug-free-space-spoon-97776ww9vwqwf7vjp.github.dev/
Reproduction Steps
Setup a jest, jss, rtl, and apollo-client ^3.3.16
The text was updated successfully, but these errors were encountered: