You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have dead simple pure actions and reducers. The majority of my 'business logic' is in async action thunks (using just redux-thunk). I am testing these (using expect & mocha). It's good, but I ran into a repetitive pattern: 1) setup preconditions, 2) run the action, 3) review the pure actions that resulted.
What is a good way to review these pure actions that resulted? store.subscribe(...) gives access to the state, but I want a trail of actions. I thought of middleware, but that means modifying the way my middleware chain works and using a different configureStore type function only for testing. Is that the best way?
Edit: I realize this is a question/discussion, and would be happy to move it to a better place than an issue.
The text was updated successfully, but these errors were encountered:
I have dead simple pure actions and reducers. The majority of my 'business logic' is in async action thunks (using just redux-thunk). I am testing these (using expect & mocha). It's good, but I ran into a repetitive pattern: 1) setup preconditions, 2) run the action, 3) review the pure actions that resulted.
What is a good way to review these pure actions that resulted?
store.subscribe(...)
gives access to the state, but I want a trail of actions. I thought of middleware, but that means modifying the way my middleware chain works and using a differentconfigureStore
type function only for testing. Is that the best way?Edit: I realize this is a question/discussion, and would be happy to move it to a better place than an issue.
The text was updated successfully, but these errors were encountered: