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
Error: ShallowWrapper::state() can only be called on the root #814
Comments
I think #431 might be relevant here. |
You want |
I finally found a very good solution to get a wrapper from a decorated component. For shallowed components you can use const wrapper = mount(shallow(<MyComponent />).get(0)) Works like a charm :) |
@dabit1 Thank you very much your tip worked like a charm for me too |
@dabit1 When I do that I just get a bunch of errors: |
Hi!
|
I am getting this error:
Error: ShallowWrapper::state() can only be called on the root
Here is my test:
Would anyone be able to tell me how I can access/test the state of the
SignUpForm
component?The text was updated successfully, but these errors were encountered: