-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
27 lines (27 loc) · 810 Bytes
/
jest.config.js
File metadata and controls
27 lines (27 loc) · 810 Bytes
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
module.exports = {
preset: 'jest-expo',
setupFilesAfterEnv: ['<rootDir>/jest-setup.js'],
testEnvironment: 'node',
transform: {
'^.+\\.(js|jsx|ts|tsx)$': 'babel-jest',
},
transformIgnorePatterns: [
'node_modules/(?!(jest-)?@?react-native|@react-native-community|@react-navigation|expo(nent)?|@expo(nent)?/.*|@expo-google-fonts/.*|react-navigation|@react-native-picker|@react-native-async-storage|@testing-library/.*)'
],
collectCoverageFrom: [
'utils/**/*.{js,jsx,ts,tsx}',
'!**/*.d.ts',
'!**/node_modules/**',
'!**/*.config.js',
],
testMatch: [
'**/__tests__/**/**.test.{js,jsx,ts,tsx}'
],
moduleNameMapper: {
'^@/(.*)$': '<rootDir>/$1',
},
testTimeout: 10000,
clearMocks: true,
resetMocks: true,
restoreMocks: true
};