JavaScript Mocking

Open-source JavaScript projects categorized as Mocking

Top 9 JavaScript Mocking Projects

  • axios-mock-adapter

    Axios adapter that allows to easily mock requests

    Project mention: Why is Firebase Emulator testing considered as unit testing, but integration testing? | reddit.com/r/Firebase | 2022-11-29
  • mountebank

    Over the wire test doubles

  • Appwrite

    Appwrite - The Open Source Firebase alternative introduces iOS support . Appwrite is an open source backend server that helps you build native iOS applications much faster with realtime APIs for authentication, databases, files storage, cloud functions and much more!

  • testdouble.js (AKA td.js)

    A minimal test double library for TDD with JavaScript

  • examples

    Examples of Mock Service Worker usage with various frameworks and libraries. (by mswjs)

  • http-fake-backend

    Build a fake backend by providing the content of JSON files or JavaScript objects through configurable routes.

  • open-api-mocker

    A mock server based in OpenAPI Specification

  • mocko

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

  • Klotho

    AWS Cloud-aware infrastructure-from-code toolbox [NEW]. Build cloud backends with Infrastructure-from-Code (IfC), a revolutionary technique for generating and updating cloud infrastructure. Try IfC with AWS and Klotho now (Now open-source)

  • MockRequests

    The first fetch/XMLHttpRequest network-mocking library that's actually user-friendly

  • moql

    Mock GraphQL server for fast reliable integration tests.

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2022-11-29.

JavaScript Mocking related posts

Index

What are some of the best open-source Mocking projects in JavaScript? This list will help you:

Project Stars
1 axios-mock-adapter 3,098
2 mountebank 1,831
3 testdouble.js (AKA td.js) 1,362
4 examples 492
5 http-fake-backend 279
6 open-api-mocker 68
7 mocko 61
8 MockRequests 31
9 moql 4
Write Clean JavaScript Code. Always.
Sonar helps you commit clean code every time. With over 300 unique rules to find JavaScript bugs, code smells & vulnerabilities, Sonar finds the issues while you focus on the work.
www.sonarsource.com