1 | module.exports = {
|
2 | transform: {
|
3 | '^.+\\.tsx?$': 'ts-jest',
|
4 | },
|
5 | setupFiles: ['./jest.setup.ts'],
|
6 | moduleNameMapper: {
|
7 | '^src/(.*)$': '<rootDir>/src/$1',
|
8 | },
|
9 | preset: 'react-native',
|
10 | moduleFileExtensions: ['ts', 'tsx', 'js'],
|
11 | modulePathIgnorePatterns: [
|
12 | '.yarn',
|
13 | '.npm',
|
14 | 'ios/',
|
15 | 'node_modules/',
|
16 | 'android/',
|
17 | '<rootDir>/lib/',
|
18 | ],
|
19 | testPathIgnorePatterns: [
|
20 | '\\.snap$',
|
21 | '<rootDir>/node_modules/',
|
22 | '<rootDir>/lib/',
|
23 | '<rootDir>/example/',
|
24 | ],
|
25 | };
|