docbrown/testSetup.js
dependabot[bot] f0700b2588
Bump jest from 26.6.3 to 27.2.0 (#14722)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Suzanne Aitchison <suzanne@forem.com>
2021-09-14 11:20:15 -04:00

10 lines
287 B
JavaScript

/* eslint-env node */
import 'jest-axe/extend-expect';
import './app/assets/javascripts/lib/xss';
global.setImmediate = global.setTimeout;
process.on('unhandledRejection', (error) => {
// Errors thrown here are typically fetch responses that have not been mocked.
throw error;
});