-
Notifications
You must be signed in to change notification settings - Fork 141
Expand file tree
/
Copy pathjest.config.base.js
More file actions
90 lines (90 loc) · 2.01 KB
/
jest.config.base.js
File metadata and controls
90 lines (90 loc) · 2.01 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
collectCoverage: false,
collectCoverageFrom: [
'**/*.{js,ts}',
'!**/dist/**',
'!**/*.d.ts',
//e2e",
'!**/e2e/**/*',
//unit test related",
'!tests/**',
'!**/*.test.*',
'!**/*__test*?__*/**/*',
'!**/coverage*/**/*',
'!**/__data__/**/*',
'!**/*.test.*/**/*',
// ui related",
'!**/*.{jsx,tsx}',
// data MOCK",
'!**/__mock*/**/*',
'!**/_mock*/**/*',
'!**/*__mock?__*/**/*',
'!**/mocks?/**/*',
// monitoring",
'!**/monitor*',
'!**/monitor/**/*',
// root directory",
'!dist/**/*',
'!build/**/*',
'!doc?/**/*',
'!**/.*/*',
'!*.*',
'!.*',
// scripts related",
'!**/scripts/**/*',
// third-party SDK",
'!**/__sdk__/**/*',
'!**/lib/**/*',
// constants",
'!**/__text__/**/*',
'!**/constants/**/*',
'!**/constants.{js,ts}',
// api interfaces
'!**/__api__/**/*',
'!**/service?/**/*',
'!**/service/**/*',
// SSR
'!**/*.server.*',
// TS definitions
'!**/types/**/*.ts',
'!**/*.d.ts',
// i18n
'!**/i18n/**/*',
'!**/i18n*.{js,ts}',
// config files
'!**/*.config.{js,ts}',
'!**/config?/**/*',
'!**/config/**/*',
'!**/__config__/**/*',
// deprecated and unmaintained
'!**/deprecated/**/*',
'!**/*_deprecated/**/*',
// demo related
'!**/demos/**/*',
'!**/demo/**/*',
'!**/_?demo*/**/*',
'!**/__demo*/**/*',
// others
'!**/*.html',
// pure UI rendering
'!**/*_pureRender/**/*',
'!**/pureRender/**/*',
// multi-site related
'!**/src/site/**/*',
],
coverageDirectory: '<rootDir>/coverage',
coverageReporters: ['text', 'lcov', 'html', 'json'],
coverageThreshold: {
global: {
branches: 60,
// functions: 70,
lines: 70,
// statements: 70,
},
},
setupFilesAfterEnv: ['<rootDir>/../../jest.setup.js'],
testTimeout: 30000,
};