sinon

JavaScript test spies, stubs and mocks.

16.1.1
Last updated 13 years ago by cjohansen .
BSD · Repository · Bugs · Original npm · Tarball · package.json
$ npm install sinon 
SYNC missed versions from official npm registry.

Sinon.JS
Sinon.JS

Standalone and test framework agnostic JavaScript test spies, stubs and mocks (pronounced "sigh-non", named after Sinon, the warrior).

npm version Sauce Test Status Codecov status OpenCollective OpenCollective npm downloads per month CDNJS version Contributor Covenant

Compatibility

For details on compatibility and browser support, please see COMPATIBILITY.md

Installation

via npm

$ npm install sinon

or via Sinon's browser builds available for download on the homepage. There are also npm based CDNs one can use.

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

Contribute?

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

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

Current Tags

  • 19.0.2                                ...           latest (2 months ago)

208 Versions

  • 19.0.2                                ...           2 months ago
  • 19.0.1                                ...           2 months ago
  • 19.0.0                                ...           2 months ago
  • 18.0.1                                ...           2 months ago
  • 18.0.0                                ...           6 months ago
  • 17.0.2 [deprecated]           ...           6 months ago
  • 17.0.1                                ...           a year ago
  • 17.0.0                                ...           a year ago
  • 16.1.3                                ...           a year ago
  • 16.1.2                                ...           a year ago
  • 16.1.1 [deprecated]           ...           a year ago
  • 16.1.0 [deprecated]           ...           a year ago
  • 16.0.0 [deprecated]           ...           a year ago
  • 15.2.0 [deprecated]           ...           a year ago
  • 15.1.2 [deprecated]           ...           a year ago
  • 15.1.1 [deprecated]           ...           a year ago
  • 15.1.0 [deprecated]           ...           a year ago
  • 15.0.4 [deprecated]           ...           2 years ago
  • 15.0.3 [deprecated]           ...           2 years ago
  • 15.0.2 [deprecated]           ...           2 years ago
  • 15.0.1 [deprecated]           ...           2 years ago
  • 15.0.0 [deprecated]           ...           2 years ago
  • 14.0.2 [deprecated]           ...           2 years ago
  • 14.0.1 [deprecated]           ...           2 years ago
  • 14.0.0 [deprecated]           ...           3 years ago
  • 13.0.2 [deprecated]           ...           3 years ago
  • 13.0.1 [deprecated]           ...           3 years ago
  • 13.0.0 [deprecated]           ...           3 years ago
  • 12.0.1 [deprecated]           ...           3 years ago
  • 12.0.0 [deprecated]           ...           3 years ago
  • 11.1.2 [deprecated]           ...           3 years ago
  • 11.1.1 [deprecated]           ...           3 years ago
  • 11.1.0 [deprecated]           ...           3 years ago
  • 11.0.0 [deprecated]           ...           3 years ago
  • 10.0.1 [deprecated]           ...           4 years ago
  • 10.0.0 [deprecated]           ...           4 years ago
  • 9.2.4 [deprecated]           ...           4 years ago
  • 9.2.3 [deprecated]           ...           4 years ago
  • 9.2.2 [deprecated]           ...           4 years ago
  • 9.2.1 [deprecated]           ...           4 years ago
  • 9.2.0 [deprecated]           ...           4 years ago
  • 9.1.0 [deprecated]           ...           4 years ago
  • 9.0.3 [deprecated]           ...           4 years ago
  • 9.0.2 [deprecated]           ...           5 years ago
  • 9.0.1 [deprecated]           ...           5 years ago
  • 9.0.0 [deprecated]           ...           5 years ago
  • 8.1.1 [deprecated]           ...           5 years ago
  • 8.1.0 [deprecated]           ...           5 years ago
  • 8.0.4 [deprecated]           ...           5 years ago
  • 8.0.3 [deprecated]           ...           5 years ago
  • 8.0.2 [deprecated]           ...           5 years ago
  • 8.0.1 [deprecated]           ...           5 years ago
  • 8.0.0 [deprecated]           ...           5 years ago
  • 7.5.0 [deprecated]           ...           5 years ago
  • 7.4.2 [deprecated]           ...           5 years ago
  • 7.4.1 [deprecated]           ...           5 years ago
  • 7.3.2 [deprecated]           ...           6 years ago
  • 7.3.1 [deprecated]           ...           6 years ago
  • 7.3.0 [deprecated]           ...           6 years ago
  • 7.2.7 [deprecated]           ...           6 years ago
  • 7.2.6 [deprecated]           ...           6 years ago
  • 7.2.5 [deprecated]           ...           6 years ago
  • 7.2.4 [deprecated]           ...           6 years ago
  • 7.2.3 [deprecated]           ...           6 years ago
  • 7.2.2 [deprecated]           ...           6 years ago
  • 7.2.1 [deprecated]           ...           6 years ago
  • 7.2.0 [deprecated]           ...           6 years ago
  • 7.1.1 [deprecated]           ...           6 years ago
  • 7.1.0 [deprecated]           ...           6 years ago
  • 7.0.0 [deprecated]           ...           6 years ago
  • 6.3.5 [deprecated]           ...           6 years ago
  • 6.3.4 [deprecated]           ...           6 years ago
  • 6.3.3 [deprecated]           ...           6 years ago
  • 6.3.2 [deprecated]           ...           6 years ago
  • 6.3.1 [deprecated]           ...           6 years ago
  • 6.3.0 [deprecated]           ...           6 years ago
  • 6.2.0 [deprecated]           ...           6 years ago
  • 6.1.6 [deprecated]           ...           6 years ago
  • 6.1.5 [deprecated]           ...           6 years ago
  • 6.1.4 [deprecated]           ...           6 years ago
  • 6.1.3 [deprecated]           ...           6 years ago
  • 6.1.2 [deprecated]           ...           6 years ago
  • 6.1.1 [deprecated]           ...           6 years ago
  • 6.1.0 [deprecated]           ...           6 years ago
  • 6.0.1 [deprecated]           ...           6 years ago
  • 6.0.0 [deprecated]           ...           6 years ago
  • 5.1.1 [deprecated]           ...           6 years ago
  • 5.1.0 [deprecated]           ...           6 years ago
  • 5.0.10 [deprecated]           ...           6 years ago
  • 5.0.9 [deprecated]           ...           6 years ago
  • 5.0.8 [deprecated]           ...           6 years ago
  • 5.0.7 [deprecated]           ...           7 years ago
  • 5.0.6 [deprecated]           ...           7 years ago
  • 5.0.5 [deprecated]           ...           7 years ago
  • 5.0.4 [deprecated]           ...           7 years ago
  • 5.0.3 [deprecated]           ...           7 years ago
  • 5.0.2 [deprecated]           ...           7 years ago
  • 5.0.1 [deprecated]           ...           7 years ago
  • 5.0.1-next.1 [deprecated]           ...           7 years ago
  • 5.0.0-next.4 [deprecated]           ...           7 years ago
  • 4.5.0 [deprecated]           ...           7 years ago
  • 4.4.10 [deprecated]           ...           7 years ago
  • 4.4.9 [deprecated]           ...           7 years ago
  • 4.4.8 [deprecated]           ...           7 years ago
  • 4.4.6 [deprecated]           ...           7 years ago
  • 4.4.5 [deprecated]           ...           7 years ago
  • 4.4.4 [deprecated]           ...           7 years ago
  • 4.4.3 [deprecated]           ...           7 years ago
  • 4.4.2 [deprecated]           ...           7 years ago
  • 4.4.1 [deprecated]           ...           7 years ago
  • 4.4.0 [deprecated]           ...           7 years ago
  • 4.3.0 [deprecated]           ...           7 years ago
  • 4.2.3 [deprecated]           ...           7 years ago
  • 4.2.2 [deprecated]           ...           7 years ago
  • 4.2.1 [deprecated]           ...           7 years ago
  • 4.2.0 [deprecated]           ...           7 years ago
  • 5.0.0-next.3 [deprecated]           ...           7 years ago
  • 4.1.6 [deprecated]           ...           7 years ago
  • 4.1.5 [deprecated]           ...           7 years ago
  • 5.0.0-next.1 [deprecated]           ...           7 years ago
  • 5.0.0 [deprecated]           ...           7 years ago
  • 4.1.4 [deprecated]           ...           7 years ago
  • 4.1.3 [deprecated]           ...           7 years ago
  • 4.1.2 [deprecated]           ...           7 years ago
  • 4.1.1 [deprecated]           ...           7 years ago
  • 4.1.0 [deprecated]           ...           7 years ago
  • 4.0.2 [deprecated]           ...           7 years ago
  • 4.0.1 [deprecated]           ...           7 years ago
  • 4.0.0 [deprecated]           ...           7 years ago
  • 3.3.0 [deprecated]           ...           7 years ago
  • 3.2.1 [deprecated]           ...           7 years ago
  • 3.2.0 [deprecated]           ...           7 years ago
  • 3.1.0 [deprecated]           ...           7 years ago
  • 3.0.0 [deprecated]           ...           7 years ago
  • 2.4.1 [deprecated]           ...           7 years ago
  • 2.4.0 [deprecated]           ...           7 years ago
  • 2.3.8 [deprecated]           ...           7 years ago
  • 2.3.7 [deprecated]           ...           7 years ago
  • 2.3.6 [deprecated]           ...           7 years ago
  • 2.3.5 [deprecated]           ...           7 years ago
  • 2.3.4 [deprecated]           ...           7 years ago
  • 2.3.3 [deprecated]           ...           7 years ago
  • 2.3.2 [deprecated]           ...           7 years ago
  • 2.3.1 [deprecated]           ...           7 years ago
  • 2.3.0 [deprecated]           ...           7 years ago
  • 2.2.0 [deprecated]           ...           8 years ago
  • 2.1.0 [deprecated]           ...           8 years ago
  • 2.0.0 [deprecated]           ...           8 years ago
  • 2.0.0-pre.6 [deprecated]           ...           8 years ago
  • 1.17.7 [deprecated]           ...           8 years ago
  • 2.0.0-pre.5 [deprecated]           ...           8 years ago
  • 2.0.0-pre.4 [deprecated]           ...           8 years ago
  • 2.0.0-pre.3 [deprecated]           ...           8 years ago
  • 1.17.6 [deprecated]           ...           8 years ago
  • 1.17.5 [deprecated]           ...           8 years ago
  • 2.0.0-pre.2 [deprecated]           ...           8 years ago
  • 1.17.4 [deprecated]           ...           9 years ago
  • 1.17.3 [deprecated]           ...           9 years ago
  • 2.0.0-pre [deprecated]           ...           9 years ago
  • 1.17.2 [deprecated]           ...           9 years ago
  • 1.17.1 [deprecated]           ...           9 years ago
  • 1.17.0 [deprecated]           ...           9 years ago
  • 1.16.1 [deprecated]           ...           9 years ago
  • 1.16.0 [deprecated]           ...           9 years ago
  • 1.15.4 [deprecated]           ...           9 years ago
  • 1.15.3 [deprecated]           ...           9 years ago
  • 1.15.2 [deprecated]           ...           9 years ago
  • 1.15.1 [deprecated]           ...           9 years ago
  • 1.15.0 [deprecated]           ...           9 years ago
  • 1.14.1 [deprecated]           ...           10 years ago
  • 1.14.0 [deprecated]           ...           10 years ago
  • 1.13.0 [deprecated]           ...           10 years ago
  • 1.12.2 [deprecated]           ...           10 years ago
  • 1.12.1 [deprecated]           ...           10 years ago
  • 1.12.0 [deprecated]           ...           10 years ago
  • 1.11.1 [deprecated]           ...           10 years ago
  • 1.11.0 [deprecated]           ...           10 years ago
  • 1.10.3 [deprecated]           ...           10 years ago
  • 1.10.2 [deprecated]           ...           10 years ago
  • 1.10.1 [deprecated]           ...           10 years ago
  • 1.10.0 [deprecated]           ...           10 years ago
  • 1.9.1 [deprecated]           ...           11 years ago
  • 1.9.0 [deprecated]           ...           11 years ago
  • 1.8.2 [deprecated]           ...           11 years ago
  • 1.8.1 [deprecated]           ...           11 years ago
  • 1.7.3 [deprecated]           ...           11 years ago
  • 1.7.2 [deprecated]           ...           12 years ago
  • 1.7.1 [deprecated]           ...           12 years ago
  • 1.7.0 [deprecated]           ...           12 years ago
  • 1.6.0 [deprecated]           ...           12 years ago
  • 1.5.2 [deprecated]           ...           12 years ago
  • 1.5.0 [deprecated]           ...           12 years ago
  • 1.4.2 [deprecated]           ...           12 years ago
  • 1.4.1 [deprecated]           ...           12 years ago
  • 1.4.0 [deprecated]           ...           12 years ago
  • 1.3.4 [deprecated]           ...           13 years ago
  • 1.3.3 [deprecated]           ...           13 years ago
  • 1.3.2 [deprecated]           ...           13 years ago
  • 1.3.1 [deprecated]           ...           13 years ago
  • 1.3.0 [deprecated]           ...           13 years ago
  • 1.2.0 [deprecated]           ...           13 years ago
  • 1.1.1 [deprecated]           ...           13 years ago
  • 1.1.0 [deprecated]           ...           14 years ago
  • 1.0.2 [deprecated]           ...           14 years ago
  • 1.0.1 [deprecated]           ...           14 years ago
  • 1.0.0 [deprecated]           ...           14 years ago
  • 0.6.3 [deprecated]           ...           14 years ago
  • 0.6.2 [deprecated]           ...           14 years ago
Downloads
Total 5
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 2
Dependencies (0)
None
Dev Dependencies (0)
None

© 2010 - cnpmjs.org x YWFE | Home | YWFE