sinonjs/sinon
sinonjs/sinon has 9,751 GitHub stars and 815 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-07 05:58 UTC. Last push 2026-10-29.
Test spies, stubs and mocks for JavaScript.
Measured star growth
- in 24h
- 0
- in 7 days
- Update delayed
- in 15 days
- Update delayed
- in 1 month
- Update delayed
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
Original
Sinon.JS
Standalone and test framework agnostic JavaScript test spies, stubs and mocks (pronounced "sigh-non", named after Sinon, the warrior).
Compatibility
For details on compatibility and browser support, please see COMPATIBILITY.md
Installation
via npm
$ npm install sinon
or via Sinon's browser build, shipped in the package's pkg/ directory and served by
npm based CDNs such as jsDelivr and
unpkg.
Usage
See the sinon project homepage for documentation on usage.
If you have questions that are not covered by the documentation, you can check out the sinon tag on Stack Overflow.
Goals
- No global pollution
- Easy to use
- Require minimal “integration”
- Easy to embed seamlessly with any testing framework
- Easily fake any interface
- Ship with ready-to-use fakes for timers
Contribute?
See CONTRIBUTING.md for details on how you can contribute to Sinon.JS. Artifact-first contract tests are used to protect public APIs during migration.
The lib/ directory is generated build output and is not committed to the repository; run npm run build to regenerate it locally when needed.
Backers
Thank you to all our backers! 🙏 [Become a backer]
Sponsors
Become a sponsor and get your logo on our README on GitHub with a link to your site. [Become a sponsor]
Licence
Sinon.js was released under BSD-3
Explore related projects
codecrafters-io/build-your-own-x
Master programming by recreating your favorite technologies from scratch.
560,795 starspublic-apis/public-apis
A collective list of free APIs
497,020 starsmorluto/rea
Reverse engineer anything with agents, from app behavior down to native binaries.
441,001 starsopenclaw/openclaw
The AI that really does things. Any OS. Any Platform. The lobster way. 🦞
394,144 stars