An open API service providing repository metadata for many open source software ecosystems.

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

Releases
Make resetHistory work for props

v4.2.2

  • Fix #1638: Make resetHistory work for props
over 7 years ago
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
over 7 years ago
Download
Add match.every and match.some

v4.2.0

  • Add match.every and match.some (#1624) (#1661)
over 7 years ago
Download
Speed up stub creation

v4.2.1

  • Performance: spend less time stubbing methods (#1627)
over 7 years ago
Download
Fix issue with `useFakeServer`

v4.1.5

This release fixes an issue, where the server type from useFakeServer is unexpected (#1534)

over 7 years ago
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)
over 7 years ago
Download
Add stub#resolvesThis

v3.2.0

  • Fix #1521 by caching references to Array.prototype.filter (#1523)
  • Fix #1368 by adding stub#resolvesThis (#1517)
about 8 years ago
Download
v3.1.0

v3.1.0

  • Add factory functions for sandbox and fake server (#1515)
  • Add support for passing a function to stub.throws(…). (#1511)
  • Lots of documentation updates
  • Fix regression on sandbox.stub(obj,protoMethod) (#1512)
about 8 years ago
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
about 8 years ago
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
about 8 years ago
Download