layout | title | release_id |
---|---|---|
page |
API documentation - Sinon.JS |
v7.2.6 |
This page contains the entire Sinon.JS API documentation along with brief introductions to the concepts Sinon implements.
- General setup
- Fakes
- Spies
- Stubs
- Mocks
- Spy calls
- Fake timers
- Fake
XHR
and server - JSON-P
- Assertions
- Matchers
- Sandboxes
- Utils
{% include docs/migration-guides.md %}
Sinon {{page.release_id}}
is written as ES5.1 and requires no transpiler or polyfills to run in the runtimes listed below.
{{page.release_id}}
has been verified in these runtimes:
- Firefox 45
- Chrome 48
- Internet Explorer 11
- Edge 14
- Safari 9
- Node.js LTS versions
There should not be any issues with using Sinon {{page.release_id}}
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.
{% include docs/contribute.md %}