junit-reporter-fork/test/unit/setup.js

24 lines
378 B
JavaScript
Raw Permalink Normal View History

2019-03-13 21:13:32 +01:00
'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();
});