-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
TyperError: this._instance.render is not a function #2319
Comments
Try updating to the latest enzyme and enzyme-adapter-react-16; also, what version of react and react-dom and react-test-renderer are you using? They all have to match. Separately, there doesn't yet exist a react native adapter for enzyme (see #1436), so until there is, enzyme won't work properly with many kinds of react-native components. |
@ljharb I have updated enzyme & enzyme-adapter-react-16 and tried still getting same error, Version :
|
react-test-rendered MUST be the exact same minor version as react and react-dom - 16.9, only. |
still getting the same issue downgraded |
That's a lot of things to update all at once. I'd suggest downgrading them all back, and then upgrading one thing at a time and seeing which causes the failure. |
can u suggest which library will throw this kind of error, because its too hard to fallback for all dependencies which is working fine in development side |
I'm not sure i understand why; to upgrade or downgrade is a single The error is coming from react-test-renderer, but all of the react packages, and enyzme, are so tightly coupled that there's not really a way to tell. |
After downgraded all the testing dependencies to previous working version, i'm getting this issue, Error :
|
That looks like a jest issue; perhaps your lockfile wasn't reverted properly? Try to get things working like they were previously, and then upgrade one thing at a time until something breaks. |
still getting the same issue, can u please check this Package.json
|
i'm getting empty
|
After updating all the react-native and jest dependencies for app, test is not running its throwing error like this,
Error :
Version :
The text was updated successfully, but these errors were encountered: