Polly.JS: Detailed Overview & Metrics

v6.0.6(10 months ago)

This package is actively maintained.Types definitions are bundled with the npm packageNumber of direct dependencies: 9Monthly npm downloads

@pollyjs/core is a powerful and flexible JavaScript library for recording, replaying, and stubbing HTTP interactions in tests. It allows developers to create reliable and deterministic tests by capturing and replaying network requests and responses. With support for various adapters and plugins, Polly.js can be easily integrated into different testing frameworks and environments.

Compared to similar libraries like Mirage.js or Nock, @pollyjs/core offers a more comprehensive and extensible solution for managing HTTP interactions in tests. Its active maintenance and frequent updates ensure compatibility with the latest web technologies and best practices.

Alternatives:
nock+
axios-mock-adapter+
miragejs+
msw+
fetch-mock+
sinon+
jest-mock+
intercept-stdout+
fake-fetch+
node-mocks-http+

Tags: javascripttestinghttpmockingrecording