1
1
/*
2
2
* For a detailed explanation regarding each configuration property, visit:
3
- * https://jestjs.io/docs/en/ configuration.html
3
+ * https://jestjs.io/docs/configuration
4
4
*/
5
5
6
6
module . exports = {
@@ -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 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
@@ -73,10 +73,10 @@ module.exports = {
73
73
// An array of file extensions your modules use
74
74
// moduleFileExtensions: [
75
75
// "js",
76
- // "json",
77
76
// "jsx",
78
77
// "ts",
79
78
// "tsx",
79
+ // "json",
80
80
// "node"
81
81
// ],
82
82
@@ -101,7 +101,7 @@ module.exports = {
101
101
// Use this configuration option to add custom reporters to Jest
102
102
// reporters: undefined,
103
103
104
- // Automatically reset mock state between every test
104
+ // Automatically reset mock state before every test
105
105
// resetMocks: false,
106
106
107
107
// Reset the module registry before running each individual test
@@ -110,7 +110,7 @@ module.exports = {
110
110
// A path to a custom resolver
111
111
// resolver: undefined,
112
112
113
- // Automatically restore mock state between every test
113
+ // Automatically restore mock state and implementation before every test
114
114
// restoreMocks: false,
115
115
116
116
// The root directory that Jest should scan for tests and modules within
@@ -139,7 +139,7 @@ module.exports = {
139
139
// snapshotSerializers: [],
140
140
141
141
// The test environment that will be used for testing
142
- // testEnvironment: "jest-environment- jsdom",
142
+ testEnvironment : "jsdom" ,
143
143
144
144
// Options that will be passed to the testEnvironment
145
145
// testEnvironmentOptions: {},
@@ -165,7 +165,7 @@ module.exports = {
165
165
// testResultsProcessor: undefined,
166
166
167
167
// This option allows use of a custom test runner
168
- // testRunner: "jasmine2 ",
168
+ // testRunner: "jest-circus/runner ",
169
169
170
170
// This option sets the URL for the jsdom environment. It is reflected in properties such as location.href
171
171
// testURL: "http://localhost",
0 commit comments