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

18 lines
406 B
JavaScript
Raw Normal View History

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 () { };