🌜
🌞

Best JavaScript Assertion Libraries

chai

chai

v4.3.6

BDD/TDD assertion library for node.js and the browser. Test framework agnostic.

Last Commit
Jan 26, 2022
GitHub Stargazers
7,702
License
MIT
Contributors
100
@sindresorhus/is

@sindresorhus/is

v5.3.0

Type check values

Last Commit
Jul 21, 2022
GitHub Stargazers
1,407
License
MIT
Contributors
34
mocha

mocha

v10.0.0

simple, flexible, fun test framework

Last Commit
Sep 20, 2022
GitHub Stargazers
21.7K
License
MIT
Contributors
100
lazy-ass

lazy-ass

v2.0.3

Lazy assertions without performance penalty

Last Commit
Oct 18, 2021
GitHub Stargazers
69
License
MIT
Contributors
1
acorn-import-assertions

acorn-import-assertions

v1.8.0

Support for import assertions in acorn

Last Commit
Oct 4, 2021
GitHub Stargazers
12
License
MIT
Contributors
4
to-regex-range

to-regex-range

v5.0.1

Pass two numbers, get a regex-compatible source string for matching ranges. Validated against more than 2.78 million test assertions.

Last Commit
Jun 16, 2019
GitHub Stargazers
119
License
MIT
Contributors
3
ts-invariant

ts-invariant

v0.10.3

TypeScript implementation of invariant(condition, message)

Last Commit
May 13, 2022
GitHub Stargazers
77
License
MIT
Contributors
7
assert-plus

assert-plus

v1.0.0

Extra assertions on top of node's assert module

Last Commit
May 10, 2022
GitHub Stargazers
120
License
MIT
Contributors
9
ava

ava

v4.3.1

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

Last Commit
Sep 25, 2022
GitHub Stargazers
20K
License
MIT
Contributors
100
assertion-error-formatter

assertion-error-formatter

v3.0.0

Format errors to display a diff between the actual and expected

Last Commit
Jul 19, 2020
GitHub Stargazers
2
License
MIT
Contributors
1
enzyme

enzyme

v3.11.0

JavaScript Testing utilities for React

Last Commit
Sep 17, 2021
GitHub Stargazers
19.9K
License
MIT
Contributors
100
should

should

v13.2.3

test framework agnostic BDD-style assertions

Last Commit
Mar 7, 2019
GitHub Stargazers
1,913
License
MIT
Contributors
67
power-assert-renderer-assertion

power-assert-renderer-assertion

v1.2.0

assertion renderer for power-assert context

Last Commit
Sep 24, 2020
GitHub Stargazers
21
License
MIT
Contributors
6
enzyme-adapter-utils

enzyme-adapter-utils

v1.14.0

JavaScript Testing utilities for React

Last Commit
Sep 17, 2021
GitHub Stargazers
19.9K
License
MIT
Contributors
100
@aws-cdk/assert

@aws-cdk/assert

v2.35.0

An assertion library for use with CDK Apps

Last Commit
Sep 25, 2022
GitHub Stargazers
9,303
License
Apache-2.0
Contributors
enzyme-adapter-react-16

enzyme-adapter-react-16

v1.15.6

JavaScript Testing utilities for React

Last Commit
Sep 17, 2021
GitHub Stargazers
19.9K
License
MIT
Contributors
100
@putout/plugin-remove-boolean-from-assertions

@putout/plugin-remove-boolean-from-assertions

v1.1.0

putout plugin adds ability to remove boolean from assertions

Last Commit
Sep 23, 2022
GitHub Stargazers
364
License
MIT
Contributors
12
qunit

qunit

v2.19.1

The powerful, easy-to-use testing framework.

Last Commit
Sep 14, 2022
GitHub Stargazers
3,974
License
MIT
Contributors
99
git-branch-is

git-branch-is

v4.0.0

Assert that the name of the current branch of a git repository has a particular value.

Last Commit
May 6, 2022
GitHub Stargazers
79
License
MIT
Contributors
3
testcafe

testcafe

v1.20.0

Automated browser testing for the modern web development stack.

Last Commit
Sep 20, 2022
GitHub Stargazers
9,431
License
MIT
Contributors
89
chai-json-schema

chai-json-schema

v1.5.1

Chai plugin for JSON Schema v4

Last Commit
May 13, 2019
GitHub Stargazers
74
License
MIT
Contributors
10
@wojtekmaj/enzyme-adapter-react-17

@wojtekmaj/enzyme-adapter-react-17

v0.6.7

JavaScript Testing utilities for React

Last Commit
Sep 22, 2022
GitHub Stargazers
289
License
MIT
Contributors
7
empower

empower

v1.3.1

Power Assert feature enhancer for assert function/object

Last Commit
Sep 8, 2018
GitHub Stargazers
7
License
MIT
Contributors
5