2018-09-01 12:45:42 +03:00
|
|
|
module.exports = {
|
|
|
|
coverageDirectory: '<rootDir>/coverage',
|
|
|
|
collectCoverageFrom: [
|
2018-12-18 22:24:18 +03:00
|
|
|
'src/**/*.js',
|
2018-09-01 12:45:42 +03:00
|
|
|
'!src/registerServiceWorker.js',
|
|
|
|
'!src/index.js',
|
2018-12-21 12:38:35 +03:00
|
|
|
'!src/reducers/index.js',
|
2018-12-18 22:24:18 +03:00
|
|
|
'!src/**/provideServices.js',
|
|
|
|
'!src/container/*.js',
|
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: {
|
|
|
|
'^.+\\.(js|jsx|mjs)$': '<rootDir>/node_modules/babel-jest',
|
|
|
|
'^.+\\.css$': '<rootDir>/config/jest/cssTransform.js',
|
|
|
|
'^(?!.*\\.(js|jsx|mjs|css|json)$)': '<rootDir>/config/jest/fileTransform.js',
|
|
|
|
},
|
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',
|
|
|
|
],
|
|
|
|
};
|