# mjackson/expect

Write better assertions

Repository: https://github.com/mjackson/expect
Canonical: https://ross.abutalabs.com/products/mjackson-expect
Language: JavaScript
License: MIT
License Family: permissive
Last push: 2018-05-10T20:54:57+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": 4560, "days_push": 3037, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2269, forks 115 (observed 2026-08-28T04:06:32.981310+00:00)

## What it is
expect@1.x is a minimal JavaScript assertion library for writing readable test assertions like expect(value).toEqual(3), with built-in spy support. Development was donated to Jest, so v21+ lives in facebook/jest and this repo only receives limited maintenance for pre-v21 versions.

## Use cases
- write readable assertions in JavaScript unit tests
- replace verbose assert.equal calls with expect-style assertions
- create and inspect test spies without pulling in Sinon
- use a compact alternative to Chai in Node tests
- run assertions in the browser via a UMD script tag

## When to choose
- you maintain a legacy codebase already using expect@1.x
- you want a tiny, dependency-light assertion library with spy support
- you need browser-compatible assertions via UMD

## When to avoid
- you are starting a new project - use Jest's expect or Chai instead
- you need actively maintained assertion features or bug fixes
- you want a full test runner rather than just assertions

## Facets
- artifact type: library
- maturity: abandoned
- function: testing, e2e-testing
- domain: testing, developer-tools
- platform: -
- tags: assertions, test-assertions, spies, jest-donated, umd, nodejs, javascript

## Member repositories
- mjackson/expect (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:32.981310+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:41:59.957230+00:00, confidence not recorded.
  - readme: https://github.com/mjackson/expect (fetched 2026-08-28T04:06:32.981310+00:00, sha dda446585bca)
- Data as of 2026-08-30T08:39:29.467469+00:00.
