10 Best JavaScript Testing Libraries

List hand-picked by Openbase Experts
Learn More

eslint

Find and fix problems in your JavaScript code.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User Rating
4.8/ 5
255
Top Feedback
90Great Documentation
80Easy to Use
75Performant
GitHub Stars
20K
Weekly Downloads
19M
Last Commit
8d ago

cypress

Fast, easy and reliable testing for anything that runs in a browser.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User Rating
4.6/ 5
201
Top Feedback
42Great Documentation
32Easy to Use
27Performant
GitHub Stars
35K
Weekly Downloads
3M
Last Commit
9d ago

jest

Delightful JavaScript Testing.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User Rating
4.7/ 5
337
Top Feedback
61Great Documentation
52Easy to Use
43Performant
GitHub Stars
37K
Weekly Downloads
13M
Last Commit
8d ago

@typescript-eslint/parser

✨ Monorepo for all the tooling which enables ESLint to support TypeScript

License Icon
License: BSD-2-Clause
TypeScript Icon
TypeScript Definitions: Built-In
User Rating
4.8/ 5
8
Top Feedback
2Easy to Use
2Bleeding Edge
1Great Documentation
GitHub Stars
11K
Weekly Downloads
13M
Last Commit
8d ago

eslint-plugin-react-hooks

A declarative, efficient, and flexible JavaScript library for building user interfaces.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User Rating
4.6/ 5
18
Top Feedback
14Great Documentation
13Easy to Use
6Performant
GitHub Stars
178K
Weekly Downloads
7M
Last Commit
8d ago
nm

ng-mocks

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

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User Rating
5.0/ 5
1
Top Feedback
1Great Documentation
1Easy to Use
1Highly Customizable
GitHub Stars
523
Weekly Downloads
145K
Last Commit
24d ago

@typescript-eslint/eslint-plugin

✨ Monorepo for all the tooling which enables ESLint to support TypeScript

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User Rating
4.3/ 5
3
Top Feedback
4Great Documentation
4Easy to Use
2Highly Customizable
GitHub Stars
11K
Weekly Downloads
12M
Last Commit
8d ago

webdriverio

Next-gen browser and mobile automation test framework for Node.js

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User Rating
4.7/ 5
7
Top Feedback
3Easy to Use
2Great Documentation
2Performant
GitHub Stars
7K
Weekly Downloads
820K
Last Commit
8d ago
fak

faker

generate massive amounts of realistic fake data in Node.js and the browser

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User Rating
4.6/ 5
183
Top Feedback
34Easy to Use
30Great Documentation
23Highly Customizable
GitHub Stars
34K
Weekly Downloads
3M
Last Commit
2mos ago

puppeteer

Headless Chrome Node.js API

License Icon
License: Apache-2.0
TypeScript Icon
TypeScript Definitions: Built-In
User Rating
4.5/ 5
412
Top Feedback
27Easy to Use
26Great Documentation
17Performant
GitHub Stars
75K
Weekly Downloads
2M
Last Commit
9d ago
tj

ts-jest

A Jest transformer with source map support that lets you use Jest to test projects written in TypeScript.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User Rating
4.0/ 5
7
Top Feedback
5Hard to Use
2Poor Documentation
1Great Documentation
GitHub Stars
5K
Weekly Downloads
6M
Last Commit
8d ago

truffle

A tool for developing smart contracts. Crafted with the finest cacaos.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User Rating
4.9/ 5
9
Top Feedback
1Great Documentation
GitHub Stars
12K
Weekly Downloads
42K
Last Commit
14d ago

mocha

☕️ simple, flexible, fun javascript test framework for node.js & the browser

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User Rating
4.6/ 5
106
Top Feedback
34Easy to Use
32Great Documentation
27Performant
GitHub Stars
21K
Weekly Downloads
5M
Last Commit
1mo ago

eslint-plugin-vue

Official ESLint plugin for Vue.js

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User Rating
4.7/ 5
7
Top Feedback
3Easy to Use
2Great Documentation
1Performant
GitHub Stars
4K
Weekly Downloads
2M
Last Commit
9d ago

msw

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

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User Rating
4.8/ 5
6
Top Feedback
5Great Documentation
5Easy to Use
5Bleeding Edge
GitHub Stars
8K
Weekly Downloads
537K
Last Commit
11d ago

eslint-import-resolver-webpack

ESLint plugin with rules that help validate proper imports.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User Rating
5.0/ 5
2
Top Feedback
2Easy to Use
2Performant
1Highly Customizable
GitHub Stars
4K
Weekly Downloads
877K
Last Commit
13d ago
epr

