chaijs/sinon-chai
Extends Chai with assertions for the Sinon.JS mocking framework. observed · 2026-08-28
Health v2 · maintenance only
41/100
- Activity 38
- Release rhythm 12
- Longevity 100
Flags: 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: 5315
- days_rel: 376
- days_push: 376
- n_releases_24m: 1
Adoption not part of the score
1089 stars · 103 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A Chai plugin that adds custom assertions for the Sinon.JS spy, stub, and mocking framework. It lets you write spy assertions in idiomatic Chai should/expect syntax instead of Sinon's own assertion API.
Use cases
- assert a spy was called with specific arguments using chai expect syntax
- verify a stub was called exactly once in a unit test
- write readable sinon spy assertions in mocha tests
- check call order of spies with calledBefore/calledAfter
- test that a callback was never invoked
When to choose
- you already use Chai for assertions and Sinon.JS for spies, stubs, or mocks
- you want failure messages that read naturally in BDD-style tests
When to avoid
- you use Jest or another test framework with built-in mocking
- you don't use Chai or Sinon.JS in your test stack
Facets
plugin · maturity stable
testing mocking testing developer-tools browser chai sinon spies stubs assertions unit-testing nodejs javascript
2 sources
- readme: https://github.com/chaijs/sinon-chai · fetched 2026-08-28 · 98c8476a7839
- registry_npm: https://registry.npmjs.org/sinon-chai · fetched 2026-08-29 · 76ccd7c975d9
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| chaijs/sinon-chai | main | 41 |
For agents
markdown · JSON · MCP: product_card(name="chaijs/sinon-chai")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem