From 8c097ba78794d1feb3e85bb58a16dc595f45a4bd Mon Sep 17 00:00:00 2001 From: "konveyor-ci-bot[bot]" <159171263+konveyor-ci-bot[bot]@users.noreply.github.com> Date: Thu, 18 Apr 2024 18:33:00 -0400 Subject: [PATCH] :bug: Update css-tools via react testing library dep bump (#1859) (#1863) Resolves https://issues.redhat.com/browse/MTA-1698 Resolves https://issues.redhat.com/browse/MTA-1899 https://www.npmjs.com/package/@testing-library/jest-dom https://stackoverflow.com/a/77375453 Signed-off-by: Ian Bolton Signed-off-by: Cherry Picker --- client/package.json | 2 +- .../__tests__/application-form.test.tsx | 1 - .../__tests__/identity-form.test.tsx | 1 - package-lock.json | 60 ++++++++++++------- 4 files changed, 41 insertions(+), 23 deletions(-) diff --git a/client/package.json b/client/package.json index 787060b79..0944dc58c 100644 --- a/client/package.json +++ b/client/package.json @@ -61,7 +61,7 @@ "devDependencies": { "@pmmmwh/react-refresh-webpack-plugin": "^0.5.10", "@testing-library/dom": "^8.20.1", - "@testing-library/jest-dom": "^5.17.0", + "@testing-library/jest-dom": "^6.4.2", "@testing-library/react": "^12.1.5", "@testing-library/react-hooks": "^8.0.1", "@testing-library/user-event": "^14.4.3", diff --git a/client/src/app/pages/applications/components/application-form/__tests__/application-form.test.tsx b/client/src/app/pages/applications/components/application-form/__tests__/application-form.test.tsx index 082371c77..b9d078202 100644 --- a/client/src/app/pages/applications/components/application-form/__tests__/application-form.test.tsx +++ b/client/src/app/pages/applications/components/application-form/__tests__/application-form.test.tsx @@ -10,7 +10,6 @@ import { BUSINESS_SERVICES } from "@app/api/rest"; import mock from "@app/test-config/mockInstance"; import userEvent from "@testing-library/user-event"; -import "@testing-library/jest-dom/extend-expect"; import "@testing-library/jest-dom"; import { BusinessService } from "@app/api/models"; import { ApplicationFormModal } from "../application-form-modal"; diff --git a/client/src/app/pages/identities/components/identity-form/__tests__/identity-form.test.tsx b/client/src/app/pages/identities/components/identity-form/__tests__/identity-form.test.tsx index a557df2ab..73978806c 100644 --- a/client/src/app/pages/identities/components/identity-form/__tests__/identity-form.test.tsx +++ b/client/src/app/pages/identities/components/identity-form/__tests__/identity-form.test.tsx @@ -10,7 +10,6 @@ import { IDENTITIES } from "@app/api/rest"; import mock from "@app/test-config/mockInstance"; import { IdentityForm } from ".."; -import "@testing-library/jest-dom/extend-expect"; import "@testing-library/jest-dom"; const data: any[] = []; diff --git a/package-lock.json b/package-lock.json index 27068fd31..5bb6f8594 100644 --- a/package-lock.json +++ b/package-lock.json @@ -100,7 +100,7 @@ "devDependencies": { "@pmmmwh/react-refresh-webpack-plugin": "^0.5.10", "@testing-library/dom": "^8.20.1", - "@testing-library/jest-dom": "^5.17.0", + "@testing-library/jest-dom": "^6.4.2", "@testing-library/react": "^12.1.5", "@testing-library/react-hooks": "^8.0.1", "@testing-library/user-event": "^14.4.3", @@ -179,9 +179,9 @@ } }, "node_modules/@adobe/css-tools": { - "version": "4.3.1", - "resolved": "https://registry.npmjs.org/@adobe/css-tools/-/css-tools-4.3.1.tgz", - "integrity": "sha512-/62yikz7NLScCGAAST5SHdnjaDJQBDq0M2muyRTpf2VQhw6StBg2ALiu73zSJQ4fMVLA+0uBhBHAle7Wg+2kSg==", + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@adobe/css-tools/-/css-tools-4.3.3.tgz", + "integrity": "sha512-rE0Pygv0sEZ4vBWHlAgJLGDU7Pm8xoO6p3wsEceb7GYAjScrOHpEo8KK/eVkAcnSM+slAEtXjA2JpdjLp4fJQQ==", "dev": true }, "node_modules/@ampproject/remapping": { @@ -2225,25 +2225,48 @@ "dev": true }, "node_modules/@testing-library/jest-dom": { - "version": "5.17.0", - "resolved": "https://registry.npmjs.org/@testing-library/jest-dom/-/jest-dom-5.17.0.tgz", - "integrity": "sha512-ynmNeT7asXyH3aSVv4vvX4Rb+0qjOhdNHnO/3vuZNqPmhDpV/+rCSGwQ7bLcmU2cJ4dvoheIO85LQj0IbJHEtg==", + "version": "6.4.2", + "resolved": "https://registry.npmjs.org/@testing-library/jest-dom/-/jest-dom-6.4.2.tgz", + "integrity": "sha512-CzqH0AFymEMG48CpzXFriYYkOjk6ZGPCLMhW9e9jg3KMCn5OfJecF8GtGW7yGfR/IgCe3SX8BSwjdzI6BBbZLw==", "dev": true, "dependencies": { - "@adobe/css-tools": "^4.0.1", + "@adobe/css-tools": "^4.3.2", "@babel/runtime": "^7.9.2", - "@types/testing-library__jest-dom": "^5.9.1", "aria-query": "^5.0.0", "chalk": "^3.0.0", "css.escape": "^1.5.1", - "dom-accessibility-api": "^0.5.6", + "dom-accessibility-api": "^0.6.3", "lodash": "^4.17.15", "redent": "^3.0.0" }, "engines": { - "node": ">=8", + "node": ">=14", "npm": ">=6", "yarn": ">=1" + }, + "peerDependencies": { + "@jest/globals": ">= 28", + "@types/bun": "latest", + "@types/jest": ">= 28", + "jest": ">= 28", + "vitest": ">= 0.32" + }, + "peerDependenciesMeta": { + "@jest/globals": { + "optional": true + }, + "@types/bun": { + "optional": true + }, + "@types/jest": { + "optional": true + }, + "jest": { + "optional": true + }, + "vitest": { + "optional": true + } } }, "node_modules/@testing-library/jest-dom/node_modules/chalk": { @@ -2259,6 +2282,12 @@ "node": ">=8" } }, + "node_modules/@testing-library/jest-dom/node_modules/dom-accessibility-api": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/dom-accessibility-api/-/dom-accessibility-api-0.6.3.tgz", + "integrity": "sha512-7ZgogeTnjuHbo+ct10G9Ffp0mif17idi0IyWNVA/wcwcm7NPOD/WEHVP3n7n3MhXqxoIYm8d6MuZohYWIZ4T3w==", + "dev": true + }, "node_modules/@testing-library/jest-dom/node_modules/supports-color": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", @@ -2909,15 +2938,6 @@ "integrity": "sha512-Hl219/BT5fLAaz6NDkSuhzasy49dwQS/DSdu4MdggFB8zcXv7vflBI3xp7FEmkmdDkBUI2bPUNeMttp2knYdxw==", "dev": true }, - "node_modules/@types/testing-library__jest-dom": { - "version": "5.14.9", - "resolved": "https://registry.npmjs.org/@types/testing-library__jest-dom/-/testing-library__jest-dom-5.14.9.tgz", - "integrity": "sha512-FSYhIjFlfOpGSRyVoMBMuS3ws5ehFQODymf3vlI7U1K8c7PHwWwFY7VREfmsuzHSOnoKs/9/Y983ayOs7eRzqw==", - "dev": true, - "dependencies": { - "@types/jest": "*" - } - }, "node_modules/@types/tinycolor2": { "version": "1.4.4", "resolved": "https://registry.npmjs.org/@types/tinycolor2/-/tinycolor2-1.4.4.tgz",