Automattic/expect.js
Minimalistic BDD-style assertions for Node.JS and the browser. observed · 2026-08-28
Health v2 · maintenance only
32/100
- Activity 0
- Release rhythm 35
- Longevity 100
Flags: no_releases no_license
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 5372
- days_rel: n/a
- days_push: 1327
- n_releases_24m: 0
Adoption not part of the score
2096 stars · 207 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A minimalistic BDD-style assertion library for Node.js and browsers, based on should.js. It provides a chainable expect() API that works standalone with any test framework.
Use cases
- write BDD-style assertions in JavaScript tests
- assert deep equality of objects in unit tests
- use the same assertion library in Node and the browser
- add assertions to tests without a specific test framework
- assert thrown exceptions, types, and object keys
When to choose
- you need lightweight, framework-agnostic assertions
- you must support very old browsers like IE6+
- you want a single standalone global with no prototype extensions
When to avoid
- you need actively maintained assertion features or modern syntax
- your test framework already ships a built-in expect/assert API
- you need async assertion support or rich plugin ecosystems
Facets
library · maturity maintenance
testing testing developer-tools browser cross-platform bdd assertions test-framework-agnostic standalone nodejs
1 source
- readme: https://github.com/Automattic/expect.js · fetched 2026-08-28 · 00d55acef860
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| Automattic/expect.js | main | 32 |
For agents
markdown · JSON · MCP: product_card(name="Automattic/expect.js")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem