Forked from sinonjs/sinon

Test spies, stubs and mocks for JavaScript.

License: BSD-3-Clause

Language: JavaScript


npm version Join the chat at Build status bitHound Score Sauce Test Status Coverage Status

Standalone and test framework agnostic JavaScript test spies, stubs and mocks (pronounced "sigh-non").

Sauce Test Status


via npm (node package manager)

$ npm install sinon

or via sinon's browser builds available for download on the homepage.


See the sinon project homepage for documentation on usage.

If you have questions that are not covered by the documentation, please post them to the Sinon.JS mailing list or drop by #sinon.js on or the Gitter channel.

Important: Sinon v1.x does not work with AMD/CommonJS Bundlers!

Sinon.JS v1.x as source doesn't work with AMD loaders / RequireJS / Webpack / Browserify. For that you will have to use a pre-built version. You can either build it yourself or get a numbered version from

This has been resolved in Sinon v2.x; Please don't report this as a bug.


  • 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 XMLHttpRequest, timers and more


See for details on how you can contribute to Sinon.JS


Sinon.js was released under BSD-3

Project Statistics

Sourcerank 5
Repository Size 5.37 MB
Stars 1
Forks 0
Watchers 1
Open issues disabled
Dependencies 69
Contributors 180
Tags 29
Last updated
Last pushed

Top Contributors See all

Christian Johansen Morgan Roderick Maximilian Antoni Carl-Erik Kopseng John Reeves Phred Ben Hockey Lucas Fernandes da Costa Tim Fischbach Tim Perry Håvard Wormdal Høiby Tim Ruffles Jonathan Sokolowski Domenic Denicola Andreas Lind MrBigDog2U Felix Geisendörfer Mikhail Gusarov Bryan Donovan Kevin Decker

Recent Tags See all

v8.9.1 June 25, 2016
v8.9.0 June 22, 2016
v8.9.0-rc8 June 21, 2016
v8.9.0-rc7 June 18, 2016
v8.9.0-rc6 June 17, 2016
v8.9.0-rc5 June 16, 2016
v8.9.0-rc4 June 15, 2016
v8.8.5 June 15, 2016
v8.9.0-rc3 June 13, 2016
v8.9.0-rc2 June 10, 2016
v8.8.4 June 09, 2016
v8.9.0-rc1 June 08, 2016
v8.8.3 June 02, 2016
v8.8.2 May 25, 2016
v1.17.3 January 27, 2016

Something wrong with this page? Make a suggestion

Login to resync this repository