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
|
|
|
},
|
|
|
|
},
|
2019-01-06 01:16:13 +03:00
|
|
|
resolver: 'jest-pnp-resolver',
|
2018-09-01 12:45:42 +03:00
|
|
|
setupFiles: [
|
2019-01-06 01:16:13 +03:00
|
|
|
'react-app-polyfill/jsdom',
|
2018-09-01 12:45:42 +03:00
|
|
|
'<rootDir>/config/setupEnzyme.js',
|
|
|
|
],
|
2019-01-06 01:16:13 +03:00
|
|
|
testMatch: [ '<rootDir>/test/**/*.test.{js,jsx,ts,tsx}' ],
|
|
|
|
testEnvironment: 'jsdom',
|
2018-09-01 12:45:42 +03:00
|
|
|
testURL: 'http://localhost',
|
|
|
|
transform: {
|
2020-08-22 10:15:05 +03:00
|
|
|
'^.+\\.(ts|tsx|js|jsx|mjs)$': '<rootDir>/node_modules/babel-jest',
|
2018-09-01 12:45:42 +03:00
|
|
|
'^.+\\.css$': '<rootDir>/config/jest/cssTransform.js',
|
2020-08-22 10:15:05 +03:00
|
|
|
'^(?!.*\\.(ts|tsx|js|jsx|mjs|css|json)$)': '<rootDir>/config/jest/fileTransform.js',
|
2018-09-01 12:45:42 +03:00
|
|
|
},
|
2019-01-06 01:16:13 +03:00
|
|
|
transformIgnorePatterns: [
|
|
|
|
'[/\\\\]node_modules[/\\\\].+\\.(js|jsx|ts|tsx)$',
|
|
|
|
'^.+\\.module\\.(css|sass|scss)$',
|
|
|
|
],
|
2018-09-01 12:45:42 +03:00
|
|
|
moduleNameMapper: {
|
|
|
|
'^react-native$': 'react-native-web',
|
2019-01-06 01:16:13 +03:00
|
|
|
'^.+\\.module\\.(css|sass|scss)$': 'identity-obj-proxy',
|
2018-09-01 12:45:42 +03:00
|
|
|
},
|
|
|
|
moduleFileExtensions: [
|
|
|
|
'web.js',
|
|
|
|
'js',
|
2019-01-06 01:16:13 +03:00
|
|
|
'web.ts',
|
|
|
|
'ts',
|
|
|
|
'web.tsx',
|
|
|
|
'tsx',
|
2018-09-01 12:45:42 +03:00
|
|
|
'json',
|
|
|
|
'web.jsx',
|
|
|
|
'jsx',
|
|
|
|
'node',
|
|
|
|
],
|
|
|
|
};
|