You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Automatically clear mock calls and instances between every test
18
2
clearMocks: true,
19
-
20
-
// Indicates whether the coverage information should be collected while executing the test
21
3
collectCoverage: false,
22
-
23
-
// An array of glob patterns indicating a set of files for which coverage information should be collected
24
4
collectCoverageFrom: [
25
5
'src/**/src/*.{js,ts,tsx}',
26
6
'!src/**/src/{array,hash-table}.{js,ts,tsx}',
27
7
],
28
-
29
-
// The directory where Jest should output its coverage files
30
8
coverageDirectory: 'coverage',
31
-
32
-
// An array of regexp pattern strings used to skip coverage collection
33
-
// coveragePathIgnorePatterns: [
34
-
// "/node_modules/"
35
-
// ],
36
-
37
-
// A list of reporter names that Jest uses when writing coverage reports
38
-
// coverageReporters: [
39
-
// "json",
40
-
// "text",
41
-
// "lcov",
42
-
// "clover"
43
-
// ],
44
-
45
-
// An object that configures minimum threshold enforcement for coverage results
46
9
coverageThreshold: {
47
10
global: {
48
11
branches: 95,
@@ -51,145 +14,6 @@ module.exports = {
51
14
statements: 95,
52
15
},
53
16
},
54
-
55
-
// A path to a custom dependency extractor
56
-
// dependencyExtractor: null,
57
-
58
-
// Make calling deprecated APIs throw helpful error messages
59
-
// errorOnDeprecated: false,
60
-
61
-
// Force coverage collection from ignored files using an array of glob patterns
62
-
// forceCoverageMatch: [],
63
-
64
-
// A path to a module which exports an async function that is triggered once before all test suites
65
-
// globalSetup: null,
66
-
67
-
// A path to a module which exports an async function that is triggered once after all test suites
68
-
// globalTeardown: null,
69
-
70
-
// A set of global variables that need to be available in all test environments
71
-
// globals: {},
72
-
73
-
// The maximum amount of workers used to run your tests. Can be specified as % or a number. E.g. maxWorkers: 10% will use 10% of your CPU amount + 1 as the maximum worker number. maxWorkers: 2 will use a maximum of 2 workers.
74
-
// maxWorkers: "50%",
75
-
76
-
// An array of directory names to be searched recursively up from the requiring module's location
77
-
// moduleDirectories: [
78
-
// "node_modules"
79
-
// ],
80
-
81
-
// An array of file extensions your modules use
82
-
// moduleFileExtensions: [
83
-
// "js",
84
-
// "json",
85
-
// "jsx",
86
-
// "ts",
87
-
// "tsx",
88
-
// "node"
89
-
// ],
90
-
91
-
// A map from regular expressions to module names that allow to stub out resources with a single module
92
-
// moduleNameMapper: {},
93
-
94
-
// An array of regexp pattern strings, matched against all module paths before considered 'visible' to the module loader
95
-
// modulePathIgnorePatterns: [],
96
-
97
-
// Activates notifications for test results
98
-
// notify: false,
99
-
100
-
// An enum that specifies notification mode. Requires { notify: true }
101
-
// notifyMode: "failure-change",
102
-
103
-
// A preset that is used as a base for Jest's configuration
104
-
// preset: null,
105
-
106
-
// Run tests from one or more projects
107
-
// projects: null,
108
-
109
-
// Use this configuration option to add custom reporters to Jest
110
-
// reporters: undefined,
111
-
112
-
// Automatically reset mock state between every test
113
-
// resetMocks: false,
114
-
115
-
// Reset the module registry before running each individual test
116
-
// resetModules: false,
117
-
118
-
// A path to a custom resolver
119
-
// resolver: null,
120
-
121
-
// Automatically restore mock state between every test
122
-
// restoreMocks: false,
123
-
124
-
// The root directory that Jest should scan for tests and modules within
125
-
// rootDir: null,
126
-
127
-
// A list of paths to directories that Jest should use to search for files in
128
-
// roots: [
129
-
// "<rootDir>"
130
-
// ],
131
-
132
-
// Allows you to use a custom runner instead of Jest's default test runner
133
-
// runner: "jest-runner",
134
-
135
-
// The paths to modules that run some code to configure or set up the testing environment before each test
136
-
// setupFiles: [],
137
-
138
-
// A list of paths to modules that run some code to configure or set up the testing framework before each test
139
-
// setupFilesAfterEnv: [],
140
-
141
-
// A list of paths to snapshot serializer modules Jest should use for snapshot testing
142
-
// snapshotSerializers: [],
143
-
144
-
// The test environment that will be used for testing
145
17
testEnvironment: 'node',
146
-
147
-
// Options that will be passed to the testEnvironment
148
-
// testEnvironmentOptions: {},
149
-
150
-
// Adds a location field to test results
151
-
// testLocationInResults: false,
152
-
153
-
// The glob patterns Jest uses to detect test files
0 commit comments