From cf3de4740071bc7fb96c93fc48d8bed9cf66c1a6 Mon Sep 17 00:00:00 2001 From: Jacob Bolda Date: Fri, 13 Oct 2023 16:28:32 -0500 Subject: [PATCH] testing-library version with react@17 compatibility --- packages/app/package.json | 4 ++-- plugins/effection-inspector/package.json | 4 ++-- plugins/humanitec/package.json | 4 ++-- .../scaffolder-frontend-workflow/package.json | 4 ++-- yarn.lock | 20 ++++++++----------- 5 files changed, 16 insertions(+), 20 deletions(-) diff --git a/packages/app/package.json b/packages/app/package.json index 78bfdd3e5c..1502a67597 100644 --- a/packages/app/package.json +++ b/packages/app/package.json @@ -51,8 +51,8 @@ "devDependencies": { "@backstage/test-utils": "^1.4.3", "@testing-library/jest-dom": "^5.16.5", - "@testing-library/react": "^13.4.0", - "@testing-library/user-event": "^14.4.3", + "@testing-library/react": "^12.1.3", + "@testing-library/user-event": "^14.5.1", "@types/jest": "^29.2.0", "@types/node": "^16.11.26", "@types/react-dom": "*", diff --git a/plugins/effection-inspector/package.json b/plugins/effection-inspector/package.json index 1507fe8ad7..350cefa1aa 100644 --- a/plugins/effection-inspector/package.json +++ b/plugins/effection-inspector/package.json @@ -42,8 +42,8 @@ "@backstage/test-utils": "^1.4.3", "@effection/atom": "^2.0.6", "@testing-library/jest-dom": "^5.16.5", - "@testing-library/react": "^13.4.0", - "@testing-library/user-event": "^14.4.3", + "@testing-library/react": "^12.1.3", + "@testing-library/user-event": "^14.5.1", "@types/jest": "*", "@types/node": "*", "cross-fetch": "^3.1.5", diff --git a/plugins/humanitec/package.json b/plugins/humanitec/package.json index 3820a07f9d..786cdbb9b8 100644 --- a/plugins/humanitec/package.json +++ b/plugins/humanitec/package.json @@ -44,8 +44,8 @@ "@backstage/test-utils": "^1.4.3", "@frontside/backstage-plugin-humanitec-common": "^0.3.8", "@testing-library/jest-dom": "^5.16.5", - "@testing-library/react": "^13.4.0", - "@testing-library/user-event": "^14.4.3", + "@testing-library/react": "^12.1.3", + "@testing-library/user-event": "^14.5.1", "@types/jest": "*", "@types/node": "*", "cross-fetch": "^3.1.5", diff --git a/plugins/scaffolder-frontend-workflow/package.json b/plugins/scaffolder-frontend-workflow/package.json index e8320b8613..279271400d 100644 --- a/plugins/scaffolder-frontend-workflow/package.json +++ b/plugins/scaffolder-frontend-workflow/package.json @@ -53,10 +53,10 @@ "@backstage/core-app-api": "^1.10.0", "@backstage/dev-utils": "^1.0.21", "@backstage/test-utils": "^1.4.3", - "@testing-library/jest-dom": "^5.10.1", + "@testing-library/jest-dom": "^5.16.5", "@testing-library/react": "^12.1.3", "@testing-library/react-hooks": "^8.0.1", - "@testing-library/user-event": "^14.0.0", + "@testing-library/user-event": "^14.5.1", "@types/node": "*", "cross-fetch": "^3.1.5", "msw": "^0.49.0", diff --git a/yarn.lock b/yarn.lock index 0b3e03b663..9988880972 100644 --- a/yarn.lock +++ b/yarn.lock @@ -8925,7 +8925,7 @@ dependencies: defer-to-connect "^2.0.0" -"@testing-library/dom@^8.0.0", "@testing-library/dom@^8.5.0": +"@testing-library/dom@^8.0.0": version "8.20.1" resolved "https://registry.yarnpkg.com/@testing-library/dom/-/dom-8.20.1.tgz#2e52a32e46fc88369eef7eef634ac2a192decd9f" integrity sha512-/DiOQ5xBxgdYRC8LNk7U+RWat0S3qRLeIw3ZIkMQ9kkVlRmwD/Eg8k8CqIpD6GW7u20JIUOfMKbxtiLutpjQ4g== @@ -8971,20 +8971,16 @@ "@testing-library/dom" "^8.0.0" "@types/react-dom" "<18.0.0" -"@testing-library/react@^13.4.0": - version "13.4.0" - resolved "https://registry.yarnpkg.com/@testing-library/react/-/react-13.4.0.tgz#6a31e3bf5951615593ad984e96b9e5e2d9380966" - integrity sha512-sXOGON+WNTh3MLE9rve97ftaZukN3oNf2KjDy7YTx6hcTO2uuLHuCGynMDhFwGw/jYf4OJ2Qk0i4i79qMNNkyw== - dependencies: - "@babel/runtime" "^7.12.5" - "@testing-library/dom" "^8.5.0" - "@types/react-dom" "^18.0.0" - -"@testing-library/user-event@^14.0.0", "@testing-library/user-event@^14.4.3": +"@testing-library/user-event@^14.0.0": version "14.4.3" resolved "https://registry.yarnpkg.com/@testing-library/user-event/-/user-event-14.4.3.tgz#af975e367743fa91989cd666666aec31a8f50591" integrity sha512-kCUc5MEwaEMakkO5x7aoD+DLi02ehmEM2QCGWvNqAS1dV/fAvORWEjnjsEIvml59M7Y5kCkWN6fCCyPOe8OL6Q== +"@testing-library/user-event@^14.5.1": + version "14.5.1" + resolved "https://registry.yarnpkg.com/@testing-library/user-event/-/user-event-14.5.1.tgz#27337d72046d5236b32fd977edee3f74c71d332f" + integrity sha512-UCcUKrUYGj7ClomOo2SpNVvx4/fkd/2BbIHDCle8A0ax+P3bU7yJwDBDrS6ZwdTMARWTGODX1hEsCcO+7beJjg== + "@tokenizer/token@^0.3.0": version "0.3.0" resolved "https://registry.yarnpkg.com/@tokenizer/token/-/token-0.3.0.tgz#fe98a93fe789247e998c75e74e9c7c63217aa276" @@ -9599,7 +9595,7 @@ resolved "https://registry.yarnpkg.com/@types/range-parser/-/range-parser-1.2.4.tgz#cd667bcfdd025213aafb7ca5915a932590acdcdc" integrity sha512-EEhsLsD6UsDM1yFhAvy0Cjr6VwmpMWqFBCb9w07wVugF7w9nfajxLuVmngTIpgS6svCnm6Vaw+MZhoDCKnOfsw== -"@types/react-dom@*", "@types/react-dom@<18.0.0", "@types/react-dom@^17", "@types/react-dom@^18.0.0": +"@types/react-dom@*", "@types/react-dom@<18.0.0", "@types/react-dom@^17": version "17.0.20" resolved "https://registry.yarnpkg.com/@types/react-dom/-/react-dom-17.0.20.tgz#e0c8901469d732b36d8473b40b679ad899da1b53" integrity sha512-4pzIjSxDueZZ90F52mU3aPoogkHIoSIDG+oQ+wQK7Cy2B9S+MvOqY0uEA/qawKz381qrEDkvpwyt8Bm31I8sbA==