module.exports = { coverageDirectory: '/coverage', collectCoverageFrom: [ 'src/**/*.{ts,tsx}', '!src/*.{ts,tsx}', '!src/reducers/index.ts', '!src/**/provideServices.ts', '!src/container/*.ts', ], coverageThreshold: { global: { statements: 90, branches: 80, functions: 85, lines: 90, }, }, setupFiles: ['/config/jest/setupBeforeEnzyme.js', '/config/jest/setupEnzyme.js'], setupFilesAfterEnv: ['/config/jest/setupTests.ts'], testMatch: ['/test/**/*.test.{ts,tsx}'], testEnvironment: 'jsdom', testEnvironmentOptions: { url: 'http://localhost', }, transform: { '^.+\\.(ts|tsx|js)$': '/node_modules/babel-jest', '^.+\\.scss$': '/config/jest/cssTransform.js', '^(?!.*\\.(ts|tsx|js|json|scss)$)': '/config/jest/fileTransform.js', }, transformIgnorePatterns: [ '/.stryker-tmp', 'node_modules\/(?!(\@react-leaflet|react-leaflet|leaflet|react-chartjs-2|react-colorful)\/)', '^.+\\.module\\.scss$', ], moduleNameMapper: { '^.+\\.module\\.scss$': 'identity-obj-proxy', 'react-chartjs-2': '/node_modules/react-chartjs-2/dist/index.js', 'uuid': '/node_modules/uuid/dist/index.js', }, moduleFileExtensions: ['js', 'ts', 'tsx', 'json'], };