10 Best Vanilla JavaScript Assertion Libraries

List hand-picked by Openbase Experts
Learn More

assert

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

13.2M
270
DefinitelyTyped
MIT
chai

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

6.9M
7.8K
DefinitelyTyped
MIT
enz

JavaScript Testing utilities for React

2.1M
DefinitelyTyped
MIT
unexpected

Unexpected - the extensible BDD assertion toolkit

17.7K
368
No support
MIT
power-assert

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

217K
2.8K
DefinitelyTyped
MIT
ej

BDD style assertions for node and the browser.

116K
DefinitelyTyped
cd

DOM assertions for the Chai assertion library using vanilla JavaScript

70.2K
72
DefinitelyTyped
MIT
ci

Chai assertions for Facebook's Immutable library for JavaScript collections

51.4K
160
No support
MIT
ncc

Nightwatch.js custom commands and assertions

2.1K
136
No support
MIT
zor

Lightest, yet Fastest Javascript test runner for nodejs and browsers

1.1K
476
Built-in
MIT
Description
Author
License
Type Definitions
ESM Support
Tree Shakeable
Popularity
Downloads/wk
GitHub Stars
Reviews
User Rating
Voted Good Docs
Voted Easy of Use
Voted Performant
Top Positive Review
Top Negative Review
Issues
Total Issues
Open Issues
Avg Time to Close
Pull Requests
Total Pull Requests
Open Pull Requests
Avg Time to Merge
Community
Maintainers
Contributors
Contributors with 3+ commits
Top Committers
GitHub Forks
Versions
# of Versions
Latest
Next
Beta
Newest
Oldest
Major Every
Minor Every
Patch Every
Dependencies
Dependencies
Dev Dependencies
Links
More Info
README
Tutorials
Install Command
There's Nothing Here
No packages are selected.
Select a few packages to compare.