Mock API by intercepting requests on the network level. Seamlessly reuse the same mock definition for testing, development, and debugging.See the website
DescriptionMock Service Worker is an API mocking library that uses Service Worker API to intercept actual requests. Mock Service Worker enables API mocking on the highest level of the network communication chain. It is the closest thing to a mocking server without having to create one. Since Service Worker is a standard API shipped by all modern browsers. Integrating Mock Service Worker into your application, or testing setup, requires no extra configuration, but placing a worker file and declaring mocks.