TypeScript Mock

Open-source TypeScript projects categorized as Mock

Top 23 TypeScript Mock Projects

  • msw

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

    Project mention: Mocks agnósticos para bibliotecas de requisições HTTP no Node.js | dev.to | 2023-10-23
  • mockoon

    Mockoon is the easiest and quickest way to run mock APIs locally. No remote deployment, no account required, open source.

    Project mention: How do you make revenue from your FOSS projects ? | /r/opensource | 2023-12-08

    The project I'm working on is https://mockoon.com

  • Appwrite

    Appwrite - The open-source backend cloud platform. Add Auth, Databases, Functions, and Storage to your product and build any application at any scale while using your preferred coding languages and tools.

  • graphql-tools

    :wrench: Utility library for GraphQL to build, stitch and mock GraphQL schema using SDL

  • falso

    All the Fake Data for All Your Real Needs 🙂

  • graphql-faker

    🎲 Mock or extend your GraphQL API with faked data. No coding required.

  • mongodb-memory-server

    Spinning up mongod in memory for fast tests. If you run tests in parallel this lib helps to spin up dedicated mongodb servers for every test file in MacOS, *nix, Windows or CI environments (in most cases with zero-config).

  • Mocky

    Generate custom HTTP responses, the simpler way to test your Web Services

  • InfluxDB

    Collect and Analyze Billions of Data Points in Real Time. Manage all types of time series data in a single, purpose-built database. Run at any scale in any environment in the cloud, on-premises, or at the edge.

  • orval

    orval is able to generate client with appropriate type-signatures (TypeScript) from any valid OpenAPI v3 or Swagger v2 specification, either in yaml or json formats. 🍺

    Project mention: Mock Service Worker(msw) releases 2.0 | news.ycombinator.com | 2023-10-23

    we started using (and now contributing to) https://orval.dev/ this year which both generates the mocks using MSW as well as the client-side networking code (React Query in our case). It removes so much boilerplate its amazing.

    wrote up the basics of our workflow few weeks ago https://betaacid.co/blog/api-contracts

  • ng-mocks

    Angular testing library for mocking components, directives, pipes, services and facilitating TestBed setup

    Project mention: Angular (v15) MatStepper + Jest (v29) + ng-mocks | /r/Angular2 | 2023-06-13
  • jest-mock-extended

    Type safe mocking extensions for Jest https://www.npmjs.com/package/jest-mock-extended

  • aws-sdk-client-mock

    AWS JavaScript SDK v3 mocks for easy unit testing. 🖋️ Typed 🔬 Tested 📄 Documented 🛠️ Maintained

  • openapi-backend

    Build, Validate, Route, Authenticate and Mock using OpenAPI

    Project mention: Full stack typesafe API-first development for REST | news.ycombinator.com | 2023-10-11
  • shoehorn

    Work seamlessly with partial mocks in TypeScript.

    Project mention: I hate mocking Typescript classes with Jest | /r/typescript | 2023-05-30

    You might like shoehorn, which allows you to do partial mocks: https://github.com/total-typescript/shoehorn

  • observer-spy

    This library makes RxJS Observables testing easy!

  • shallow-render

    Angular testing made easy with shallow rendering and easy mocking. https://getsaf.github.io/shallow-render

  • automock

    Smoother Unit Testing for TypeScript Dependency Injection Frameworks

    Project mention: Comprehensive Unit Testing: A Line-by-Line Approach | dev.to | 2023-09-12

    AutoMock -> https://github.com/automock/automock

  • jest-dynalite

    Jest preset to run Dynalite (DynamoDB local) per test runner

  • laika

    Log, test, intercept and modify Apollo Client's operations (by zendesk)

  • strong-mock

    Type safe mocking library for TypeScript

    Project mention: libraries you are happy that you discovered them | /r/typescript | 2022-12-27

    Shameless plug, but feel free to try https://github.com/NiGhTTraX/strong-mock as an alternative.

  • interface-forge

    Graceful mock-data and fixtures generation using TypeScript

  • mock-github

    A library to create a local github environment and easily mock github APIs using an octokit like interface

    Project mention: Testing github actions and workflow files locally | /r/github | 2023-05-31

    mock-github: https://github.com/kiegroup/mock-github

  • such

    A powerful fake data library, expandable, configurable, generate data exactly as you want.

  • mockoon.com

    Mockoon application official website repository and documentation

  • Onboard AI

    Learn any GitHub repo in 59 seconds. Onboard AI learns any GitHub repo in minutes and lets you chat with it to locate functionality, understand different parts, and generate new code. Use it for free at www.getonboard.dev.

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 2023-12-08.

TypeScript Mock related posts

Index

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

Project Stars
1 msw 13,887
2 mockoon 5,550
3 graphql-tools 5,245
4 falso 3,029
5 graphql-faker 2,629
6 mongodb-memory-server 2,388
7 Mocky 1,965
8 orval 1,862
9 ng-mocks 948
10 jest-mock-extended 746
11 aws-sdk-client-mock 646
12 openapi-backend 546
13 shoehorn 395
14 observer-spy 357
15 shallow-render 263
16 automock 149
17 jest-dynalite 146
18 laika 117
19 strong-mock 89
20 interface-forge 66
21 mock-github 46
22 such 29
23 mockoon.com 17
Learn any GitHub repo in 59 seconds
Onboard AI learns any GitHub repo in minutes and lets you chat with it to locate functionality, understand different parts, and generate new code. Use it for free at www.getonboard.dev.
getonboard.dev