sinon-distdeprecated

Standalone builds of Sinon.js

Usage no npm install needed!

<script type="module">
  import sinonDist from 'https://cdn.skypack.dev/sinon-dist';
</script>

README

Sinon.JS standalone

This repository contains standalone builds of Sinon.js, ready to be used. All builds are directly fetched from sinonjs.org and tagged.

Installation

Via npm:

npm install sinon-dist

Install a specific version:

npm install sinon-dist@1.15.1

Install the latest version and save the version in package.json:

npm install sinon-dist --save-dev

Usage

Web page

<script src="node_modules/sinon.js"></script>
<!-- TODO: Use sinon API! -->

AMD

require.config({
    sinon: 'node_modules/sinon'
});
require(['sinon'], function(sinon) {
    // TODO: use sinon API!
});

Node.js (CommonJS)

var sinon = require('sinon');
// TODO: Use sinon API!

References

This repository is not affiliated in any way with the original authors of Sinon.js.