* Fixed unhandled rejection in <ImageUploader /> test. * Fixed <FollowUsers /> tests. * Fixed the tests for the <RequestManager /> component. * Fixed unhandled rejection in search utilities. * Added an unhandledRejection listener so tests will fail if a Promise fails. * Added a comment about why you might get an unhandled rejection exception.
8 lines
245 B
JavaScript
8 lines
245 B
JavaScript
/* eslint-env node */
|
|
import 'jest-axe/extend-expect';
|
|
import './app/assets/javascripts/lib/xss';
|
|
|
|
process.on('unhandledRejection', (error) => {
|
|
// Errors thrown here are typically fetch responses that have not been mocked.
|
|
throw error;
|
|
});
|