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-18 22:24:18 +03:00
|
|
|
'!src/**/provideServices.js',
|
|
|
|
'!src/container/*.js',
|
2018-09-01 12:45:42 +03:00
|
|
|
],
|
|
|
|
setupFiles: [
|
|
|
|
'<rootDir>/config/polyfills.js',
|
|
|
|
'<rootDir>/config/setupEnzyme.js',
|
|
|
|
],
|
|
|
|
testMatch: [ '<rootDir>/test/**/*.test.{js,jsx,mjs}' ],
|
|
|
|
testEnvironment: 'node',
|
|
|
|
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',
|
|
|
|
},
|
|
|
|
transformIgnorePatterns: [ '[/\\\\]node_modules[/\\\\].+\\.(js|jsx|mjs)$' ],
|
|
|
|
moduleNameMapper: {
|
|
|
|
'^react-native$': 'react-native-web',
|
|
|
|
},
|
|
|
|
moduleFileExtensions: [
|
|
|
|
'web.js',
|
|
|
|
'js',
|
|
|
|
'json',
|
|
|
|
'web.jsx',
|
|
|
|
'jsx',
|
|
|
|
'node',
|
|
|
|
'mjs',
|
|
|
|
],
|
|
|
|
};
|