text: 
  const { JSDOM } = require('jsdom');
  
  const jsdom = new JSDOM();
  const { window } = jsdom;
  
  function copyProps(src, target) {
    const props = Object.getOwnPropertyNames(src)
      .filter(prop => typeof target[prop] === 'undefined')
      .map(prop => Object.getOwnPropertyDescriptor(src, prop));
    Object.defineProperties(target, props);
  }
  
  global.window = window;
  global.document = window.document;
  global.navigator = {
    userAgent: 'node.js',
  };
  copyProps(window, global);
  
  // Ignore React Web errors when using React Native
  // allow other errors to propagate if they're relevant
  require('react-native-mock-render/mock');
  
  import { configure } from 'enzyme';
  import Adapter from 'enzyme-adapter-react-16';
  
  configure({ adapter: new Adapter() });