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
{{ message }}
This repository was archived by the owner on Nov 9, 2023. It is now read-only.
// Automatically clear mock calls, instances and results before every test.
17
-
// This does not remove any mock implementation that may have been provided,
18
-
// so we disable it.
19
-
// clearMocks: true,
20
-
21
6
// Indicates whether the coverage information should be collected while executing the test
22
7
collectCoverage: true,
23
8
@@ -27,11 +12,6 @@ module.exports = {
27
12
// The directory where Jest should output its coverage files
28
13
coverageDirectory: 'coverage',
29
14
30
-
// An array of regexp pattern strings used to skip coverage collection
31
-
// coveragePathIgnorePatterns: [
32
-
// "/node_modules/"
33
-
// ],
34
-
35
15
// Indicates which provider should be used to instrument code for coverage
36
16
coverageProvider: 'v8',
37
17
@@ -41,164 +21,25 @@ module.exports = {
41
21
// An object that configures minimum threshold enforcement for coverage results
42
22
coverageThreshold: {
43
23
global: {
44
-
branches: 69.23,
45
-
functions: 88.88,
46
-
lines: 93.75,
47
-
statements: 93.75,
24
+
branches: 81.81,
25
+
functions: 89.47,
26
+
lines: 96.64,
27
+
statements: 96.64,
48
28
},
49
29
},
50
30
51
-
// A path to a custom dependency extractor
52
-
// dependencyExtractor: undefined,
53
-
54
-
// Make calling deprecated APIs throw helpful error messages
55
-
// errorOnDeprecated: false,
56
-
57
-
// Force coverage collection from ignored files using an array of glob patterns
58
-
// forceCoverageMatch: [],
59
-
60
-
// A path to a module which exports an async function that is triggered once before all test suites
61
-
// globalSetup: undefined,
62
-
63
-
// A path to a module which exports an async function that is triggered once after all test suites
64
-
// globalTeardown: undefined,
65
-
66
-
// A set of global variables that need to be available in all test environments
67
-
// globals: {},
68
-
69
-
// 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.
70
-
// maxWorkers: "50%",
71
-
72
-
// An array of directory names to be searched recursively up from the requiring module's location
73
-
// moduleDirectories: [
74
-
// "node_modules"
75
-
// ],
76
-
77
-
// An array of file extensions your modules use
78
-
// moduleFileExtensions: [
79
-
// "js",
80
-
// "jsx",
81
-
// "ts",
82
-
// "tsx",
83
-
// "json",
84
-
// "node"
85
-
// ],
86
-
87
-
// A map from regular expressions to module names or to arrays of module names that allow to stub out resources with a single module
88
-
// moduleNameMapper: {},
89
-
90
-
// An array of regexp pattern strings, matched against all module paths before considered 'visible' to the module loader
91
-
// modulePathIgnorePatterns: [],
92
-
93
-
// Activates notifications for test results
94
-
// notify: false,
95
-
96
-
// An enum that specifies notification mode. Requires { notify: true }
97
-
// notifyMode: "failure-change",
98
-
99
31
// A preset that is used as a base for Jest's configuration
100
32
preset: 'ts-jest',
101
33
102
-
// Run tests from one or more projects
103
-
// projects: undefined,
104
-
105
-
// Use this configuration option to add custom reporters to Jest
106
-
// reporters: undefined,
107
-
108
34
// "resetMocks" resets all mocks, including mocked modules, to jest.fn(),
109
35
// between each test case.
110
36
resetMocks: true,
111
37
112
-
// Reset the module registry before running each individual test
113
-
// resetModules: false,
114
-
115
-
// A path to a custom resolver
116
-
// resolver: undefined,
117
-
118
38
// "restoreMocks" restores all mocks created using jest.spyOn to their
119
39
// original implementations, between each test. It does not affect mocked
120
40
// modules.
121
41
restoreMocks: true,
122
42
123
-
// The root directory that Jest should scan for tests and modules within
124
-
// rootDir: undefined,
125
-
126
-
// A list of paths to directories that Jest should use to search for files in
127
-
// roots: [
128
-
// "<rootDir>"
129
-
// ],
130
-
131
-
// Allows you to use a custom runner instead of Jest's default test runner
132
-
// runner: "jest-runner",
133
-
134
-
// The paths to modules that run some code to configure or set up the testing environment before each test
135
-
// setupFiles: [],
136
-
137
-
// A list of paths to modules that run some code to configure or set up the testing framework before each test
138
-
// setupFilesAfterEnv: [],
139
-
140
-
// The number of seconds after which a test is considered as slow and reported as such in the results.
141
-
// slowTestThreshold: 5,
142
-
143
-
// A list of paths to snapshot serializer modules Jest should use for snapshot testing
144
-
// snapshotSerializers: [],
145
-
146
-
// The test environment that will be used for testing
147
-
// testEnvironment: "jest-environment-node",
148
-
149
-
// Options that will be passed to the testEnvironment
150
-
// testEnvironmentOptions: {},
151
-
152
-
// Adds a location field to test results
153
-
// testLocationInResults: false,
154
-
155
-
// The glob patterns Jest uses to detect test files
156
-
// testMatch: [
157
-
// "**/__tests__/**/*.[jt]s?(x)",
158
-
// "**/?(*.)+(spec|test).[tj]s?(x)"
159
-
// ],
160
-
161
-
// An array of regexp pattern strings that are matched against all test paths, matched tests are skipped
162
-
// testPathIgnorePatterns: [
163
-
// "/node_modules/"
164
-
// ],
165
-
166
-
// The regexp pattern or array of patterns that Jest uses to detect test files
167
-
// testRegex: [],
168
-
169
-
// This option allows the use of a custom results processor
170
-
// testResultsProcessor: undefined,
171
-
172
-
// This option allows use of a custom test runner
173
-
// testRunner: "jest-circus/runner",
174
-
175
43
// Reduce the default test timeout from 5s to 2.5s
176
44
testTimeout: 2500,
177
-
178
-
// This option sets the URL for the jsdom environment. It is reflected in properties such as location.href
179
-
// testURL: "http://localhost",
180
-
181
-
// Setting this value to "fake" allows the use of fake timers for functions such as "setTimeout"
182
-
// timers: "real",
183
-
184
-
// A map from regular expressions to paths to transformers
185
-
// transform: undefined,
186
-
187
-
// An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation
188
-
// transformIgnorePatterns: [
189
-
// "/node_modules/",
190
-
// "\\.pnp\\.[^\\/]+$"
191
-
// ],
192
-
193
-
// An array of regexp pattern strings that are matched against all modules before the module loader will automatically return a mock for them
194
-
// unmockedModulePathPatterns: undefined,
195
-
196
-
// Indicates whether each individual test should be reported during the run
197
-
// verbose: undefined,
198
-
199
-
// An array of regexp patterns that are matched against all source file paths before re-running tests in watch mode
0 commit comments