-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
39 lines (39 loc) · 1.25 KB
/
jest.config.js
File metadata and controls
39 lines (39 loc) · 1.25 KB
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
37
38
39
module.exports = {
preset: 'jest-expo',
setupFilesAfterEnv: ['./jest.setup.js'],
testMatch: ['**/__tests__/**/*.test.[jt]s?(x)', '**/__tests__/**/*.spec.[jt]s?(x)'],
testPathIgnorePatterns: ['/__e2e__/', '/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)',
],
moduleNameMapper: {
'^@/(.*)$': '<rootDir>/src/$1',
'^@assets/(.*)$': '<rootDir>/assets/$1',
'^__tests__/(.*)$': '<rootDir>/__tests__/$1',
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$':
'<rootDir>/__mocks__/fileMock.js',
},
globals: {
'ts-jest': {
tsconfig: 'tsconfig.json',
},
},
testEnvironment: 'jsdom',
// collectCoverage: true,
// coverageReporters: ['text', 'lcov'],
// collectCoverageFrom: [
// 'src/**/*.{js,jsx,ts,tsx}',
// '!**/*.d.ts',
// '!**/node_modules/**',
// '!**/__tests__/**',
// '!**/coverage/**'
// ],
// coverageThreshold: {
// global: {
// branches: 80,
// functions: 80,
// lines: 80,
// statements: 80
// }
// }
};