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

sinonjs/sinon

Test spies, stubs and mocks for JavaScript. observed · 2026-08-28

github.com/sinonjs/sinon · homepage · JavaScript · NOASSERTION (other) observed · 2026-08-28

Health v2 · maintenance only

66/100

  • Activity 96
  • Release rhythm 8
  • 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: 5909
  • days_rel: n/a
  • days_push: 28
  • n_releases_24m: 0

Full methodology

Adoption not part of the score

9758 stars · 803 forks observed · 2026-08-28

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

Sinon.JS is a standalone, test framework agnostic JavaScript library providing test spies, stubs, mocks, and fake timers. It integrates seamlessly with any unit testing framework such as Mocha, Jest, Jasmine, or tap.

Use cases

  • spy on function calls in JavaScript unit tests
  • stub dependencies in unit tests
  • mock API methods for testing
  • fake timers to test time-dependent code
  • create test doubles without a specific test framework
  • replace module functions during tests

When to choose

  • you need spies, stubs, or mocks in JavaScript tests
  • you want a test framework agnostic mocking library
  • you need fake timers for testing async or scheduled code
  • you want minimal integration with your existing test runner

When to avoid

  • you need module-level mocking of ES module imports (consider proxyquire or testdouble.js)
  • your test framework already provides built-in mocking you prefer
  • you are testing non-JavaScript languages

Facets

library · maturity stable

testing mocking testing developer-tools browser cross-platform test-spies stubs mocks fake-timers tdd unit-testing test-framework-agnostic javascript nodejs

4 sources

Member repositories

RepositoryRoleHealth v2
sinonjs/sinonmain66

For agents

markdown · JSON · MCP: product_card(name="sinonjs/sinon")

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