-
Notifications
You must be signed in to change notification settings - Fork 5
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
Full example with connected Component #33
Comments
Unfortunately this is because the latest version of Downgrading to Here's the relevant |
Thanks @minznerjosh I'll let you know if I can make it work. |
We are moving to archive this repo as we no longer support it and am closing this issue as "won't fix". If you're interested in maintaining this repo, please reach out! |
Describe the bug
Following the guides from the documentation about the enzyme-context-redux plugin (here) I miss an examle of the component to be tested. In my project I want to test a connected component but always get the following error when try to shallow it:
Invariant Violation: Could not find "store" in the context of "Connect(ReduxExampleHeader)". Either wrap the root component in a , or pass a custom React context provider to and the corresponding React context consumer to Connect(ReduxExampleHeader) in connect options.
To Reproduce
Steps to reproduce the behavior:
shallow(<ReduxExampleHeader />)
Expected behavior
The component should be rendered
System information
OS Version: Windows 10 pro,
Node Version: v10.15.3
Enzyme Version: 3.10.0
React Version:16.9.0
React Redux: 7.1.1
Redux: 4.0.4
The text was updated successfully, but these errors were encountered: