Skip to content

Commit 0ac4a15

Browse files
sjbaragfqazi
authored andcommitted
cluster-ui: upgrade jest and related dependencies
Jest before v27 didn't support configuration options that allow test files to be discovered across symlink boundaries, which is necessary when running Jest tests within a Bazel sandbox. Upgrade Jest and its dependencies (including a manual version resolution of jest-environment-jsdom [1] defined in pkg/ui/package.json to avoid Jest bugs [2]) to enable cluster-ui tests being run via Bazel. [1] enzymejs/enzyme-matchers#351 (comment) [2] yarnpkg/yarn#5039 Release justification: Upgrade of test dependencies Release note: None
1 parent cfb89e3 commit 0ac4a15

File tree

4 files changed

+1202
-1328
lines changed

4 files changed

+1202
-1328
lines changed

pkg/ui/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
"**/@typescript-eslint/eslint-plugin": "^4.1.1",
3434
"**/@typescript-eslint/parser": "^4.1.1",
3535
"**/fbjs": "0.8.17",
36-
"**/protobufjs": "6.8.6"
36+
"**/protobufjs": "6.8.6",
37+
"**/jest-environment-jsdom": "^27.5.1"
3738
}
3839
}

pkg/ui/workspaces/cluster-ui/package.json

+6-5
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
"@types/d3-format": "^2.0.0",
6262
"@types/d3-scale": "^3.2.0",
6363
"@types/enzyme": "^3.10.5",
64-
"@types/jest": "^25.1.2",
64+
"@types/jest": "^27.4.1",
6565
"@types/lodash": "^4.14.149",
6666
"@types/long": "^4.0.1",
6767
"@types/node": "^13.7.0",
@@ -79,7 +79,7 @@
7979
"@typescript-eslint/parser": "^4.22.0",
8080
"antd": "^3.25.2",
8181
"astroturf": "^0.10.2",
82-
"babel-jest": "^26.2.2",
82+
"babel-jest": "^27.5.1",
8383
"babel-loader": "^8.0.6",
8484
"babel-plugin-import": "^1.13.3",
8585
"babel-polyfill": "^6.26.0",
@@ -102,11 +102,12 @@
102102
"highlight.js": "^10.2.0",
103103
"http-proxy-middleware": "^1.0.5",
104104
"identity-obj-proxy": "^3.0.0",
105-
"jest": "^25.5.4",
105+
"jest": "^27.5.1",
106+
"jest-cli": "^27.5.1",
106107
"jest-environment-enzyme": "^7.1.2",
107108
"jest-enzyme": "^7.1.2",
108109
"jest-fetch-mock": "^3.0.3",
109-
"jest-runner-eslint": "^0.7.6",
110+
"jest-runner-eslint": "^1.0.0",
110111
"less": "^3.12.2",
111112
"less-loader": "^6.2.0",
112113
"long": "^4.0.0",
@@ -130,7 +131,7 @@
130131
"sinon": "^9.0.2",
131132
"source-map-loader": "^0.2.4",
132133
"style-loader": "^1.1.3",
133-
"ts-jest": "^25.2.0",
134+
"ts-jest": "^27.1.3",
134135
"typescript": "4.2.4",
135136
"url-loader": "^4.1.0",
136137
"webpack": "^4.41.5",

pkg/ui/yarn-vendor

Submodule yarn-vendor updated 135 files

0 commit comments

Comments
 (0)