Skip to content

Commit df58d8e

Browse files
🚨 Update
1 parent bfd49e2 commit df58d8e

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

jest.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ export default {
137137
// snapshotSerializers: [],
138138

139139
// The test environment that will be used for testing
140-
// testEnvironment: "jest-environment-jsdom",
140+
testEnvironment: "jest-environment-jsdom-global",
141141

142142
// Options that will be passed to the testEnvironment
143143
// testEnvironmentOptions: {},

package-lock.json

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"babel-loader": "^8.2.2",
2020
"gh-pages": "^3.2.3",
2121
"jest": "^26.6.3",
22+
"jest-environment-jsdom-global": "^2.0.4",
2223
"license-webpack-plugin": "^2.3.20",
2324
"terser-webpack-plugin": "^5.1.4",
2425
"ts-jest": "^26.5.4",
@@ -63,8 +64,8 @@
6364
"prepublishOnly": "npm run build",
6465
"prestart": "git config commit.template .gitmessage",
6566
"start": "webpack serve --mode=production",
66-
"test": "jest --coverage",
67-
"test:watch": "jest --watch --coverage",
67+
"test": "jest --coverage --verbose",
68+
"test:watch": "jest --watch --coverage --verbose",
6869
"deploy:demo": "gh-pages -d demo"
6970
}
7071
}

0 commit comments

Comments
 (0)