# Automattic/expect.js

Minimalistic BDD-style assertions for Node.JS and the browser.

Repository: https://github.com/Automattic/expect.js
Canonical: https://ross.abutalabs.com/products/expectjs
Language: JavaScript
License Family: other
Last push: 2023-01-14T22:56:32+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 5372, "days_push": 1327, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2096, forks 207 (observed 2026-08-28T04:06:13.295512+00:00)

## What it is
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
- artifact type: library
- maturity: maintenance
- function: testing
- domain: testing, developer-tools
- platform: browser, cross-platform
- tags: bdd, assertions, test-framework-agnostic, standalone, nodejs

## Member repositories
- Automattic/expect.js (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:13.295512+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:54:33.466504+00:00, confidence not recorded.
  - readme: https://github.com/Automattic/expect.js (fetched 2026-08-28T04:06:13.295512+00:00, sha 00d55acef860)
- Data as of 2026-08-30T08:39:29.467469+00:00.
