Chai Things (v0.2.0, unmaintained since 2015) extends Chai assertion library with array element matchers like `include.something.that`, `all`, and `none`. Allows deep equality, property, and nested assertions on arrays. Last updated on npm in 2016; no releases for 9+ years. Use with Chai v4.x but may have compatibility issues. Alternative: use native Chai `members` matcher with deep equality or Lodash`_.some`/_.every.
npm install chai-thingsVerified import paths — ran on the pinned version, not inferred.
Install chai-things, register with chai, and use include.something.that / all / none assertions on arrays.
Consider using chai.assert.deepInclude or other native Chai methods, or migrate to a maintained library.
Use dynamic import: const chaiThings = (await import('chai-things')).default;Always call chai.should() earlier or use chai.expect with chai-things.
Add explicit length check if needed: arr.should.have.length.gt(0).and.all.satisfy(...).
Ensure you have required chai and called chai.should() or chai.expect before using chai-things.
Check that array is not empty or use include.something.that on non-empty arrays.
Ensure the value being tested is an Array.