Redux Toolkit 21 ⚛️ Testing Slices — Unit testing reducers and action creators
A Redux slice is the easiest part of a Redux application to test. The reducer is a pure function: given a state and an action, it returns a new state. The action creators are small functions that return plain objects. The async thunks are the only part that requires mocking, because they call the network….