Skip to content
Dev Tools Library

Mock Service Worker

Mocks APIs by intercepting real network requests.

LibraryOpen source

Library that intercepts requests at the network level (browser and Node) to simulate APIs in tests and development, without changing application code.

When to use

To test and develop the front end without depending on a running backend.

When to avoid

If you prefer integration tests against the real backend.

From the same area, with a close purpose.

  • Generates realistic fake data: names, addresses, text and more.

    LibraryOpen source★ 15.5K
  • Automated accessibility testing engine (WCAG).

    LibraryOpen source★ 7.7K
  • Mutation testing: measures whether your tests actually catch bugs.

    CLIOpen source★ 3.3K
  • Starts real databases and services in disposable containers during tests.

    LibraryOpen source★ 2.6K