Created
November 1, 2021 20:31
-
-
Save Rolias/f7921f503a2cbbaad4b650c172728a86 to your computer and use it in GitHub Desktop.
Experiment with Sharing Code Snippets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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