Skip to content

Commit 48e8dfd

Browse files
committed
feat(scripts/test): upgrade Jest to 28.x
BREAKING CHANGE: upgrades Jest a major version (27 to 28)
1 parent ec5646f commit 48e8dfd

File tree

3 files changed

+562
-939
lines changed

3 files changed

+562
-939
lines changed

package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@
5454
"@commitlint/config-conventional": "^16.2.1",
5555
"@commitlint/prompt": "^16.1.0",
5656
"@types/jest": "^27.4.0",
57-
"@types/lodash.has": "^4.5.7",
5857
"@types/mkdirp": "^1.0.2",
5958
"@types/node": ">=17.x",
6059
"@types/rimraf": "^3.0.2",
@@ -81,16 +80,16 @@
8180
"eslint-plugin-react-hooks": "^4.6.0",
8281
"glob": "^8.0.3",
8382
"is-ci": "^3.0.1",
84-
"jest": "^27.5.1",
83+
"jest": "^28.1.2",
8584
"jest-github-actions-reporter": "^1.0.3",
86-
"jest-watch-typeahead": "^1.0.0",
85+
"jest-watch-typeahead": "^1.1.0",
8786
"lint-staged": "^12.3.4",
8887
"lodash.has": "^4.5.2",
8988
"mkdirp": "^1.0.4",
9089
"prettier": "^2.5.1",
9190
"read-pkg-up": "^7.0.1",
9291
"rimraf": "^3.0.2",
93-
"ts-jest": "^27.1.3",
92+
"ts-jest": "^28.0.5",
9493
"tslib": "^2.4.0",
9594
"typescript": "^4",
9695
"which": "^2.0.2",

src/config/jest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const ignores = [
2323
const jestConfig = {
2424
roots: [fromRoot('.')],
2525
testEnvironment: ifAnyDep(['webpack', 'rollup', 'react'], 'jsdom', 'node'),
26-
testURL: 'http://localhost',
26+
testEnvironmentOptions: {url: 'http://localhost'},
2727
moduleFileExtensions: testMatchExtensions.concat('json'),
2828
collectCoverageFrom: [`**/${testMatchGlob}`],
2929
testMatch,

0 commit comments

Comments
 (0)