Summary
You should now have a good understanding of test-driving complex Redux reducers and middleware.
First, we added support undo/redo with a Redux decorator reducer. Then, we built Redux middleware to save and load existing states via the browser’s LocalStorage
API. And finally, we looked at how to test-drive changing the browser’s focus.
In the next chapter, we’ll look at how to test-drive something much more intricate: animation.