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 26, 2024. It is now read-only.
// 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: undefined,
66
+
67
+
// A path to a module which exports an async function that is triggered once after all test suites
68
+
// globalTeardown: undefined,
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
+
// "jsx",
85
+
// "ts",
86
+
// "tsx",
87
+
// "json",
88
+
// "node"
89
+
// ],
90
+
91
+
// A map from regular expressions to module names or to arrays of 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
20
104
preset: 'ts-jest',
105
+
106
+
// Run tests from one or more projects
107
+
// projects: undefined,
108
+
109
+
// Use this configuration option to add custom reporters to Jest
110
+
// reporters: undefined,
111
+
21
112
// "resetMocks" resets all mocks, including mocked modules, to jest.fn(),
22
113
// between each test case.
23
114
resetMocks: true,
115
+
116
+
// Reset the module registry before running each individual test
117
+
// resetModules: false,
118
+
119
+
// A path to a custom resolver
120
+
// resolver: undefined,
121
+
24
122
// "restoreMocks" restores all mocks created using jest.spyOn to their
25
123
// original implementations, between each test. It does not affect mocked
26
124
// modules.
27
125
restoreMocks: true,
28
-
testEnvironment: 'node',
29
-
testRegex: ['\\.test\\.(ts|js)$'],
126
+
127
+
// The root directory that Jest should scan for tests and modules within
128
+
// rootDir: undefined,
129
+
130
+
// A list of paths to directories that Jest should use to search for files in
131
+
// roots: [
132
+
// "<rootDir>"
133
+
// ],
134
+
135
+
// Allows you to use a custom runner instead of Jest's default test runner
136
+
// runner: "jest-runner",
137
+
138
+
// The paths to modules that run some code to configure or set up the testing environment before each test
139
+
// setupFiles: [],
140
+
141
+
// A list of paths to modules that run some code to configure or set up the testing framework before each test
142
+
// setupFilesAfterEnv: [],
143
+
144
+
// The number of seconds after which a test is considered as slow and reported as such in the results.
145
+
// slowTestThreshold: 5,
146
+
147
+
// A list of paths to snapshot serializer modules Jest should use for snapshot testing
148
+
// snapshotSerializers: [],
149
+
150
+
// The test environment that will be used for testing
151
+
// testEnvironment: "jest-environment-node",
152
+
153
+
// Options that will be passed to the testEnvironment
154
+
// testEnvironmentOptions: {},
155
+
156
+
// Adds a location field to test results
157
+
// testLocationInResults: false,
158
+
159
+
// The glob patterns Jest uses to detect test files
160
+
// testMatch: [
161
+
// "**/__tests__/**/*.[jt]s?(x)",
162
+
// "**/?(*.)+(spec|test).[tj]s?(x)"
163
+
// ],
164
+
165
+
// An array of regexp pattern strings that are matched against all test paths, matched tests are skipped
166
+
// testPathIgnorePatterns: [
167
+
// "/node_modules/"
168
+
// ],
169
+
170
+
// The regexp pattern or array of patterns that Jest uses to detect test files
171
+
// testRegex: [],
172
+
173
+
// This option allows the use of a custom results processor
174
+
// testResultsProcessor: undefined,
175
+
176
+
// This option allows use of a custom test runner
177
+
// testRunner: "jest-circus/runner",
178
+
179
+
// Reduce the default test timeout from 5s to 2.5s
30
180
testTimeout: 2500,
181
+
182
+
// This option sets the URL for the jsdom environment. It is reflected in properties such as location.href
183
+
// testURL: "http://localhost",
184
+
185
+
// Setting this value to "fake" allows the use of fake timers for functions such as "setTimeout"
186
+
// timers: "real",
187
+
188
+
// A map from regular expressions to paths to transformers
189
+
// transform: undefined,
190
+
191
+
// An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation
192
+
// transformIgnorePatterns: [
193
+
// "/node_modules/",
194
+
// "\\.pnp\\.[^\\/]+$"
195
+
// ],
196
+
197
+
// An array of regexp pattern strings that are matched against all modules before the module loader will automatically return a mock for them
198
+
// unmockedModulePathPatterns: undefined,
199
+
200
+
// Indicates whether each individual test should be reported during the run
201
+
// verbose: undefined,
202
+
203
+
// An array of regexp patterns that are matched against all source file paths before re-running tests in watch mode
0 commit comments