eslint-plugin-react

React specific linting rules for ESLint

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User Rating
4.3/ 5
4
Top Feedback
4Easy to Use
3Great Documentation
1Highly Customizable
GitHub Stars
7K
Weekly Downloads
9M
Last Commit
10d ago

eslint-config-react-app

Set up a modern web app by running one command.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User Rating
5.0/ 5
3
Top Feedback
3Great Documentation
3Easy to Use
1Performant
GitHub Stars
92K
Weekly Downloads
3M
Last Commit
21d ago
fc

fast-check

Property based testing framework for JavaScript (like QuickCheck) written in TypeScript

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User Rating
4.5/ 5
2
Top Feedback
2Great Documentation
GitHub Stars
3K
Weekly Downloads
111K
Last Commit
9d ago

eslint-config-airbnb-base

JavaScript Style Guide

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User Rating
5.0/ 5
5
Top Feedback
6Easy to Use
4Great Documentation
2Performant
GitHub Stars
117K
Weekly Downloads
4M
Last Commit
16d ago

eslint-config-airbnb

JavaScript Style Guide

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User Rating
4.4/ 5
564
Top Feedback
11Great Documentation
7Easy to Use
6Highly Customizable
GitHub Stars
117K
Weekly Downloads
3M
Last Commit
16d ago

enzyme

JavaScript Testing utilities for React

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User Rating
4.5/ 5
41
Top Feedback
12Easy to Use
11Great Documentation
1Performant
GitHub Stars
20K
Weekly Downloads
2M
Last Commit
3mos ago

nock

HTTP server mocking and expectations library for Node.js

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User Rating
4.8/ 5
5
Top Feedback
3Great Documentation
2Easy to Use
1Highly Customizable
GitHub Stars
11K
Weekly Downloads
2M
Last Commit
24d ago

chai

BDD / TDD assertion framework for node.js and the browser that can be paired with any testing framework.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User Rating
4.8/ 5
24
Top Feedback
17Easy to Use
14Great Documentation
11Performant
GitHub Stars
7K
Weekly Downloads
4M
Last Commit
2mos ago

codeceptjs

Supercharged End 2 End Testing Framework for NodeJS

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User Rating
5.0/ 5
1
Top Feedback
2Great Documentation
1Easy to Use
1Highly Customizable
GitHub Stars
4K
Weekly Downloads
89K
Last Commit
9d ago
ls

lint-staged

🚫💩 — Run linters on git staged files

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User Rating
4.6/ 5
16
Top Feedback
10Great Documentation
10Easy to Use
6Performant
GitHub Stars
9K
Weekly Downloads
4M
Last Commit
24d ago

artillery

↯ Cloud-native performance & reliability testing for developers and SREs

License Icon
License: MPL-2.0
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User Rating
5.0/ 5
3
Top Feedback
N/A
GitHub Stars
5K
Weekly Downloads
57K
Last Commit
8d ago

nightwatch

End-to-end testing framework written in Node.js and using the Webdriver API

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User Rating
4.9/ 5
10
Top Feedback
2Great Documentation
2Performant
2Highly Customizable
GitHub Stars
11K
Weekly Downloads
176K
Last Commit
21d ago

sinon

Test spies, stubs and mocks for JavaScript.

License Icon
License: BSD-3-Clause
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User Rating
4.0/ 5
10
Top Feedback
4Great Documentation
4Easy to Use
1Performant
GitHub Stars
9K
Weekly Downloads
3M
Last Commit
1mo ago

eslint-plugin-prettier

ESLint plugin for Prettier formatting

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User Rating
4.5/ 5
10
Top Feedback
6Great Documentation
6Easy to Use
3Performant
GitHub Stars
2K
Weekly Downloads
7M
Last Commit
1mo ago

testcafe

A Node.js tool to automate end-to-end web testing.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User Rating
4.2/ 5
5
Top Feedback
4Great Documentation
1Easy to Use
1Performant
GitHub Stars
9K
Weekly Downloads
228K
Last Commit
8d ago
c8

c8

output coverage reports using Node.js' built in coverage

License Icon
License: ISC
TypeScript Icon
TypeScript Definitions: Built-In
User Rating
5.0/ 5
1
Top Feedback
1Easy to Use
1Performant
1Bleeding Edge
GitHub Stars
1K
Weekly Downloads
1M
Last Commit
2mos ago

eslint-plugin-import

