Test spies, stubs and mocks for JavaScript.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci Add unstable as well Sep 18, 2018
.github Make template work with Hub Oct 13, 2018
docs Update docs/changelog.md and set new release id in docs/_config.yml Dec 12, 2018
lib Fix mock.withArgs using matchers (#1961) Dec 12, 2018
scripts Rename History.md to CHANGELOG.md Dec 8, 2018
test Fix mock.withArgs using matchers (#1961) Dec 12, 2018
.editorconfig Add subdir eslintrc for mjs Mar 8, 2018
.eslintignore Make workable bundle May 25, 2018
.eslintrc.yml Add prettier Oct 8, 2018
.gitignore Prepare documentation using site in GitHub Pages Dec 8, 2016
.markdownlintrc Allow html element var in markdown Mar 3, 2018
.min-wd Experiment over Jun 28, 2017
.npmrc Ensure that we always use loose versioning Jul 21, 2018
.prettierrc Add prettier Oct 8, 2018
.travis.yml fixed coveralls integration Jun 2, 2018
AUTHORS Update CHANGELOG.md and AUTHORS for new release Dec 12, 2018
CHANGELOG.md Update CHANGELOG.md and AUTHORS for new release Dec 12, 2018
CONTRIBUTING.md fix(CONTRIBUTING.md): correct markdown link (#1932) Oct 15, 2018
Gemfile Add Jekyll sitemap for SEO improvements Oct 13, 2018
Gemfile.lock Add Jekyll sitemap for SEO improvements Oct 13, 2018
LICENSE Update copyright year to current Mar 21, 2017
README.md Use https everywhere and remove legacy links Jul 30, 2018
RELEASE.md Rename History.md to CHANGELOG.md Dec 8, 2018
build.js Run prettier on all files and fix violations Oct 8, 2018
eslint-local-rules.js Run prettier on all files and fix violations Oct 8, 2018
package-lock.json 7.2.2 Dec 12, 2018
package.json 7.2.2 Dec 12, 2018
rollup.config.js Append named exports to the generated esm bundle Jun 9, 2018

README.md

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 Coverage Status OpenCollective OpenCollective npm downloads per month CDNJS version

Sauce Test Status

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