-
Notifications
You must be signed in to change notification settings - Fork 109
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
Invariant Violation: getNodeFromInstance: Invalid argument. #35
Comments
Sorry, unfortunately I do not have any experience with Jest 😕 I noticed a typo in your render method |
|
I've run into the same problem when writing a Jest snapshot for a component I've built that uses Measure. Also Measure fails to capture results when using Enzyme's mount() to test the component. |
@postrad any ideas on how we can make Jest work with the Measure component? |
I have the same issue... |
seems the same issue, should use refs but not findDOMNode() |
@souporserious can you help fix this ? |
I'm facing the same issue. I created this PR, but I'm not really sure if this is the best approach. Could you review it, please? |
Also something I'm experiencing, #41 looks promising. Any update on if that could be accepted? |
Sorry just saw this, I'm trying to determine the best way to handle this and get rid of |
Alright, I think I finally have an idea how we can make this work. Pretty simple addition, you will just be required to pass a It would look something like this:
|
im facing the same issue. |
Jest testing should finally work! Please see the latest release. I did a full rewrite, there is no more |
I'm following the example at https://facebook.github.io/jest/docs/tutorial-react.html#content in order to use snapshots with jest.
Code:
Unit test:
Error code:
The text was updated successfully, but these errors were encountered: