module.exports = { coverageDirectory: '/coverage', collectCoverageFrom: [ 'src/**/*.js', '!src/registerServiceWorker.js', '!src/index.js', '!src/reducers/index.js', '!src/**/provideServices.js', '!src/container/*.js', ], resolver: 'jest-pnp-resolver', setupFiles: [ 'react-app-polyfill/jsdom', '/config/setupEnzyme.js', ], testMatch: [ '/test/**/*.test.{js,jsx,ts,tsx}' ], testEnvironment: 'jsdom', testURL: 'http://localhost', transform: { '^.+\\.(js|jsx|mjs)$': '/node_modules/babel-jest', '^.+\\.css$': '/config/jest/cssTransform.js', '^(?!.*\\.(js|jsx|mjs|css|json)$)': '/config/jest/fileTransform.js', }, transformIgnorePatterns: [ '[/\\\\]node_modules[/\\\\].+\\.(js|jsx|ts|tsx)$', '^.+\\.module\\.(css|sass|scss)$', ], moduleNameMapper: { '^react-native$': 'react-native-web', '^.+\\.module\\.(css|sass|scss)$': 'identity-obj-proxy', }, moduleFileExtensions: [ 'web.js', 'js', 'web.ts', 'ts', 'web.tsx', 'tsx', 'json', 'web.jsx', 'jsx', 'node', ], };