1 | module.exports = {
|
2 | preset: 'react-native',
|
3 | setupFiles: ['<rootDir>/tests/setup.js'],
|
4 | moduleFileExtensions: ['js', 'jsx', 'json', 'ts', 'tsx'],
|
5 | transform: {
|
6 | '^.+\\.(js|jsx|ts|tsx)$': 'babel-jest',
|
7 | // '^.+\\.js$': '<rootDir>/node_modules/react-native/jest/preprocessor.js',
|
8 | },
|
9 | transformIgnorePatterns: [
|
10 | '/node_modules/(?!(@react-native|react-native)).*/',
|
11 | ],
|
12 | testMatch: ['**/*.test.ts?(x)'],
|
13 | modulePathIgnorePatterns: ['<rootDir>/example'],
|
14 | coveragePathIgnorePatterns: ['./src/__tests__/'],
|
15 | }
|