/* eslint-disable import/no-extraneous-dependencies */
/* This file is used only by jest test framework. */
import { configure } from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
import 'jest-localstorage-mock';
/* eslint-enable import/no-extraneous-dependencies */

configure({ adapter: new Adapter() });

/* eslint-disable import/no-extraneous-dependencies */
/* This file is used only by jest test framework. */
import { configure } from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
import 'jest-localstorage-mock';
/* eslint-enable import/no-extraneous-dependencies */

configure({ adapter: new Adapter() });

if (!process.env.LISTENING_TO_UNHANDLED_REJECTION) {
  process.on('unhandledRejection', reason => {
    throw reason;
  });
  // Avoid memory leak by adding too many listeners.
  process.env.LISTENING_TO_UNHANDLED_REJECTION = true;
}

Throw on uhandled promise rejections. Jest will return non-zero code eventually.
Throw on uhandled promise rejections. Jest will return non-zero code eventually.
