Summary
In this chapter, we have learned how to correctly test a complete application with side effects and complex logic as if it was a real shop with a cart system. Also, we have learned how to handle asynchronous operations to an external API with Rematch, and how this entire logic can be encapsulated inside Rematch models and tested easily for reuse in other applications.
In the next chapter, we'll iterate over this application using all the superpowers that Rematch offers thanks to its official Rematch plugin ecosystem. We'll introduce automatic loading/success behaviors, selectors for memoizing computed values, and even persisting the cart in the browser storage. In summary, we'll analyze how Rematch plugins work internally and the story behind them.