Skip to content

Instantly share code, notes, and snippets.

@Rolias
Created November 1, 2021 20:31
Show Gist options
  • Save Rolias/f7921f503a2cbbaad4b650c172728a86 to your computer and use it in GitHub Desktop.
Save Rolias/f7921f503a2cbbaad4b650c172728a86 to your computer and use it in GitHub Desktop.
Experiment with Sharing Code Snippets
const chai = require(`chai`)
const sinon = require(`ts-sinon`).default
const sinonChai = require(`sinon-chai`)
const sinonAsPromised = require(`chai-as-promised`)
const chaiSubset = require(`chai-subset`)
chai.use(sinonChai)
chai.use(sinonAsPromised)
chai.use(chaiSubset)
// Add some names to the global namespace to make TypeScript happy
// @ts-ignore
global.should = chai.should()
// @ts-ignore
global.stubInterface = sinon.stubInterface
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment