module.exports = { coverageDirectory: '/coverage', collectCoverageFrom: [ 'src/**/*.{ts,tsx}', '!src/*.{ts,tsx}', '!src/reducers/index.ts', '!src/**/provideServices.ts', '!src/container/*.ts', ], coverageThreshold: { global: { statements: 85, branches: 80, functions: 80, lines: 85, }, }, setupFiles: [ '/config/setupEnzyme.js' ], testMatch: [ '/test/**/*.test.{ts,tsx}' ], testEnvironment: 'jsdom', testURL: 'http://localhost', transform: { '^.+\\.(ts|tsx|js)$': '/node_modules/babel-jest', '^(?!.*\\.(ts|tsx|js|json)$)': '/config/jest/fileTransform.js', }, transformIgnorePatterns: [ '/.stryker-tmp', '[/\\\\]node_modules[/\\\\].+\\.(js|jsx|ts|tsx)$', '^.+\\.module\\.scss$', ], moduleNameMapper: { '^.+\\.module\\.scss$': 'identity-obj-proxy', // Reactstrap module resolution does not work in jest for some reason. Manually mapping it solves the problem 'reactstrap': '/node_modules/reactstrap/dist/reactstrap.umd.js', }, moduleFileExtensions: [ 'js', 'ts', 'tsx', 'json' ], };