Skip to content

Commit 9449aab

Browse files
committed
fix config
1 parent 9f6bd14 commit 9449aab

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

jest.config.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* For a detailed explanation regarding each configuration property, visit:
3-
* https://jestjs.io/docs/en/configuration.html
3+
* https://jestjs.io/docs/configuration
44
*/
55

66
module.exports = {
@@ -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 and results before every test
1717
// clearMocks: false,
1818

1919
// Indicates whether the coverage information should be collected while executing the test
@@ -73,10 +73,10 @@ module.exports = {
7373
// An array of file extensions your modules use
7474
// moduleFileExtensions: [
7575
// "js",
76-
// "json",
7776
// "jsx",
7877
// "ts",
7978
// "tsx",
79+
// "json",
8080
// "node"
8181
// ],
8282

@@ -101,7 +101,7 @@ module.exports = {
101101
// Use this configuration option to add custom reporters to Jest
102102
// reporters: undefined,
103103

104-
// Automatically reset mock state between every test
104+
// Automatically reset mock state before every test
105105
// resetMocks: false,
106106

107107
// Reset the module registry before running each individual test
@@ -110,7 +110,7 @@ module.exports = {
110110
// A path to a custom resolver
111111
// resolver: undefined,
112112

113-
// Automatically restore mock state between every test
113+
// Automatically restore mock state and implementation before every test
114114
// restoreMocks: false,
115115

116116
// The root directory that Jest should scan for tests and modules within
@@ -139,7 +139,7 @@ module.exports = {
139139
// snapshotSerializers: [],
140140

141141
// The test environment that will be used for testing
142-
// testEnvironment: "jest-environment-jsdom",
142+
testEnvironment: "jsdom",
143143

144144
// Options that will be passed to the testEnvironment
145145
// testEnvironmentOptions: {},
@@ -165,7 +165,7 @@ module.exports = {
165165
// testResultsProcessor: undefined,
166166

167167
// This option allows use of a custom test runner
168-
// testRunner: "jasmine2",
168+
// testRunner: "jest-circus/runner",
169169

170170
// This option sets the URL for the jsdom environment. It is reflected in properties such as location.href
171171
// testURL: "http://localhost",

0 commit comments

Comments
 (0)