-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
42 lines (36 loc) · 861 Bytes
/
jest.config.js
File metadata and controls
42 lines (36 loc) · 861 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
module.exports = {
preset: 'react-native',
collectCoverage: true,
coverageDirectory: './coverage',
collectCoverageFrom: ['src/**/*.{js,ts,tsx}'],
coveragePathIgnorePatterns: [
'/node_modules',
'./examples',
'./docs',
'./__test__',
'style.ts',
'styles.ts',
'index.ts',
'd.ts',
'.consts.ts',
'.enum.ts',
'/config/',
'/coverage/',
'.eslintrc.js',
'.prettierrc.js',
'babel.config.js',
],
testPathIgnorePatterns: ['/node_modules', '/e2e'],
coverageReporters: ['html', 'text', 'lcov', 'text-summary'],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node', 'mjs', 'svg', 'png'],
testEnvironment: 'node',
setupFiles: ['./jest.setup.ts'],
coverageThreshold: {
global: {
statements: 85,
branches: 80,
functions: 85,
lines: 85,
},
},
};