forked from EvanBacon/expo-router-instagram-layout
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
36 lines (35 loc) · 1.4 KB
/
jest.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
module.exports = {
collectCoverage: false,
collectCoverageFrom: ['src/**/*.{ts,tsx}', '!src/**/*.d.ts', '!src/**/*.stories.tsx', '!src/**/*.mock.ts'],
coverageDirectory: 'tests',
coveragePathIgnorePatterns: [
'<rootDir>/node_modules/',
'<rootDir>/android/',
'<rootDir>/ios/',
'<rootDir>/lib/',
'<rootDir>/test/',
'<rootDir>/dist/',
'babel.config.js',
'metro.config.js',
],
coverageReporters: ['html'],
maxWorkers: 2,
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
moduleNameMapper: {
'^react-native$': '<rootDir>/node_modules/react-native',
'^react-native/(.*)': '<rootDir>/node_modules/react-native/$1',
'^~/(.*)$': '<rootDir>/src/$1',
'^~/(.*)$': '<rootDir>/e2e/$1',
},
modulePathIgnorePatterns: ['<rootDir>/lib/'],
preset: 'jest-expo',
reporters: ['default'],
roots: ['<rootDir>/src'],
globalSetup: "<rootDir>/jest.global-setup.js",
setupFilesAfterEnv: ['@testing-library/jest-native/extend-expect', '<rootDir>/jest.setup'],
testPathIgnorePatterns: ['node_modules/', 'android/', 'ios/', 'reports/'],
"transformIgnorePatterns": [
"node_modules/(?!((jest-)?react-native|@react-native(-community)?)|expo(nent)?|@expo(nent)?/.*|@expo-google-fonts/.*|react-navigation|@react-navigation/.*|@unimodules/.*|unimodules|sentry-expo|native-base|react-native-svg)"
]
}