TypeScript Mock

Open-source TypeScript projects categorized as Mock

Top 23 TypeScript Mock Projects

  1. msw

    Industry standard API mocking for JavaScript.

    Project mention: Implementing Optimistic UI with Remix | dev.to | 2025-06-01

    In this post, we'll dive into implementing Optimistic UI in a Remix.run application, combined with Mock Service Worker(MSW) for robust API mocking and intercepting API requests into our application. Essential for development and testing. It allows us to intercept network requests and define mock responses right in the browser, simulating API behavior without needing a real backend running. This is invaluable for rapid development and testing edge cases like API failures.

  2. Sevalla

    Deploy and host your apps and databases, now with $50 credit! Sevalla is the PaaS you have been looking for! Advanced deployment pipelines, usage-based pricing, preview apps, templates, human support by developers, and much more!

    Sevalla logo
  3. mockoon

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

    Project mention: Ask HN: Who wants to be hired? (July 2025) | news.ycombinator.com | 2025-07-01
  4. graphql-tools

    :wrench: Utility library for GraphQL to build, stitch and mock GraphQL schemas in the SDL-first approach

  5. 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: Streamlining Umbraco Headless Development: Automated Model Generation for Content Delivery API with Orval | dev.to | 2025-04-10

    While reviewing the DeliveryAPI Extensions documentation, I noticed a reference to Orval, a tool I hadn't encountered before. After installing and experimenting with it, I was impressed by how quickly it generated usable models right out of the box.

  6. falso

    All the Fake Data for All Your Real Needs 🙂

  7. mongodb-memory-server

    Manage & spin up mongodb server binaries with zero(or slight) configuration for tests.

  8. graphql-faker

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

  9. InfluxDB

    InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.

    InfluxDB logo
  10. Mocky

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

  11. smocker

    Smocker is a simple and efficient HTTP mock server and proxy

  12. ng-mocks

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

    Project mention: The most valuable developer in the team is … | dev.to | 2024-09-04

    providing the mocks might require a lot of cumbersome code in some cases. It makes sense to use extra tools to simplify it. For instance, ng-mocks for Angular

  13. aws-sdk-client-mock

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

  14. jest-mock-extended

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

    Project mention: Vitest vs. Jest: why we are betting on Vitest | news.ycombinator.com | 2024-11-26

    How large is your project?

    Without process isolation we got 6x speedup vs. jest! But it is difficult to ensure a clean slate between our test suites (~40 suites)

    We are also using some helpers to mock, e.g https://github.com/marchaos/jest-mock-extended - its such helper libraries im concerned about.

  15. mockttp

    Powerful friendly HTTP mock server & proxy library

  16. openapi-backend

    Build, Validate, Route, Authenticate and Mock using OpenAPI

  17. shoehorn

    Work seamlessly with partial mocks in TypeScript.

  18. msw-storybook-addon

    Mock API requests in Storybook with Mock Service Worker.

  19. FakeRest

    Patch fetch/XMLHttpRequest to fake a REST API server in the browser, based on JSON data.

  20. suites

    Unit testing framework for dependency injection that automates mocking and simplifies test setup, reducing boilerplate code and enabling developers to build comprehensive and reliable test suites with a standardized, type-safe API

  21. observer-spy

    This library makes RxJS Observables testing easy!

  22. shallow-render

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

  23. jest-dynalite

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

  24. laika

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

  25. strong-mock

    Type safe mocking library for TypeScript

  26. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
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).

TypeScript Mock discussion

Log in or Post with

TypeScript Mock related posts

  • Ask HN: Who wants to be hired? (July 2025)

    8 projects | news.ycombinator.com | 1 Jul 2025
  • Implementing Optimistic UI with Remix

    1 project | dev.to | 1 Jun 2025
  • Mockoon is the easiest and quickest way to run mock APIs locally

    1 project | news.ycombinator.com | 6 May 2025
  • Request-Mocking-Protocol: A New Approach to Mocking Server-Side Requests in E2E Testing

    5 projects | dev.to | 13 Mar 2025
  • Leveraging Mock Service Workers for NestJS e2e tests

    2 projects | dev.to | 4 Mar 2025
  • How I Started Writing Unit Tests for Vue Components

    1 project | dev.to | 23 Jan 2025
  • Speed Up Your Frontend Development 10x with These Mock Tools 🚀

    2 projects | dev.to | 15 Jan 2025
  • A note from our sponsor - Sevalla
    sevalla.com | 1 Sep 2025
    Sevalla is the PaaS you have been looking for! Advanced deployment pipelines, usage-based pricing, preview apps, templates, human support by developers, and much more! Learn more →

Index

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

# Project Stars
1 msw 17,056
2 mockoon 7,637
3 graphql-tools 5,410
4 orval 4,451
5 falso 3,313
6 mongodb-memory-server 2,743
7 graphql-faker 2,708
8 Mocky 2,086
9 smocker 1,260
10 ng-mocks 1,136
11 aws-sdk-client-mock 887
12 jest-mock-extended 885
13 mockttp 825
14 openapi-backend 661
15 shoehorn 485
16 msw-storybook-addon 467
17 FakeRest 451
18 suites 432
19 observer-spy 377
20 shallow-render 272
21 jest-dynalite 153
22 laika 123
23 strong-mock 106

Sponsored
Deploy and host your apps and databases, now with $50 credit!
Sevalla is the PaaS you have been looking for! Advanced deployment pipelines, usage-based pricing, preview apps, templates, human support by developers, and much more!
sevalla.com

Did you know that TypeScript is
the 1st most popular programming language
based on number of references?