awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
ctimmerm avatar

ctimmerm/axios-mock-adapter

0
View on GitHub↗
3,544 stars·252 forks·JavaScript·MIT·28 views

Axios Mock Adapter

This library provides a utility for intercepting and simulating HTTP requests within the Axios ecosystem. It functions as an HTTP request interceptor that allows developers to define mock responses for outgoing network traffic, enabling frontend integration testing and development without requiring live backend infrastructure.

The tool distinguishes itself by offering granular control over the request lifecycle, including the ability to match specific request patterns and forward unmatched traffic to actual destinations. It supports the simulation of unstable network environments by injecting artificial latency, timeouts, and connection errors, which helps verify application resilience under varying conditions.

Beyond response simulation, the library includes capabilities for request history tracking and verification. This allows developers to inspect the parameters, headers, and frequency of outgoing calls to ensure application logic interacts with external services as expected. The library is designed for use in both browser and Node environments.

Features

  • HTTP Mocking - Provides a utility for intercepting and simulating HTTP requests within the Axios ecosystem to facilitate testing without external network dependencies.
  • Frontend API Mocking - Enables frontend development to proceed independently of backend availability by intercepting and returning predefined data for API endpoints.
  • HTTP Request Interceptors - Captures outgoing network traffic to return predefined responses or simulate various network conditions during development and testing.
  • Network Request Interception - Intercepts outgoing HTTP requests to return predefined mock responses for testing without live backend infrastructure.
  • Request Matching Engines - Evaluates outgoing request configurations against a registry of defined rules to determine if a mock response should be returned.
  • Request Verification - Tracks and inspects the history of outgoing HTTP calls to ensure application logic sends the correct parameters and headers.
  • Stateful Request Tracking - Records every intercepted network request and its associated data, enabling verification of call counts, parameters, and execution order during testing.
  • JavaScript Testing Frameworks - Acts as a development aid for verifying application logic by inspecting request history and controlling server responses in a predictable environment.
  • Network Condition Simulation - Simulates unstable network conditions like latency and connection errors to verify application resilience during testing.
  • Network Failure Simulations - Tests application resilience by injecting artificial latency, timeouts, and connection errors into outgoing HTTP requests.
  • Frontend Integration Testing - Simulates backend API responses within a browser or Node environment to verify how application code handles data without a live server.
  • Request Interception Middleware - Intercepts HTTP calls before they leave the client environment to allow for the injection of synthetic data or network failures.

Star history

Star history chart for ctimmerm/axios-mock-adapterStar history chart for ctimmerm/axios-mock-adapter

How this analysis was created: This summary and feature list are AI-generated from collected project material and can contain mistakes. Stars, license and language are imported from GitHub. Inclusion does not mean that we have tested or audited this project. Check the source documentation for any feature you depend on. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Projects sharing features with Axios Mock Adapter

These projects share indexed features with Axios Mock Adapter. Shared tags can include platform or build tooling; verify the primary use case before treating a result as a replacement.
  • wheresrhys/fetch-mockwheresrhys avatar

    wheresrhys/fetch-mock

    1,310View on GitHub↗

    Fetch-mock is a testing utility designed to isolate application code from external network dependencies by intercepting and overriding outgoing traffic. It functions as a network request interceptor that captures calls made via the Fetch API, allowing developers to simulate server responses and verify application behavior without requiring a live backend infrastructure. The library distinguishes itself through a unified interface that provides consistent network interception logic across diverse runtime environments, including browsers, service workers, and server-side platforms. By replacing

    JavaScript
    View on GitHub↗1,310
  • mswjs/mswmswjs avatar

    mswjs/msw

    17,977View on GitHub↗

    MSW is a JavaScript API mocking library and integration testing tool designed to intercept network requests at the network level. It allows for the definition of mock data and status codes using routing syntax to simulate server responses without requiring changes to the application source code. The project utilizes a service worker to proxy API calls in the browser, providing a mechanism for isolated frontend development and testing. It employs platform-specific network adapters to maintain a consistent mocking interface across both browser and Node.js environments. The library covers a ran

    TypeScriptapiapi-mockingdevtools
    View on GitHub↗17,977
  • netflix/pollyjsNetflix avatar

    Netflix/pollyjs

    10,253View on GitHub↗

    Pollyjs is an HTTP mocking and recording library designed to capture and replay network interactions to create deterministic tests. It functions as a request interceptor and stubbing framework that records real API responses into files, ensuring consistent test results across different environments without relying on live network servers. The tool utilizes pluggable network adapters to support various environments and employs a state-based mode switching system to toggle between recording, replaying, and stubbing behaviors. It uses pattern-based request matching and persistent interaction sto

    JavaScriptbrowserjavascriptnetflix
    View on GitHub↗10,253
  • nock/nocknock avatar

    nock/nock

    13,103View on GitHub↗

    nock is a Node.js HTTP mocking library and request interceptor. It captures outgoing network traffic to specific hosts and paths, returning predefined responses to decouple applications from external servers during automated testing. The project functions as an API expectation framework to verify that specific calls were made with correct parameters. It includes a traffic recorder that captures real network interactions as fixtures for playback and a network simulation tool to introduce artificial latency or trigger network errors. Its capabilities cover request matching via hostnames, paths

    JavaScripthttpjavascriptmock
    View on GitHub↗13,103
Compare all 30 related projects→

Frequently asked questions

What does ctimmerm/axios-mock-adapter do?

This library provides a utility for intercepting and simulating HTTP requests within the Axios ecosystem. It functions as an HTTP request interceptor that allows developers to define mock responses for outgoing network traffic, enabling frontend integration testing and development without requiring live backend infrastructure.

What are the main features of ctimmerm/axios-mock-adapter?

The main features of ctimmerm/axios-mock-adapter are: HTTP Mocking, Frontend API Mocking, HTTP Request Interceptors, Network Request Interception, Request Matching Engines, Request Verification, Stateful Request Tracking, JavaScript Testing Frameworks.

Which projects share features with ctimmerm/axios-mock-adapter?

Projects with overlapping indexed features include: wheresrhys/fetch-mock — Fetch-mock is a testing utility designed to isolate application code from external network dependencies by… mswjs/msw — MSW is a JavaScript API mocking library and integration testing tool designed to intercept network requests at the… netflix/pollyjs — Pollyjs is an HTTP mocking and recording library designed to capture and replay network interactions to create… nock/nock — nock is a Node.js HTTP mocking library and request interceptor. It captures outgoing network traffic to specific hosts… requestly/requestly. getsentry/responses — Responses is a Python mocking library designed to intercept outgoing HTTP calls made with the Requests library to…

Curated searches featuring Axios Mock Adapter

Hand-picked collections where Axios Mock Adapter appears.
  • HTTP Request Mocking Libraries