Skip to content

Commit

Permalink
cluster-ui: upgrade jest and related dependencies
Browse files Browse the repository at this point in the history
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
  • Loading branch information
sjbarag authored and rickystewart committed Mar 31, 2022
1 parent 25fd2c1 commit 546e614
Show file tree
Hide file tree
Showing 4 changed files with 1,202 additions and 1,328 deletions.
3 changes: 2 additions & 1 deletion pkg/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"**/@typescript-eslint/eslint-plugin": "^4.1.1",
"**/@typescript-eslint/parser": "^4.1.1",
"**/fbjs": "0.8.17",
"**/protobufjs": "6.8.6"
"**/protobufjs": "6.8.6",
"**/jest-environment-jsdom": "^27.5.1"
}
}
11 changes: 6 additions & 5 deletions pkg/ui/workspaces/cluster-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"@types/d3-format": "^2.0.0",
"@types/d3-scale": "^3.2.0",
"@types/enzyme": "^3.10.5",
"@types/jest": "^25.1.2",
"@types/jest": "^27.4.1",
"@types/lodash": "^4.14.149",
"@types/long": "^4.0.1",
"@types/node": "^13.7.0",
Expand All @@ -79,7 +79,7 @@
"@typescript-eslint/parser": "^4.22.0",
"antd": "^3.25.2",
"astroturf": "^0.10.2",
"babel-jest": "^26.2.2",
"babel-jest": "^27.5.1",
"babel-loader": "^8.0.6",
"babel-plugin-import": "^1.13.3",
"babel-polyfill": "^6.26.0",
Expand All @@ -102,11 +102,12 @@
"highlight.js": "^10.2.0",
"http-proxy-middleware": "^1.0.5",
"identity-obj-proxy": "^3.0.0",
"jest": "^25.5.4",
"jest": "^27.5.1",
"jest-cli": "^27.5.1",
"jest-environment-enzyme": "^7.1.2",
"jest-enzyme": "^7.1.2",
"jest-fetch-mock": "^3.0.3",
"jest-runner-eslint": "^0.7.6",
"jest-runner-eslint": "^1.0.0",
"less": "^3.12.2",
"less-loader": "^6.2.0",
"long": "^4.0.0",
Expand All @@ -130,7 +131,7 @@
"sinon": "^9.0.2",
"source-map-loader": "^0.2.4",
"style-loader": "^1.1.3",
"ts-jest": "^25.2.0",
"ts-jest": "^27.1.3",
"typescript": "4.2.4",
"url-loader": "^4.1.0",
"webpack": "^4.41.5",
Expand Down
2 changes: 1 addition & 1 deletion pkg/ui/yarn-vendor
Submodule yarn-vendor updated 135 files
Loading

0 comments on commit 546e614

Please sign in to comment.