Loading
Current section: Network 7 exercises
lesson

Recap of Network

Loading lesson

Transcript

00:00 And this concludes the Network Mocking Exercises. Now you know how to intercept requests in your tests and produce any responses you want. Whether it's successful responses or error responses, you are in full control of the network when using MSW. Now MSW builds on top of the concept of reusability.

00:18 So you are able to reuse the same request handlers for other purposes too. For example, for local development in the browser, or for end-to-end tests in tools like Playwright or Cypress. I highly encourage you to explore MSW on your own if you head to mswgs.io to read the docs,

00:34 browse through best practices and usage examples to perfect your network mocking techniques.