-
Notifications
You must be signed in to change notification settings - Fork 1.1k
@testing-library/react run jest TypeError: (0 , _dom.configure) is not a function #1259
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
Comments
Similar report here, perhaps it can help? Suggests it may be something to do with your jest |
@shashaMF Can you please share a reproduction repo using https://testing-library.com/new-rtl? At the moment we can't help because a screenshot doesn't help us a lot. |
Sorry, we are an internal data system and do not have an external address. I see that the @ testing library/react code doesn't seem to recognize this way of writing: |
Please share your jest config file and we'll try to help. It's written this way because the code is transpiled. |
a wild guess... try changing this line |
@shashaMF these kind of questions are better asked in stackoverflow or in our discord server. |
My problem has been solved. It was caused by a configuration in my Jest configuration. Thanks! |
My problem is that I keep reporting this error while running Jest. If you know, please let me know. Thank you very much!

{
"@testing-library/dom": "9.0.0",
"@testing-library/jest-dom": "6.1.5",
"@testing-library/react": "12.1.3",
"@testing-library/user-event": "^12.1.10",
"react": "^17.0.1",
}
The text was updated successfully, but these errors were encountered: