🌜
🌞

Best JavaScript Mocking Libraries

jest

jest

v28.1.3

Delightful JavaScript Testing.

Last Commit
Sep 23, 2022
GitHub Stargazers
40.2K
License
MIT
Contributors
msw

msw

v0.44.2

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

Last Commit
Sep 18, 2022
GitHub Stargazers
10.5K
License
MIT
Contributors
sponge-case

sponge-case

v1.0.1

Transform into a string with random capitalization applied

Last Commit
Oct 10, 2021
GitHub Stargazers
1,842
License
MIT
Contributors
15
@jest/core

@jest/core

v28.1.3

Delightful JavaScript Testing.

Last Commit
Sep 23, 2022
GitHub Stargazers
40.2K
License
MIT
Contributors
nock

nock

v13.2.9

HTTP server mocking and expectations library for Node.js

Last Commit
Sep 2, 2022
GitHub Stargazers
11.7K
License
MIT
Contributors
99
responselike

responselike

v3.0.0

A response-like object for mocking a Node.js HTTP response stream

Last Commit
Jul 18, 2022
GitHub Stargazers
35
License
MIT
Contributors
3
timekeeper

timekeeper

v2.2.0

Easy testing of time-dependent code.

Last Commit
Jan 13, 2020
GitHub Stargazers
388
License
MIT
Contributors
16
ng-mocks

ng-mocks

v14.1.2

An Angular testing library for creating mock services, components, directives, pipes and modules in unit tests, which includes shallow rendering, precise stubs to dump child dependencies, supports Angular 5 6 7 8 9 10 11 12 13, jasmine and jest.

Last Commit
Sep 26, 2022
GitHub Stargazers
732
License
MIT
Contributors
12
mockingoose

mockingoose

v2.15.2

A Jest package for mocking mongoose models

Last Commit
Nov 19, 2021
GitHub Stargazers
357
License
Unlicense
Contributors
8
mock-require

mock-require

v3.0.3

Simple, intuitive mocking of Node.js modules.

Last Commit
Mar 15, 2021
GitHub Stargazers
460
License
MIT
Contributors
12
sequelize-mocking

sequelize-mocking

v2.0.1

A Sequelize extension to deal with mocking for tests

Last Commit
Aug 13, 2019
GitHub Stargazers
62
License
MIT
Contributors
8
sequelize-test-helpers

sequelize-test-helpers

v1.4.3

A collection of utilities to help with unit-testing sequelize models

Last Commit
Sep 18, 2022
GitHub Stargazers
109
License
MIT
Contributors
7
json-server

json-server

v0.17.0

Get a full fake REST API with zero coding in less than 30 seconds

Last Commit
May 3, 2022
GitHub Stargazers
63.5K
License
MIT
Contributors
64
@jest-mock/express

@jest-mock/express

v2.0.1

A lightweight Jest mock for unit testing Express

Last Commit
Jul 1, 2022
GitHub Stargazers
33
License
MIT
Contributors
4
xhr-mocklet

xhr-mocklet

v1.2.3

Utility for mocking XMLHttpRequests in the browser or nodejs.

Last Commit
Nov 20, 2018
GitHub Stargazers
5
License
MIT
Contributors
9
jquery-mockjax

jquery-mockjax

v2.6.0

The jQuery Mockjax Plugin provides a simple and extremely flexible interface for mocking or simulating ajax requests and responses.

Last Commit
Aug 22, 2020
GitHub Stargazers
2,125
License
MIT OR GPL-2.0-only
Contributors
63
msw-storybook-addon

msw-storybook-addon

v1.6.3

Mock API requests in Storybook with Mock Service Worker.

Last Commit
Apr 8, 2022
GitHub Stargazers
230
License
MIT
Contributors
7
aws-sdk-client-mock

aws-sdk-client-mock

v1.0.0

Easy and powerful mocking of AWS SDK v3 Clients

Last Commit
Aug 30, 2022
GitHub Stargazers
341
License
MIT
Contributors
3
hock

hock

v1.4.1

A mocking server for HTTP requests

Last Commit
Apr 9, 2020
GitHub Stargazers
85
License
MIT
Contributors
11
casual-browserify

casual-browserify

v1.5.19-2

Fake data generator (Browserify friendly)

Last Commit
May 31, 2018
GitHub Stargazers
16
License
MIT
Contributors
34
strong-mock

strong-mock

v7.3.0

Simple type safe mocking library

Last Commit
Aug 1, 2022
GitHub Stargazers
49
License
MIT
Contributors
3