Topics / #mocking
Mocking projects on GitHub
Creating test doubles and mocks to isolate code under test.
As of , the most-starred Mocking projects on GitHub are json-server (75.7K stars), jest (45.5K stars) and insomnia (40.2K stars). GitHub.Locker tracks 8 Mocking repositories with 245.4K stars combined. The fastest-growing on November 30 was insomnia, with +4 stars in a day.
Hot right now
Most stars gained in a day · Nov 30
+4insomnia
Kong/insomnia · ★ 40.2KInsomnia is an open-source, cross-platform API client for debugging, designing, testing and mocking APIs over GraphQL, REST, WebSockets, SSE and gRPC.
+3testify
stretchr/testify · ★ 26.3KTestify is a toolkit of Go packages that add assertions, mocking and test suites on top of the standard library, so tests are easier to write and failures are easy to read.
json-server
typicode/json-server · ★ 75.7Kjson-server lets you spin up a fully working fake REST API in under 30 seconds, with no backend code to write — just a single JSON file defining your data.
+1jest
jestjs/jest · ★ 45.5KJest is a JavaScript testing framework focused on simplicity, with built-in test running, assertions, and mocking that works out of the box for most JavaScript projects.
The all-time top
8 projects · by stars
- 75.7K
#1 · typicode/json-serverjson-server
json-server lets you spin up a fully working fake REST API in under 30 seconds, with no backend code to write — just a single JSON file defining your data.
- 45.5K
#2 · jestjs/jestjest
Jest is a JavaScript testing framework focused on simplicity, with built-in test running, assertions, and mocking that works out of the box for most JavaScript projects.
- 40.2K
#3 · Kong/insomniainsomnia
Insomnia is an open-source, cross-platform API client for debugging, designing, testing and mocking APIs over GraphQL, REST, WebSockets, SSE and gRPC.
- 4

testify
26.3Kstretchr/testify · GoTestify is a toolkit of Go packages that add assertions, mocking and test suites on top of the standard library, so tests are easier to write and failures are easy to read.
- 5
msw
18.4Kmswjs/msw · TypeScriptMock Service Worker (MSW) is the industry-standard API mocking library for JavaScript. It intercepts the network requests your app makes and serves mock responses you define, so you never touch a real backend.
- 6

mockito
15.4Kmockito/mockito · JavaMockito is a mocking framework for unit tests written in Java, and the most popular one: it creates mock objects so you can test a class in isolation from its dependencies.
- 7

nock
13.1Knock/nock · JavaScriptNock is a Node.js library that mocks HTTP servers so you can test code that performs HTTP requests without hitting a real network.
- 8

mockery
10.7Kmockery/mockery · PHPA PHP mock object framework for unit testing: it builds test doubles (mocks) through a succinct, human-readable DSL, so your tests can call fakes instead of real objects.
Related topics
Often tagged together