-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathjest.config.js
30 lines (30 loc) · 911 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
24
25
26
27
28
29
30
module.exports = {
preset: 'react-native',
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
testRegex: '(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$',
testPathIgnorePatterns: [
'\\.snap$',
'<rootDir>/node_modules/',
'<rootDir>/e2e/',
],
transformIgnorePatterns: ['node_modules/?!(static-container)', 'jest-runner'],
cacheDirectory: '.jest/cache',
globals: {
'ts-jest': {
isolatedModules: true,
},
},
setupFilesAfterEnv: ['<rootDir>/jest.setup.js'],
setupFiles: [
'./node_modules/react-native-gesture-handler/jestSetup.js',
'./node_modules/@react-native-google-signin/google-signin/jest/build/jest/setup.js',
],
moduleNameMapper: {
'^mobx-react-lite$': '<rootDir>/node_modules/mobx-react-lite/es/index.js',
},
collectCoverageFrom: [
'src/**/*.{ts,tsx}',
'!**/node_modules/**',
'!src/**/*stories.{ts,tsx}',
],
};