chai

Installation
SKILL.md

Chai

Chai is an assertion library. It pairs naturally with Mocha. It supports TDD (assert) and BDD (expect, should) styles.

When to Use

  • With Mocha: The default pair.
  • Expressive Tests: You want tests to read like English ("expect foo to be a string").

Quick Start

import { expect } from "chai";

const foo = "bar";
const beverages = { tea: ["chai", "matcha", "oolong"] };
Related skills
Installs
1
GitHub Stars
7
First Seen
Feb 10, 2026