Created
January 12, 2020 14:50
-
-
Save Farenheith/aa6f03559b02842bfe44175b4d2169d3 to your computer and use it in GitHub Desktop.
Exmaple of setup for unit tests
This file contains hidden or 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
import 'reflect-metadata'; | |
import { use } from 'chai'; | |
import { restore } from 'sinon'; | |
import sinonChai = require('sinon-chai'); | |
use(sinonChai); | |
afterEach(() => { | |
restore(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment