layout | title | skip_ad | release_id |
---|---|---|---|
page |
API documentation - Sinon.JS |
true |
master |
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 %}
As of Sinon 10 we stopped maintaining compatibility with legacy browsers. Instead, we focus on compatibility with evergreen browsers, Node.js LTS versions and recent Safari versions. The most up-to-date reference on which runtimes and browsers we support can be found by looking at our compatibility docs.
If you need to support old runtimes you can try Sinon 9.
{% include docs/contribute.md %}