Chapter 6
Unit Testing Redux
Section 3
Writing tests for Async Actions with Moxios and Redux Mock Store
We have an async action using axios and promise middleware that cannot be tested the regular way. - Install required tools moxios and Redux mock store, and explain the reason for that, and create mock store - Write test to call the fetchCustomer action creator and get the dispatched action for comparison - Test if the action pending and fulfilled are dispatched in order or not and fi it