2018-09-01 12:45:42 +03:00
|
|
|
module.exports = {
|
|
|
|
coverageDirectory: '<rootDir>/coverage',
|
|
|
|
collectCoverageFrom: [
|
2021-09-19 11:57:36 +03:00
|
|
|
'src/**/*.{ts,tsx}',
|
|
|
|
'!src/*.{ts,tsx}',
|
2020-08-29 14:51:53 +03:00
|
|
|
'!src/reducers/index.ts',
|
|
|
|
'!src/**/provideServices.ts',
|
|
|
|
'!src/container/*.ts',
|
2018-09-01 12:45:42 +03:00
|
|
|
],
|
2021-09-19 11:31:53 +03:00
|
|
|
coverageThreshold: {
|
|
|
|
global: {
|
2021-09-20 22:52:46 +03:00
|
|
|
statements: 85,
|
2021-10-17 14:43:37 +03:00
|
|
|
branches: 80,
|
2021-09-19 11:31:53 +03:00
|
|
|
functions: 80,
|
2021-09-20 22:52:46 +03:00
|
|
|
lines: 85,
|
2021-09-19 11:31:53 +03:00
|
|
|
},
|
|
|
|
},
|
2022-05-02 14:22:38 +03:00
|
|
|
setupFiles: ['<rootDir>/config/jest/setupBeforeEnzyme.js', '<rootDir>/config/jest/setupEnzyme.js'],
|
2022-04-30 10:05:12 +03:00
|
|
|
setupFilesAfterEnv: ['<rootDir>/config/jest/setupTests.ts'],
|
|
|
|
testMatch: ['<rootDir>/test/**/*.test.{ts,tsx}'],
|
2019-01-06 01:16:13 +03:00
|
|
|
testEnvironment: 'jsdom',
|
2022-05-01 11:19:38 +03:00
|
|
|
testEnvironmentOptions: {
|
|
|
|
url: 'http://localhost',
|
|
|
|
},
|
2018-09-01 12:45:42 +03:00
|
|
|
transform: {
|
2022-02-27 21:12:30 +03:00
|
|
|
'^.+\\.(ts|tsx|js)$': '<rootDir>/node_modules/babel-jest',
|
2022-05-02 14:22:38 +03:00
|
|
|
'^.+\\.scss$': '<rootDir>/config/jest/cssTransform.js',
|
|
|
|
'^(?!.*\\.(ts|tsx|js|json|scss)$)': '<rootDir>/config/jest/fileTransform.js',
|
2018-09-01 12:45:42 +03:00
|
|
|
},
|
2019-01-06 01:16:13 +03:00
|
|
|
transformIgnorePatterns: [
|
2022-02-27 21:12:30 +03:00
|
|
|
'<rootDir>/.stryker-tmp',
|
2022-05-02 14:22:38 +03:00
|
|
|
'node_modules\/(?!(\@react-leaflet|react-leaflet|leaflet|react-chartjs-2|react-colorful)\/)',
|
2022-02-27 21:12:30 +03:00
|
|
|
'^.+\\.module\\.scss$',
|
2019-01-06 01:16:13 +03:00
|
|
|
],
|
2018-09-01 12:45:42 +03:00
|
|
|
moduleNameMapper: {
|
2022-02-27 21:12:30 +03:00
|
|
|
'^.+\\.module\\.scss$': 'identity-obj-proxy',
|
2022-05-02 12:51:17 +03:00
|
|
|
'react-chartjs-2': '<rootDir>/node_modules/react-chartjs-2/dist/index.js',
|
2022-05-02 14:22:38 +03:00
|
|
|
'uuid': '<rootDir>/node_modules/uuid/dist/index.js',
|
2018-09-01 12:45:42 +03:00
|
|
|
},
|
2022-04-30 10:05:12 +03:00
|
|
|
moduleFileExtensions: ['js', 'ts', 'tsx', 'json'],
|
2018-09-01 12:45:42 +03:00
|
|
|
};
|