GitHub / sinonjs / sinon
Test spies, stubs and mocks for JavaScript.
JSON API: http://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sinonjs%2Fsinon
PURL: pkg:github/sinonjs/sinon
Stars: 9,738
Forks: 773
Open issues: 46
License: other
Language: JavaScript
Size: 41.5 MB
Dependencies parsed at: Pending
Created at: about 15 years ago
Updated at: about 12 hours ago
Pushed at: 25 days ago
Last synced at: about 9 hours ago
Commit Stats
Commits: 3079
Authors: 417
Mean commits per author: 7.38
Development Distribution Score: 0.719
More commit stats: https://commits.ecosyste.ms/hosts/GitHub/repositories/sinonjs/sinon
Topics: javascript, sinon, stub, stubs, tdd, test-driven-development, test-spies, unit-testing
Funding Links https://github.com/sponsors/sinonjs, https://opencollective.com/sinon
Download
Replace 4.1.5, which was a bad build
v4.1.6
- Fix bad build, missing nise@1.2.0 (#1656)
- Upgrade dependency supports-color
Download
Download
Download
Fix issue with `useFakeServer`
v4.1.5
This release fixes an issue, where the server type from useFakeServer
is unexpected (#1534)
Download
Minor fix for Symbol names and deprecation of spy.reset
v4.1.4
- Fix: assertion error messages did not handle Symbol names (#1640)
- Deprecate spy.reset(), use spy.resetHistory() instead (#1446)
Download
Add stub#resolvesThis
v3.2.0
- Fix #1521 by caching references to Array.prototype.filter (#1523)
- Fix #1368 by adding stub#resolvesThis (#1517)
Download
v3.0.0
v3.0.0
- Remove deprecated exports see migration guide
- Fix #1432: add details around expectations.withArgs behavior to docs (#1501)
- Fix #1487: incorrect withArgs().returnValue
- add format.setFormatter
- Upgrade lolex to 2.1.2
- Extract fakeXhr, fakeServer and fakeServerWithClock into own module
nise
and re-import it to keep api the same
Download
v2.0.0
v2.0.0
This is the big 2.0 release with lots of breaking changes. We have created a migration guide on the Sinon homepage you are advised to follow.
Changes since pre6
- Add restore method for stubbed property descriptors
- Allow stubbing getters and setters for function properties
- Add getters/setters stub behaviors
- Refactor xhr and xhr.upload to use the same EventTargetHandler
- Remove SSL part of base url
Download