ESLint plugin with rules that help validate proper imports.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User Rating
3.5/ 5
2
Top Feedback
N/A
GitHub Stars
4K
Weekly Downloads
12M
Last Commit
13d ago
mar

markdownlint

A Node.js style checker and lint tool for Markdown/CommonMark files.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User Rating
5.0/ 5
2
Top Feedback
2Great Documentation
1Highly Customizable
GitHub Stars
3K
Weekly Downloads
213K
Last Commit
1mo ago
tap

tape

tap-producing test harness for node and browsers

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User Rating
5.0/ 5
2
Top Feedback
2Easy to Use
1Great Documentation
1Performant
GitHub Stars
6K
Weekly Downloads
115K
Last Commit
25d ago

eslint-config-prettier

Turns off all rules that are unnecessary or might conflict with Prettier.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User Rating
4.5/ 5
6
Top Feedback
4Easy to Use
2Performant
1Great Documentation
GitHub Stars
3K
Weekly Downloads
9M
Last Commit
3mos ago

ava

Node.js test runner that lets you develop with confidence 🚀

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User Rating
4.5/ 5
19
Top Feedback
2Performant
1Great Documentation
1Bleeding Edge
GitHub Stars
19K
Weekly Downloads
206K
Last Commit
1mo ago

qunit

🔮 An easy-to-use JavaScript unit testing framework.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User Rating
4.5/ 5
2
Top Feedback
2Great Documentation
1Easy to Use
1Performant
GitHub Stars
4K
Weekly Downloads
185K
Last Commit
1mo ago

json-schema-faker

JSON-Schema + fake data generators

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User Rating
5.0/ 5
1
Top Feedback
N/A
GitHub Stars
3K
Weekly Downloads
142K
Last Commit
1mo ago
ama

axios-mock-adapter

Axios adapter that allows to easily mock requests

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User Rating
5.0/ 5
2
Top Feedback
2Easy to Use
1Great Documentation
GitHub Stars
3K
Weekly Downloads
640K
Last Commit
1mo ago
mrg

mochawesome-report-generator

Standalone mochawesome report generator. Just add test data.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User Rating
5.0/ 5
1
Top Feedback
1Great Documentation
1Easy to Use
1Hard to Use
GitHub Stars
175
Weekly Downloads
621K
Last Commit
1mo ago

supertest

🕷 Super-agent driven library for testing node.js HTTP servers using a fluent API.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User Rating
4.5/ 5
11
Top Feedback
5Easy to Use
4Performant
3Poor Documentation
GitHub Stars
12K
Weekly Downloads
2M
Last Commit
4mos ago

jasmine

A jasmine runner for node projects.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User Rating
4.3/ 5
3
Top Feedback
1Great Documentation
GitHub Stars
350
Weekly Downloads
2M
Last Commit
2mos ago
bac

backstopjs

Catch CSS curve balls.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User Rating
5.0/ 5
1
Top Feedback
N/A
GitHub Stars
6K
Weekly Downloads
27K
Last Commit
20d ago

karma

Spectacular Test Runner for JavaScript

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User Rating
3.6/ 5
17
Top Feedback
4Poor Documentation
4Hard to Use
4Slow
GitHub Stars
12K
Weekly Downloads
2M
Last Commit
22d ago

appium

📱 Automation for iOS, Android, and Windows Apps.

License Icon
License: Apache-2.0
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User Rating
4.4/ 5
7
Top Feedback
3Great Documentation
3Easy to Use
3Performant
GitHub Stars
14K
Weekly Downloads
66K
Last Commit
9d ago
uvu

uvu

uvu is an extremely fast and lightweight test runner for Node.js and the browser

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User Rating
5.0/ 5
2
Top Feedback
1Easy to Use
1Performant
1Responsive Maintainers
GitHub Stars
2K
Weekly Downloads
303K
Last Commit
1mo ago
jhr

jest-html-reporters

🌈 Reporter for jest test framework. 🌈

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User Rating
5.0/ 5
1
Top Feedback
N/A
GitHub Stars
324
Weekly Downloads
103K
Last Commit
5mos ago

assert

Node.js's require('assert') for all engines

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User Rating
5.0/ 5
1
Top Feedback
N/A
GitHub Stars
262
Weekly Downloads
13M
Last Commit
2yrs ago
cas

casual

Fake data generator for javascript

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User Rating
5.0/ 5
1
Top Feedback
1Great Documentation
1Easy to Use
GitHub Stars
3K
Weekly Downloads
62K
Last Commit
5mos ago