2018-09-01 12:45:42 +03:00
|
|
|
module.exports = {
|
|
|
|
coverageDirectory: '<rootDir>/coverage',
|
|
|
|
collectCoverageFrom: [
|
2020-08-22 09:47:19 +03:00
|
|
|
'src/**/*.{js,jsx,ts,tsx}',
|
2018-09-01 12:45:42 +03:00
|
|
|
'!src/registerServiceWorker.js',
|
2020-08-29 14:51:53 +03:00
|
|
|
'!src/index.ts',
|
|
|
|
'!src/reducers/index.ts',
|
|
|
|
'!src/**/provideServices.ts',
|
|
|
|
'!src/container/*.ts',
|
2018-09-01 12:45:42 +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',
|
|
|
|
],
|
|
|
|
};
|