Summary
In this chapter, we learned about mocking the API. We introduced the MSW library, which is a great tool for mocking APIs in an elegant way. It can work both in the browser and on the server. It is super useful for prototyping and testing the application during development.
In the next chapter, we will integrate the API layer of the application, which will consume the endpoints we just created.