-
-
Notifications
You must be signed in to change notification settings - Fork 15
/
jest.config.js
38 lines (35 loc) · 1016 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
31
32
33
34
35
36
37
38
module.exports = {
transform: {
'^.+\\.(js|jsx|ts|tsx)$': 'ts-jest',
},
preset: 'ts-jest',
verbose: true,
globals: {
__DEV__: true,
'ts-jest': {
astTransformers: {
before: ['ts-relay-plugin'],
},
diagnostics: {
warnOnly: true,
},
isolatedModules: true,
},
},
moduleFileExtensions: ['ts', 'tsx', 'js', 'json'],
testURL: 'http://localhost',
testEnvironment: 'jsdom',
testMatch: ['<rootDir>/__tests__/*-test.tsx'],
testPathIgnorePatterns: ['./node_modules/', '/node_modules/', '/lib/', '<rootDir>/lib/', '<rootDir>/node_modules/'],
transformIgnorePatterns: ['./node_modules/(?!(@react-native-community|react-native))'],
coverageThreshold: {
global: {
branches: 0,
functions: 0,
lines: 0,
statements: 0,
},
},
setupFiles: ['./scripts/setup.ts'],
timers: 'fake',
};