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
Do we know about any real-world examples of testing async action creators? I struggle to test creators like this:
function add(entity) { return dispatch => { dispatch({ type: ADD, payload: entity }) } }
I looked at test here, but it gave me no clue. Do I have to mock dispatch function or something?
The text was updated successfully, but these errors were encountered:
It depends on what you want to test. Mocking dispatch is reasonable. Please see reduxjs/redux#546.
dispatch
Sorry, something went wrong.
No branches or pull requests
Do we know about any real-world examples of testing async action creators?
I struggle to test creators like this:
I looked at test here, but it gave me no clue.
Do I have to mock dispatch function or something?
The text was updated successfully, but these errors were encountered: