chai
6.3.0 · 30 Sep 2026MIT222.3M / weekRepositoryHomepagenpmAtom feed
3.5.0 is the newest release of 3.x.
In short
4 new3 fixed3 changed
Release note
This release adds some new assertions and fixes some quite important, long standing bugs. Here are the cliff notes:
Bugfix: Property assertions that fail now show a stack trace!
Bugfix: If you've used the
frozen,sealedorextensibleassertions to test primitives (e.g.expect(1).to.be.frozen), you may have noticed that in older browsers (ES5) these fail, and in new ones (ES6) they pass. They have now been fixed to consistently passThe
assertinterface has been given the following new methods, to align better with other interfaces:,assert.isAtMost,assert.isAtLeast,assert.isNotTrue,assert.isNotFalse.
Community Contributions
Code Features & Fixes
Add
assert.isNotTrueandassert.isNotFalse.frozen/extensible/sealedassertions behave the same in ES6 and ES5 environments.Simplify the
.emptyassertion.Add
assert.isAtMostandassert.isAtLeast.Fixed expect('').to.contain('') so it passes.
Fix stack trace tracking for property assertions.
Documentation fixes
Correct misplaced docs for assertions (
isBelow,isAbove,isTrue).
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.