-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
23 lines (22 loc) · 1008 Bytes
/
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
/** @type {import('jest').Config} */
const config = {
preset: 'jest-expo',
setupFilesAfterEnv: ['<rootDir>/setup-jest.ts'],
setupFiles: ['<rootDir>/node_modules/react-native-gesture-handler/jestSetup.js'],
testPathIgnorePatterns: ['<rootDir>/node_modules/'],
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|axios)'],
collectCoverageFrom: ['<rootDir>/app/**/*.{ts,tsx}', '<rootDir>/libs/**/*.{ts,tsx}'],
coveragePathIgnorePatterns: ['<rootDir>/app.config.ts', '<rootDir>/tests/', '<rootDir>/(.*)/index.ts'],
coverageThreshold: {
global: {
statements: 80
}
},
moduleNameMapper: {
'^@libs/(.*)$': '<rootDir>/libs/$1',
'^@app/(.*)$': '<rootDir>/app/$1',
'^@i18n/(.*)$': '<rootDir>/i18n/$1',
'^@tests/(.*)$': '<rootDir>/tests/$1'
}
};
module.exports = config;