1. React
  2. React Alicante
  3. 2018
  4. Testing a Redux store

Testing a Redux store

Anna Gruber at React Alicante 2018

Redux is a great library to manage application state. Updating a state synchronously is done with a pure function (a so called reducer) - which is easily testable and maintainable. But unit testing reducers doesn't include: - async actions using a middleware - creating a redux store with middleware Because there was no solution for that at that time, I developed chai-redux. A small chai extension which simplifies integration testing a redux store. In my talk I will explain what a redux integration test needs to cover. And how chai-redux helps simplifying them significantly.