junit-reporter-fork/test/unit/setup.js
Maciek Lewkowicz ae15524b71 Initial commit
2019-03-13 22:25:39 +01:00

24 lines
378 B
JavaScript

'use strict';
const assert = require('proclaim');
const mockery = require('mockery');
const sinon = require('sinon');
sinon.assert.expose(assert, {
includeFail: false,
prefix: ''
});
beforeEach(() => {
mockery.enable({
useCleanCache: true,
warnOnUnregistered: false,
warnOnReplace: false
});
});
afterEach(() => {
mockery.deregisterAll();
mockery.disable();
});