What do you need?
Where are you running tests?
Do you need record/replay functionality?
Do you need record/replay functionality?
What type of test data do you need?
We recommend: MSW
Mock Service Worker is perfect for modern full-stack applications. It works in both browsers and Node.js with the same API.
We recommend: Nock
Nock is the simplest HTTP mocking library for Node.js. Perfect for straightforward API testing.
We recommend: Nock or Polly.js
Both Nock and Polly.js offer record/replay functionality for Node.js. Nock is simpler, while Polly.js has more advanced features.
We recommend: Polly.js
Polly.js provides powerful record/replay capabilities for both Node.js and browser environments.
We recommend: Pact
Pact is the industry-standard tool for consumer-driven contract testing across multiple languages.
We recommend: Faker
Faker.js is the most popular library for generating realistic fake data in JavaScript.
We recommend: Fishery + Faker
Combine Fishery's type-safe factories with Faker for generating complex test objects.
We recommend: Mockaroo
Mockaroo is perfect for generating large datasets in multiple formats via its web interface or API.