sinon
JavaScript test spies, stubs and mocks.
Last updated 3 months ago by fatso83 .
BSD-3-Clause · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm 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 Join the chat at https://gitter.im/sinonjs/sinon Build status 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 or drop by #sinon.js on irc.freenode.net:6667.

You can also search through the Sinon.JS mailing list archives.

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

Support us with a monthly donation and help us continue our activities. [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

  • 12.0.1                                ...           latest (3 months ago)
  • 5.0.1-next.1                                ...           next (4 years ago)

180 Versions

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

Copyright 2014 - 2021 © npmmirror.com |