We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have a component with context, I test like this:
const context = {a: "b"}; mount(<Login />, context);
it works. but I wrap by Provider. It not work:
import configureStore from 'redux-mock-store'; const context = {a: "b"}; const store = mockStore(); mount(<Provider store={store}><Login /></Provider>, context);
How to fix
The text was updated successfully, but these errors were encountered:
Generally Providers provide context; so they'd ignore the context you set in mount.
Sorry, something went wrong.
#664 should address this, along with #1960.
No branches or pull requests
I have a component with context, I test like this:
it works.
but I wrap by Provider. It not work:
How to fix
The text was updated successfully, but these errors were encountered: