text: import 'raf/polyfill';
  
  import Enzyme from 'enzyme';
  import Adapter from 'enzyme-adapter-react-16';
  import jsdom from 'jsdom';
  
  import dotenv from 'dotenv';
  dotenv.config();
  
  const { JSDOM } = jsdom;
  const { document } = (new JSDOM('<!doctype html><html><body></body></html>')).window;
  global.document = document;
  global.window = document.defaultView;
  global.window.localStorage = {
    getItem: jest.fn(),
    setItem: jest.fn(),
    removeItem: jest.fn(),
  }
  global.navigator = {
    userAgent: 'node.js',
  };
  
  function copyProps(src, target) {
    const props = Object.getOwnPropertyNames(src)
      .filter(prop => typeof target[prop] === 'undefined')
      .reduce((result, prop) => ({
        ...result,
        [prop]: Object.getOwnPropertyDescriptor(src, prop),
      }), {});
    Object.defineProperties(target, props);
  }
  copyProps(document.defaultView, global);
  
  
  Enzyme.configure({ adapter: new Adapter() });
  