-
-
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
wrapper.instance() is always undefined #1104
Comments
You're using react 16, which enzyme doesn't support yet. You'll see that Now that #1007 has landed, once v3 is released, you'll be able to use react 16; for now you have to stick to 15. |
So I experienced this issue today after following the instructions here to install ie
|
@archy-bold would you want to submit a PR improving the docs? |
Actually, I just realised I followed the wrong instructions on the docs and they're already updated. I followed it from a link on this issue #875 |
If anybody else runs across this and wants to know how to get enzyme to work with React 16, read this: |
I have
In my test file i want to check In my test i want to check if component has one notification
but the I used the async because of the |
What is TS2722? Are you perhaps using TypeScript with incorrect types? |
|
Looking at the source (Shallow)
For me
this.renderer._instance
is defined, howeverthis.renderer._instance._instance
is not.I'm using it like this
packages
The text was updated successfully, but these errors were encountered: