JavaScript Mocking

Open-source JavaScript projects categorized as Mocking | Edit details

Top 7 JavaScript Mocking Projects

  • mountebank

    Over the wire test doubles

    Project mention: Eskimo is a supercharged mocking server for developers and testers, that aims to abstract the complexities of coding a mock server into simple JSON configurations. | reddit.com/r/node | 2022-01-01

    Supercharged? Sounds like a less-featured Mountebank.

  • testdouble.js (AKA td.js)

    A minimal test double library for TDD with JavaScript

  • OPS

    OPS - Build and Run Open Source Unikernels. Quickly and easily build and deploy open source unikernels in tens of seconds. Deploy in any language to any cloud.

  • examples

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

    Project mention: How we use Apollo to manage GraphQL data in our React Typescript application | reddit.com/r/reactjs | 2021-04-27

    Did you evaluate mock-service-worker? It's a good solution to mocking API requests. When it executes in the browser it uses a service worker to intercept requests, and when it executes in node (e.g. unit tests) it patches the http.Request methods to effectively do the same. Here's an example for mocking Apollo: https://github.com/mswjs/examples/tree/master/examples/graphql-react-apollo

  • open-api-mocker

    A mock server based in OpenAPI Specification

    Project mention: How to handle UI design contributions for OSS? | reddit.com/r/opensource | 2021-04-28

    I've been maintaining this open source project for some time now, and I wanted to make an upgrade to it's aesthetics (give it a logo, a docs site and a fancy readme).

  • mocko

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

    Project mention: Create dummy APIs for faster prototyping 👨‍💻⚡ | dev.to | 2021-10-18

    This is only possible due to Free Open Source Software, if you like the result make sure to leave Mocko and Bigodon a star on GitHub.

  • MockRequests

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

    Project mention: Mocking Axios in Jest when not using shortcut methods? | reddit.com/r/reactjs | 2022-01-17

    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!

  • moql

    Mock GraphQL server for fast reliable integration tests.

  • Scout APM

    Less time debugging, more time building. Scout APM allows you to find and fix performance issues with no hassle. Now with error monitoring and external services monitoring, Scout is a developer's best friend when it comes to application development.

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-01-17.

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 mountebank 1,690
2 testdouble.js (AKA td.js) 1,288
3 examples 320
4 open-api-mocker 45
5 mocko 41
6 MockRequests 28
7 moql 4
Find remote jobs at our new job board 99remotejobs.com. There are 29 new remote jobs listed recently.
Are you hiring? Post a new remote job listing for free.
Static code analysis for 29 languages.
Your projects are multi-language. So is SonarQube analysis. Find Bugs, Vulnerabilities, Security Hotspots, and Code Smells so you can release quality code every time. Get started analyzing your projects today for free.
www.sonarqube.org