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

chaijs/chai-as-promised

Extends Chai with assertions about promises. observed · 2026-10-10

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

Health v2 · maintenance only

67/100

  • Activity 98
  • Release rhythm 8
  • Longevity 100
How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-10-21. Adoption (stars, forks) is never an input.

  • gap_med: 271
  • age_days: 5318
  • days_rel: 424
  • days_push: 15
  • n_releases_24m: 2

Full methodology

Adoption not part of the score

1417 stars · 107 forks observed · 2026-10-10

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-promisedmain67

For agents

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

Data as of 2026-10-19T08:05:51.212177+00:00 · Report a problem