10 Best Vanilla JavaScript Assertion Libraries

List hand-picked by Openbase Experts
Learn More

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.7/ 5
26
Top Feedback
17Easy to Use
14Great Documentation
11Performant
GitHub Stars
7K
Weekly Downloads
4M
Last Commit
3mos ago

enzyme

JavaScript Testing utilities for React

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User Rating
4.4/ 5
43
Top Feedback
13Easy to Use
11Great Documentation
2Performant
GitHub Stars
20K
Weekly Downloads
2M
Last Commit
4mos 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
263
Weekly Downloads
12M
Last Commit
2yrs ago

unexpected

Unexpected - the extensible BDD assertion toolkit

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
363
Weekly Downloads
11K
Last Commit
1mo ago
zor

zora

Lightest, yet Fastest Javascript test runner for nodejs and browsers

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
434
Weekly Downloads
1K
Last Commit
2mos ago
cd

chai-dom

DOM assertions for the Chai assertion library using vanilla JavaScript

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
68
Weekly Downloads
43K
Last Commit
1mo ago

power-assert

Power Assert in JavaScript. Provides descriptive assertion messages through standard assert interface. No API is the best API.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
3K
Weekly Downloads
178K
Last Commit
5mos ago
ci

chai-immutable

Chai assertions for Facebook's Immutable library for JavaScript collections

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
160
Weekly Downloads
25K
Last Commit
8mos ago

expect.js

Minimalistic BDD-style assertions for Node.JS and the browser.

License Icon
License: Unknown
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
2K
Weekly Downloads
74K
Last Commit
7yrs ago
ncc

nightwatch-custom-commands-assertions

Nightwatch.js custom commands and assertions

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
135
Weekly Downloads
5K
Last Commit
10mos ago