1
0
Fork 0
cautious-journey/scripts/mocha-preload.js

18 lines
427 B
JavaScript
Raw Normal View History

export const jsdom = require('jsdom-global')();
const sourceMapSupport = require('source-map-support');
sourceMapSupport.install({
environment: 'node',
handleUncaughtExceptions: true,
hookRequire: true,
});
const chai = require('chai');
const chaiPromise = require('chai-as-promised');
const chaiSinon = require('sinon-chai');
chai.use(chaiPromise);
chai.use(chaiSinon);
window.URL.createObjectURL = function () { };