Ross ROSS = Recommend OSS · open-source software intelligence for agents

chaijs/chai-as-promised

Extends Chai with assertions about promises. observed · 2026-08-28

github.com/chaijs/chai-as-promised · JavaScript · MIT (permissive) observed · 2026-08-28

Health v2 · maintenance only

69/100

  • Activity 99
  • Release rhythm 12
  • Longevity 100
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: 271
  • age_days: 5270
  • days_rel: 376
  • days_push: 9
  • n_releases_24m: 2

Full methodology

Adoption not part of the score

1419 stars · 108 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded

Chai as Promised is a Chai plugin that adds fluent assertions about promises, such as `.should.eventually.equal(...)` and `.should.be.rejectedWith(...)`. It lets developers write expressive asynchronous test assertions without manually wiring up promise handlers.

Use cases

  • assert that a promise resolves to an expected value
  • assert that a promise is rejected with a specific error
  • convert any existing Chai assertion into a promise-aware assertion
  • test async code without manually calling done() in then handlers
  • write fluent promise assertions in Mocha or other test frameworks

When to choose

  • you use Chai and need to test promise-based asynchronous code
  • you want readable, fluent assertions for promise fulfillment and rejection
  • your test framework supports returning promises or notify(done) callbacks

When to avoid

  • you use a different assertion library like Jest expect or Vitest
  • your tests are purely synchronous with no promises involved
  • you need a full async testing framework rather than assertion extensions

Facets

plugin · maturity stable

testing e2e-testing testing developer-tools browser chai chai-plugin assertions promises async promises-aplus nodejs javascript

2 sources

Member repositories

RepositoryRoleHealth v2
chaijs/chai-as-promisedmain69

For agents

markdown · JSON · MCP: product_card(name="chaijs/chai-as-promised")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem