Redux How to update the store in unit tests?
问题 Using enzyme, mocha and expect asserts. The aim of my unit test is to check that dispatch gets called with the correct arguments when paused and not paused in mergeProps. I need to dynamically change the state of my store to do: paused: true . At the moment I try and update the paused value by dispatching but I don't think this is correct because it's just a mock and never actually runs through the reducer. I am using the package redux-mock-store. How do I do this? describe('Play Container',