FindSoftware

Sinon.JS

Standalone JavaScript library of test spies, stubs and mocks that works with any unit testing framework.

Sinon.JS provides test spies, stubs and mocks for JavaScript tests. It is standalone and not tied to one test framework: the project’s site says it works with any unit testing framework and the getting-started page names test runners such as Mocha, Jasmine and Jest. A browser build is also served from npm-based CDNs.

Identity

Status
Active
Maintainer
Christian Johansen4
First release
20105

Rendering and deploy

Install with
npm, cdn1

Releases

Current major version
228
Last release
2026-07-208

Adoption

GitHub stars
9,7523
npm downloads a week
13,913,1297
Contributors
3479

Why these figures do not compare

Sources

  1. 2026-11-16: name, links, Categories, Install with, License model
    github.com/sinonjs/sinon/blob/main/README.md
  2. 2026-11-16: links
    sinonjs.org/
  3. 2026-11-16: links, Written in, GitHub stars
    api.github.com/repos/sinonjs/sinon
  4. 2026-11-16: Maintainer
    github.com/sinonjs/sinon/blob/main/LICENSE
  5. 2026-11-16: First release
    registry.npmjs.org/sinon
  6. 2026-11-16: Runtime
    github.com/sinonjs/sinon/blob/main/COMPATIBILITY.md
  7. 2026-11-16: npm downloads a week
    api.npmjs.org/downloads/range/2026-11-01:2026-11-07/sinon
  8. 2026-11-16: License, Current major version, Last release
    registry.npmjs.org/sinon/latest
  9. 2026-11-16: Contributors
    api.github.com/repos/sinonjs/sinon/contributors?per_page=1&anon=false

Last reviewed · Listed since Edit on GitHubThis page as markdownas JSON