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

Descoperă cele mai bune repository-uri open source cu căutare AI.

ExploreazăCăutări recomandateAlternative open-sourceSoftware self-hostedBlogHartă site
ProiectDespreCum realizăm clasamentulPresăServer MCP
LegalConfidențialitateTermeni
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
ctimmerm avatar

ctimmerm/axios-mock-adapter

0
View on GitHub↗
3,544 stele·252 fork-uri·JavaScript·MIT·7 vizualizări

Axios Mock Adapter

Această bibliotecă oferă un utilitar pentru interceptarea și simularea cererilor HTTP în ecosistemul Axios. Funcționează ca un interceptor de cereri HTTP care permite dezvoltatorilor să definească răspunsuri mock pentru traficul de rețea de ieșire, permițând testarea integrării frontend și dezvoltarea fără a necesita infrastructură backend live.

Instrumentul se distinge prin oferirea unui control granular asupra ciclului de viață al cererii, inclusiv capacitatea de a potrivi modele specifice de cereri și de a redirecționa traficul nepotrivit către destinații reale. Suportă simularea mediilor de rețea instabile prin injectarea de latență artificială, timeout-uri și erori de conexiune, ceea ce ajută la verificarea rezilienței aplicației în condiții variabile.

Dincolo de simularea răspunsurilor, biblioteca include capabilități pentru urmărirea și verificarea istoricului cererilor. Acest lucru permite dezvoltatorilor să inspecteze parametrii, headerele și frecvența apelurilor de ieșire pentru a se asigura că logica aplicației interacționează cu serviciile externe conform așteptărilor. Biblioteca este concepută pentru utilizare atât în medii de browser, cât și în Node.

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.

Istoric stele

Graficul istoricului de stele pentru ctimmerm/axios-mock-adapterGraficul istoricului de stele pentru ctimmerm/axios-mock-adapter

Căutare AI

Explorează mai multe repository-uri excelente

Descrie ce ai nevoie în limbaj simplu — AI-ul sortează mii de proiecte open source selectate în funcție de relevanță.

Start searching with AI

Colecții curatoriate care includ Axios Mock Adapter

Colecții selectate manual în care apare Axios Mock Adapter.
  • Biblioteci pentru mocking de cereri HTTP

Întrebări frecvente

Ce face ctimmerm/axios-mock-adapter?

Această bibliotecă oferă un utilitar pentru interceptarea și simularea cererilor HTTP în ecosistemul Axios. Funcționează ca un interceptor de cereri HTTP care permite dezvoltatorilor să definească răspunsuri mock pentru traficul de rețea de ieșire, permițând testarea integrării frontend și dezvoltarea fără a necesita infrastructură backend live.

Care sunt principalele funcționalități ale ctimmerm/axios-mock-adapter?

Principalele funcționalități ale ctimmerm/axios-mock-adapter sunt: HTTP Mocking, Frontend API Mocking, HTTP Request Interceptors, Network Request Interception, Request Matching Engines, Request Verification, Stateful Request Tracking, JavaScript Testing Frameworks.

Care sunt câteva alternative open-source pentru ctimmerm/axios-mock-adapter?

Alternativele open-source pentru ctimmerm/axios-mock-adapter includ: 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…

Alternative open-source pentru Axios Mock Adapter

Proiecte open-source similare, clasificate după numărul de funcționalități comune cu Axios Mock Adapter.
  • wheresrhys/fetch-mockAvatar wheresrhys

    wheresrhys/fetch-mock

    1,310Vezi pe 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
    Vezi pe GitHub↗1,310
  • mswjs/mswAvatar mswjs

    mswjs/msw

    17,977Vezi pe 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
    Vezi pe GitHub↗17,977
  • netflix/pollyjsAvatar Netflix

    Netflix/pollyjs

    10,253Vezi pe 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
    Vezi pe GitHub↗10,253
  • nock/nockAvatar nock

    nock/nock

    13,103Vezi pe 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
    Vezi pe GitHub↗13,103
  • Vezi toate cele 30 alternative pentru Axios Mock Adapter→