About
Mock Service Worker is a mocking app for HTTP request that:
- intercepts requests at the network layer
- and returns data as simple objects via mock handlers defined in a file.
You can write everything as if it was communicating with a backend service.
Advantage
- It does not require to write application or test code
- You can have API calls return bad data for unhappy path testing, particular data for layout testing, etc.