Sinon.JS

This page contains the entire Sinon.JS API documentation along with brief introductions to the concepts Sinon implements.

Migrating from v1.x to v2.0

Please see our migration guide for details on migrating to Sinon.JS v2.0

Compatibility

ES5.1

Sinon v2.4.1 is written as ES5.1 and requires no transpiler or polyfills to run in the runtimes listed below.

Supported runtimes

v2.4.1 has been verified in these runtimes:

  • Firefox 45
  • Chrome 48
  • Internet Explorer 11
  • Edge 14
  • Safari 9
  • Node 4

There should not be any issues with using Sinon v2.4.1 in newer versions of the same runtimes.

If you need to support very old runtimes that have incomplete support for ES5.1 you might get away with using loading es5-shim in your test environment. If that fails, we recommend getting a legacy releases of Sinon.

Stuck?

Please ask questions on the mailing list if you’re stuck.

Contribute

We really appreciate suggestions to improve the documentation so Sinon.JS can be easy to work with. Get in touch!

© 2010–2017 Christian Johansen
Licensed under the BSD License.
http://sinonjs.org/releases/v2.4.1/