const path = require('path');

module.exports = () => ({
  moduleNameMapper: {
    '\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$': path.resolve(__dirname, '__mocks__/file.js'),
    '\\.(css)$': require.resolve('identity-obj-proxy'),
    '^react-relay/compat$': path.resolve(__dirname, '__mocks__/react-relay/compat.js'),
    '^react-relay/classic$': path.resolve(__dirname, '__mocks__/react-relay/classic.js'),
    '^react-relay$': path.resolve(__dirname, '__mocks__/react-relay.js'),
    '^react$': path.resolve('node_modules/react'),
    '^react-dom$': path.resolve('node_modules/react-dom'),
    '^react-dom/server$': path.resolve('node_modules/react-dom/server'),
    '^react-dom/test-utils': path.resolve('node_modules/react-dom/test-utils'),
  },
  transform: {
    '\\.js$': path.resolve(__dirname, 'babelTransform.js'),
  },
  collectCoverageFrom: ['src/**/*.js'],
  testRegex: 'src/.*__spec\\.js$',
  snapshotSerializers: [require.resolve('enzyme-to-json/serializer')],
  setupFiles: [path.resolve(__dirname, 'testSetup.js')],
});

@@ -521,271 +521,8 @@
 '),%0A
-    '%5Ereact$': path.resolve('node_modules/react'),%0A    '%5Ereact-dom$': path.resolve('node_modules/react-dom'),%0A    '%5Ereact-dom/server$': path.resolve('node_modules/react-dom/server'),%0A    '%5Ereact-dom/test-utils': path.resolve('node_modules/react-dom/test-utils'),%0A
   %7D,

remove unnecessary jest module mappers