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. Learn more →
Top 23 TypeScript Mock Projects
-
mockoon
Mockoon is the easiest and quickest way to run mock APIs locally. No remote deployment, no account required, open source.
-
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.
-
graphql-tools
:wrench: Utility library for GraphQL to build, stitch and mock GraphQL schemas in the SDL-first approach
-
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).
-
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. 🍺
-
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.
-
ng-mocks
Angular testing library for mocking components, directives, pipes, services and facilitating TestBed setup
-
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
-
shallow-render
Angular testing made easy with shallow rendering and easy mocking. https://getsaf.github.io/shallow-render
-
mock-github
A library to create a local github environment and easily mock github APIs using an octokit like interface
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
Mock Service Worker - https://mswjs.io/ (Mocking the API Responses in the browser without creating a separate mock server)
Mockoon - Used as a logging server instead of using print in the console.
Project mention: HonoJS: Small, simple, and ultrafast web framework for the Edges | news.ycombinator.com | 2024-04-15In cases where the client needs to stay separate, we have had a good experience with Orval[1] to generate a fully-typed @tanstack/query client from our OpenAPI spec.
[1] https://orval.dev/
Project mention: Smocker: Smocker is a simple and efficient HTTP mock server and proxy | news.ycombinator.com | 2024-02-21
Project mention: Client-side proxies – a better way to individualise the Internet? (2000) | news.ycombinator.com | 2023-07-23Interesting how the world has changed since the 2000s here - nowadays the ecosystem is far better, so it's much easier to set up tools to mess around with this, but the use of HTTPS everywhere makes it more difficult in more advanced cases (e.g. you'll often need to fight certificate configuration in individual clients).
In part because of that, browser extensions have become the main way to go for this kind of local web modification, but now there's new restrictions slowly coming in there too.
If you want to mess around with HTTP-level rewriting for yourself though, I maintain a Node.js library for easily writing tiny custom HTTP & HTTPS-intercepting proxies that makes it very easy: https://github.com/httptoolkit/mockttp/. Others have built more specific tooling on top too, like this web page modification proxy: https://github.com/OnkelTem/wmod-proxy
There's a walkthrough for setting up a quick local proxy & rewriting your own browser traffic here: https://httptoolkit.com/blog/javascript-mitm-proxy-mockttp/
Project mention: Full stack typesafe API-first development for REST | news.ycombinator.com | 2023-10-11
Yeah, the last line is 🤮 and one can improve it with utilities like shoehorn hiding all complexity underneath.
Project mention: Unit Test Like a Pro: Automock, My Open Source Answer to Mocking Frustration 🤓💡🎭 | dev.to | 2023-12-12🔗 Here are some links to check out: 😎 GitHub: https://github.com/automock/automock 🐈 Automock's NestJS Official Recipe: https://docs.nestjs.com/recipes/automock 📦 NPM: https://www.npmjs.com/package/@automock/jest 📚 Docs Website: https://automock.dev
TypeScript Mock related posts
-
Visual Introduction to Frontend Testing Types
-
Easier TypeScript API Testing with Vitest + MSW
-
Creating mocks for testing react code
-
Storybook 8
-
I made "TypeScript Swagger Editor", new type of Swagger UI writing TypeScript code in the browser
-
Partial: how not to mock the whole world
-
Ask HN: Those making $500+/month on side projects in 2024 – Show and tell
-
A note from our sponsor - InfluxDB
www.influxdata.com | 3 Jun 2024
Index
What are some of the best open-source Mock projects in TypeScript? This list will help you:
Project | Stars | |
---|---|---|
1 | msw | 14,977 |
2 | mockoon | 5,967 |
3 | graphql-tools | 5,299 |
4 | falso | 3,137 |
5 | graphql-faker | 2,675 |
6 | mongodb-memory-server | 2,480 |
7 | orval | 2,383 |
8 | Mocky | 2,016 |
9 | smocker | 1,116 |
10 | ng-mocks | 1,008 |
11 | jest-mock-extended | 794 |
12 | mockttp | 743 |
13 | aws-sdk-client-mock | 732 |
14 | openapi-backend | 581 |
15 | shoehorn | 432 |
16 | msw-storybook-addon | 382 |
17 | observer-spy | 372 |
18 | automock | 300 |
19 | shallow-render | 269 |
20 | jest-dynalite | 148 |
21 | laika | 120 |
22 | strong-mock | 99 |
23 | mock-github | 53 |
Sponsored