18 lines
560 B
JavaScript
18 lines
560 B
JavaScript
|
const isReactNative = process.env.REACT_APP_IS_REACT_NATIVE;
|
||
|
|
||
|
module.exports = {
|
||
|
moduleFileExtensions: ['testing.js', 'electron.js']
|
||
|
.concat(isReactNative ? ['ios.js', 'mobile.js'] : [])
|
||
|
.concat(['mjs', 'js', 'json']),
|
||
|
setupFilesAfterEnv: ['<rootDir>/src/mocks/setup.js'],
|
||
|
testEnvironment: 'node',
|
||
|
testPathIgnorePatterns: ['/node_modules/', '/lib/', 'index.web.test.js'],
|
||
|
transformIgnorePatterns: ['__mocks__'],
|
||
|
transform: {
|
||
|
'^.+\\.(js|ts|tsx)?$': '<rootDir>/../../jest-babel-transformer'
|
||
|
},
|
||
|
globals: {
|
||
|
__TESTING__: true
|
||
|
}
|
||
|
};
|