> Chai Assertion Library
Expressive BDD assertions with Chai expect/should for JavaScript testing.
fetch
$
curl "https://skillshub.wtf/skillshub-team/catalog-batch5/chai-assertions?format=md"SKILL.md•Chai Assertion Library
Chai Assertions
import { expect } from 'chai';
// Equality
expect(x).to.equal(42);
expect(obj).to.deep.equal({ a: 1 });
// Types
expect('hello').to.be.a('string');
expect([]).to.be.an('array');
expect(true).to.be.true;
expect(null).to.be.null;
// Numbers
expect(10).to.be.above(5).and.below(20);
expect(10.5).to.be.closeTo(10, 1);
// Strings & Arrays
expect('foobar').to.include('foo');
expect([1,2,3]).to.include(2).and.have.lengthOf(3);
expect([]).to.be.empty;
// Objects
expect(obj).to.have.property('name', 'Alice');
expect(obj).to.have.all.keys('name', 'age');
expect(obj).to.have.nested.property('addr.city');
// Errors
expect(() => fn()).to.throw(Error, /message/);
// Promises (chai-as-promised)
await expect(promise).to.eventually.equal(42);
await expect(badPromise).to.be.rejectedWith(Error);
> related_skills --same-repo
> Nix Dev Shells with direnv
Auto-activate reproducible dev environments with Nix flakes and direnv.
> Dagger with GitHub Actions
Run Dagger CI/CD pipelines in GitHub Actions for portable, testable builds.
> Bun + Hono API
Build fast APIs with Bun runtime and Hono framework.
> Deno Fresh Framework
Build full-stack web apps with Fresh on Deno. Islands, routes, and zero runtime overhead.
┌ stats
installs/wk0
░░░░░░░░░░first seenMar 18, 2026
└────────────