Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
},
diagnostics: false,
},
},
modulePathIgnorePatterns: [
'/build/',
'/node_modules/',
'/.history/',
],
moduleNameMapper: {
'\\.svg': '/__mocks__/svgMock.js',
'.+\\.(css|styl|less|sass|scss|png|jpg|ttf|woff|woff2)$': 'babel-jest',
},
setupFiles: [
...expoPreset.setupFiles,
...jestPreset.setupFiles,
'/test/jestSetup.ts',
],
/* eslint-disable */
transformIgnorePatterns: [
'node_modules/(?!(jest-)?react-native|react-clone-referenced-element|@react-native-community|expo(nent)?|@expo(nent)?/.*|react-navigation|@react-navigation/.*|@unimodules/.*|unimodules-*|sentry-expo|native-base|@dooboo-ui)',
],
/* eslint-enable */
setupFilesAfterEnv: ['./test/setupTest.js'],
};
modulePathIgnorePatterns: [
'/build/',
'/node_modules/',
'/.history/',
],
// 'testRegex': '(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$',
testPathIgnorePatterns: ['\\.snap$', '/node_modules/'],
cacheDirectory: '.jest/cache',
setupFilesAfterEnv: ['./test/setupTest.ts'],
moduleNameMapper: {
'\\.svg': '/__mocks__/svgMock.js',
'.+\\.(css|styl|less|sass|scss|png|jpg|ttf|woff|woff2)$': 'babel-jest',
},
setupFiles: [
'./node_modules/react-native-gesture-handler/jestSetup.js',
...jestPreset.setupFiles,
'/test/jestSetup.ts',
],
// 'testRegex': '(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$',
/* eslint-disable */
transformIgnorePatterns: [
'node_modules/(?!(jest-)?react-native|react-clone-referenced-element|@react-native-community|react-navigation|@react-navigation/.*|@dooboo-ui)',
],
/* eslint-enable */
haste: {
defaultPlatform: 'ios',
platforms: ['android', 'ios', 'native'],
providesModuleNodeModules: ['react', 'react-native'],
},
coveragePathIgnorePatterns: ['/node_modules/'],
};