I basically want to run a series of actions against a state/reducer and make assertions about the result. Is there a way to do this right now? The only way I seem to be able to achieve this is a kind of unwieldy:
const red = Reducer(reducer)
const resultingState = red.withState(
red.withState(red.execute(actionOne)).execute(actionTwo))
.execute(actionThree)
Would be great if there were a built-in way to chain actions?
Is there any way to do something like this:
I basically want to run a series of actions against a state/reducer and make assertions about the result. Is there a way to do this right now? The only way I seem to be able to achieve this is a kind of unwieldy:
Would be great if there were a built-in way to chain actions?