-
-
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
[Feature Request] createContext() not supported in enzyme. #1958
Comments
enzyme does not yet support the createContext API. |
This was referenced Jan 24, 2019
For those who are interested in this, we've tried to move |
I’m going to keep this open, pending support of createContext. |
hyochan
changed the title
[Question] How to test context api provider with enzyme?
[Feature Request] createContext() not supported in enzyme.
Feb 20, 2019
Waiting this feature request, here's a workaround work for me. const outer = shallow(<SimpleComp />);
const Children = outer.props().children({ /* context */ });
const wrapper = shallow(Children); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'd like to know how to test
provider
forcontext api
. I've found some tutorials on testingconsumer
but no tutorial exists for testingprovider
itself.I've tried making test code for above
provder
.The result.
I am trying to work on open source project(talktalk-rn). The code is provided there if you need more information.
The text was updated successfully, but these errors were encountered: