axios-mock-adapter VS mock-requests

Compare axios-mock-adapter vs mock-requests and see what are their differences.

SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
surveyjs.io
featured
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
axios-mock-adapter mock-requests
3 4
3,386 35
- -
2.3 5.4
15 days ago about 1 year ago
JavaScript JavaScript
MIT License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

axios-mock-adapter

Posts with mentions or reviews of axios-mock-adapter. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-04-30.

mock-requests

Posts with mentions or reviews of mock-requests. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-01-17.
  • What libraries do you use to mock API calls in a React app?
    1 project | /r/reactjs | 6 Dec 2023
    I wrote mock-requests before MSW came out. It was, to my knowledge, the first dev-friendly mocking library out there that didn't involve setting up a separate server yet still allowed dynamic responses. Since MSW came out, I still think mock-requests has a better and simpler API but MSW allows you to see the network request in the browser's dev tools which is super nice IMO.
  • How to mock the return value of an rtk query hook?
    1 project | /r/reactjs | 20 Apr 2023
    I'd mock the network responses from the source. Others already mentioned MSW, but I personally like mock-requests better. I don't need to use a complex config nor chained methods, I still get dynamic responses based on request payload, and I can mock the entire app's requests in a single config object (harking back to not needing complex configuration logic or chained methods).
  • Mocking Axios in Jest when not using shortcut methods?
    2 projects | /r/reactjs | 17 Jan 2022
    The companies I worked at were using mock-requests to help them with this and it greatly simplified their testing environment. A single call in a test-setup file meant all network calls for all flows were suddenly mocked and accessible for both unit testing and development when servers were down. I'd highly recommend checking it out!
  • What are the new and exciting tech for React projects for 2022?
    16 projects | /r/reactjs | 5 Jan 2022
    Feel free to check out the in-depth ReadMe, install, see the JSDoc, source code, or check out the React demo.

What are some alternatives?

When comparing axios-mock-adapter and mock-requests you can also consider the following projects:

vue-admin-template - a vue2.0 minimal admin template

mocktail - Free, 11MB, containerized, self-hosted mock server.

quiz-app - QuizApp build with Html Javascript with Docker support

LibreTrader - Open Source Trading Journal

mocko - Mocking made easy, proxy your API and choose which endpoints to mock

msw - Seamless REST/GraphQL API mocking library for browser and Node.js.

solid-cloudinary-image-upload - Image upload using solidjs and cloudinary

frhd - An api wrapper for Free Rider HD.

shop-app - A shopping mobile application made with react native for Android.

jotai - 👻 Primitive and flexible state management for React

parrot - ✨ Scenario-based HTTP mocking

msw-storybook-addon - Mock API requests in Storybook with Mock Service Worker.