Skip to content

Commit 0c67b80

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

File tree

3 files changed

+754
-879
lines changed

3 files changed

+754
-879
lines changed

package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"@commitlint/cli": "^16.1.0",
5454
"@commitlint/config-conventional": "^16.2.1",
5555
"@commitlint/prompt": "^16.1.0",
56-
"@types/jest": "^27.4.0",
56+
"@types/jest": "^28.1.4",
5757
"@types/lodash.has": "^4.5.6",
5858
"@types/mkdirp": "^1.0.2",
5959
"@types/node": ">=17.x",
@@ -80,16 +80,16 @@
8080
"eslint-plugin-react-hooks": "^4.3.0",
8181
"glob": "^8.0.3",
8282
"is-ci": "^3.0.1",
83-
"jest": "^27.5.1",
83+
"jest": "^28.1.2",
8484
"jest-github-actions-reporter": "^1.0.3",
85-
"jest-watch-typeahead": "^1.0.0",
85+
"jest-watch-typeahead": "^1.1.0",
8686
"lint-staged": "^12.3.4",
8787
"lodash.has": "^4.5.2",
8888
"mkdirp": "^1.0.3",
8989
"prettier": "^2.5.1",
9090
"read-pkg-up": "^7.0.1",
9191
"rimraf": "^3.0.2",
92-
"ts-jest": "^27.1.3",
92+
"ts-jest": "^28.0.5",
9393
"tslib": "^2.4.0",
9494
"typescript": "^4",
9595
"which": "^2.0.2",

src/config/jest.config.js

+1-1
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)