@@ -13,7 +13,7 @@ module.exports = {
13
13
// The directory where Jest should store its cached dependency information
14
14
// cacheDirectory: "/private/var/folders/mq/wc13nlwj4gdgcyshdy5j1hgr0000gn/T/jest_dx",
15
15
16
- // Automatically clear mock calls and instances between every test
16
+ // Automatically clear mock calls, instances, contexts and results before every test
17
17
// clearMocks: false,
18
18
19
19
// Indicates whether the coverage information should be collected while executing the test
@@ -50,6 +50,11 @@ module.exports = {
50
50
// Make calling deprecated APIs throw helpful error messages
51
51
// errorOnDeprecated: false,
52
52
53
+ // The default configuration for fake timers
54
+ // fakeTimers: {
55
+ // "enableGlobally": false
56
+ // },
57
+
53
58
// Force coverage collection from ignored files using an array of glob patterns
54
59
// forceCoverageMatch: [],
55
60
@@ -73,6 +78,8 @@ module.exports = {
73
78
// An array of file extensions your modules use
74
79
// moduleFileExtensions: [
75
80
// "js",
81
+ // "mjs",
82
+ // "cjs",
76
83
// "jsx",
77
84
// "ts",
78
85
// "tsx",
@@ -101,7 +108,7 @@ module.exports = {
101
108
// Use this configuration option to add custom reporters to Jest
102
109
// reporters: undefined,
103
110
104
- // Automatically reset mock state between every test
111
+ // Automatically reset mock state before every test
105
112
// resetMocks: false,
106
113
107
114
// Reset the module registry before running each individual test
@@ -110,7 +117,7 @@ module.exports = {
110
117
// A path to a custom resolver
111
118
// resolver: undefined,
112
119
113
- // Automatically restore mock state between every test
120
+ // Automatically restore mock state and implementation before every test
114
121
// restoreMocks: false,
115
122
116
123
// The root directory that Jest should scan for tests and modules within
@@ -165,12 +172,6 @@ module.exports = {
165
172
// This option allows use of a custom test runner
166
173
// testRunner: "jest-circus/runner",
167
174
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
-
174
175
// A map from regular expressions to paths to transformers
175
176
// transform: undefined,
176
177
0 commit comments