Become a contributor

Financial contributions

Custom contribution

Donation

Make a custom one time or recurring contribution to support this collective.
+ 40

28 individuals and 16 organizations have contributed

Recurring contribution

Backers

Support us with a monthly donation and help us continue our activities.

Starts at

$2 USD / month

+ 26

18 individuals and 12 organizations have contributed

Recurring contribution

Sponsors

Become a sponsor and get your logo on our README on Github with a link to your site.

Starts at

$100 USD / month

3 organizations have contributed

Top financial contributors

Organizations

1

Airbnb

$2k USD since Apr 2018

2

Mixmax

$2k USD since Jan 2018

3

Principal Financi...

$826 USD since Dec 2018

4

CodePilot.ai

$200 USD since Apr 2018

5

BitMEX

$100 USD since Dec 2019

6

Summit

$90 USD since Feb 2019

7

Open Collective Inc.

$60 USD since Dec 2018

8

Metabolize

$44 USD since Mar 2018

9

Matter

$34 USD since Aug 2018

10

Bluehost vs Squar...

$10 USD since May 2019

Individuals

1

Rens Groothuijsen

$240 USD since Aug 2017

2

Yannick Croissant

$180 USD since Jul 2019

3

Lon Ingram

$150 USD since Jul 2017

4

Mark Stacey

$108 USD since Feb 2017

5

Tim Oram

$86 USD since Mar 2017

6

Marco Barcellos

$64 USD since Sep 2018

7

Pamela Fox

$60 USD since Jul 2017

8

Yoyo Zhou

$60 USD since Jun 2018

9

Timothy Robinson

$54 USD since Oct 2017

10

Linlin Wang

$50 USD since Oct 2017

What's new with sinon

Stay up to dates with our latest activities and progress.

@sinonjs/referee-sinon v5.0.0 released

If you're a Sinon user, you may be interested in referee-sinon, which bundles Sinon and Referee in one package, so you only need a single dependency. It ships with additional assertions for Sinon fakes, like assert.calledOnceWith(stub, 1, 2) or refute.called(spy).

With this latest major release, it includes the latest Sinon (7.2) and Referee (3.1) versions. A highlight is the unified match interface which now let's you use any of the Sinon matchers in assert.equals and refute.equals.

You can import all the tools you need with a single destructuring assignment like this:

const { assert, refute, match, sinon } = require("@sinonjs/referee-sinon");

Give it a try and star the project on GitHub.

Published on December 17, 2018 by Maximilian Antoni

Sinon 7.2.0 and Referee 3.0.0 released

With the latest releases, the Sinon matchers are now shared through @sinonjs/samsam and can be used in @sinonjs/referee as well. Matchers allow you to be more fuzzy about the expected value.
const { assert, match } = require("@sinonjs/referee");

it("passes", function() {
    const object = { foo: 1, bar: "test" };

    assert.equals(object, {
        foo: 1,
        bar: match.string
    });
});

You can also write your own matchers for even more expressive assertions. Read the matcher API to learn more.

Published on December 10, 2018 by Maximilian Antoni

v5.0.1 is on npm

This morning we have released v.5.0.1, new major version, to npm.

It contains a few notable changes and a new feature:

  • sinon object is now a (default) sandbox, making your setup easier
  • sinon.fake creates immutable fakes, lots easier to use than stub
  • sinon.replace, sinon.replaceGetter, sinon.replaceSetter can be used for replacing properties with fakes (and spies and stubs)

http://sinonjs.org/guides/migrating-to-5.0

Published on April 30, 2018 by Morgan Roderick

Budget

See how money openly circulates through sinon. All contributions and all expenses are published in our transparent public ledger. Learn who is donating, how much, where is that money going, submit expenses, get reimbursed and more!

Monthly donation to sinon (Backers)

devongovett | 12/3/2019 | View Details 
+$2.00USD

Monthly donation to sinon (Sponsors)

Airbnb | 12/3/2019 | View Details 
+$167.00USD

Monthly donation to sinon (Backers)

Yoyo Zhou | 12/3/2019 | View Details 
+$3.14USD

Today’s balance

$4,176.61 USD

Estimated annual budget

~ $5,701.70 USD

sinon is all of us

Our contributors 48

Everyone who has supported sinon. Individuals and organizations that believe in –and take ownership of– our purpose.

Morgan Roderick
Collective Admin
Maximilian An...
Collective Admin
Carl-Erik Kop...
Collective Admin
Christian Joh...
Collective Admin
Airbnb
Financial Contributor

Total contributions

$2,398 USD

Mixmax
Financial Contributor

Total contributions

$1,700 USD

Come join us! mixmax.com/careers

Principal Fin...
Financial Contributor

Total contributions

$826 USD

Rens Groothui...
Financial Contributor

Total contributions

$240 USD

CodePilot.ai
Financial Contributor

Total contributions

$200 USD

Yannick Crois...
Financial Contributor

Total contributions

$180 USD

Lon Ingram
Financial Contributor

Total contributions

$150 USD

Mark Stacey
Financial Contributor

Total contributions

$108 USD

About

This collective covers the work done in the the sinonjs organisation on GitHub.

Our best known project is sinon.

We've recently adopted related projects that had fallen out of maintenance, most notably referee, which is a great assertion library.