Skip to content

Commit 386d127

Browse files
committed
"upgrade deps & lockfile"
1 parent 5036ab7 commit 386d127

File tree

3 files changed

+3540
-2320
lines changed

3 files changed

+3540
-2320
lines changed

jest.config.js

+10-9
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ module.exports = {
1313
// The directory where Jest should store its cached dependency information
1414
// cacheDirectory: "/private/var/folders/mq/wc13nlwj4gdgcyshdy5j1hgr0000gn/T/jest_dx",
1515

16-
// Automatically clear mock calls and instances between every test
16+
// Automatically clear mock calls, instances, contexts and results before every test
1717
// clearMocks: false,
1818

1919
// Indicates whether the coverage information should be collected while executing the test
@@ -50,6 +50,11 @@ module.exports = {
5050
// Make calling deprecated APIs throw helpful error messages
5151
// errorOnDeprecated: false,
5252

53+
// The default configuration for fake timers
54+
// fakeTimers: {
55+
// "enableGlobally": false
56+
// },
57+
5358
// Force coverage collection from ignored files using an array of glob patterns
5459
// forceCoverageMatch: [],
5560

@@ -73,6 +78,8 @@ module.exports = {
7378
// An array of file extensions your modules use
7479
// moduleFileExtensions: [
7580
// "js",
81+
// "mjs",
82+
// "cjs",
7683
// "jsx",
7784
// "ts",
7885
// "tsx",
@@ -101,7 +108,7 @@ module.exports = {
101108
// Use this configuration option to add custom reporters to Jest
102109
// reporters: undefined,
103110

104-
// Automatically reset mock state between every test
111+
// Automatically reset mock state before every test
105112
// resetMocks: false,
106113

107114
// Reset the module registry before running each individual test
@@ -110,7 +117,7 @@ module.exports = {
110117
// A path to a custom resolver
111118
// resolver: undefined,
112119

113-
// Automatically restore mock state between every test
120+
// Automatically restore mock state and implementation before every test
114121
// restoreMocks: false,
115122

116123
// The root directory that Jest should scan for tests and modules within
@@ -165,12 +172,6 @@ module.exports = {
165172
// This option allows use of a custom test runner
166173
// testRunner: "jest-circus/runner",
167174

168-
// This option sets the URL for the jsdom environment. It is reflected in properties such as location.href
169-
// testURL: "http://localhost",
170-
171-
// Setting this value to "fake" allows the use of fake timers for functions such as "setTimeout"
172-
// timers: "real",
173-
174175
// A map from regular expressions to paths to transformers
175176
// transform: undefined,
176177

0 commit comments

Comments
 (0)