diff --git a/packages/app/package.json b/packages/app/package.json index adf8e9675e..e4304752a8 100644 --- a/packages/app/package.json +++ b/packages/app/package.json @@ -28,7 +28,7 @@ }, "devDependencies": { "@testing-library/cypress": "^6.0.0", - "@testing-library/jest-dom": "^4.2.4", + "@testing-library/jest-dom": "^5.7.0", "@testing-library/react": "^9.3.2", "@testing-library/user-event": "^10.2.4", "@types/jest": "^25.2.1", diff --git a/packages/app/src/setupTests.ts b/packages/app/src/setupTests.ts index 17ff0c096d..c717b2753b 100644 --- a/packages/app/src/setupTests.ts +++ b/packages/app/src/setupTests.ts @@ -18,4 +18,4 @@ // allows you to do things like: // expect(element).toHaveTextContent(/react/i) // learn more: https://github.com/testing-library/jest-dom -import '@testing-library/jest-dom/extend-expect'; +import '@testing-library/jest-dom'; diff --git a/packages/cli/templates/default-app/packages/app/package.json.hbs b/packages/cli/templates/default-app/packages/app/package.json.hbs index b0cf41117f..33d995a2c1 100644 --- a/packages/cli/templates/default-app/packages/app/package.json.hbs +++ b/packages/cli/templates/default-app/packages/app/package.json.hbs @@ -16,7 +16,7 @@ "react-use": "^14.2.0" }, "devDependencies": { - "@testing-library/jest-dom": "^4.2.4", + "@testing-library/jest-dom": "^5.7.0", "@testing-library/react": "^9.3.2", "@testing-library/user-event": "^10.2.4", "@types/jest": "^25.2.1", diff --git a/packages/cli/templates/default-app/packages/app/src/setupTests.ts b/packages/cli/templates/default-app/packages/app/src/setupTests.ts index 666127af39..7b0828bfa8 100644 --- a/packages/cli/templates/default-app/packages/app/src/setupTests.ts +++ b/packages/cli/templates/default-app/packages/app/src/setupTests.ts @@ -1 +1 @@ -import '@testing-library/jest-dom/extend-expect'; +import '@testing-library/jest-dom'; diff --git a/packages/cli/templates/default-app/plugins/welcome/package.json.hbs b/packages/cli/templates/default-app/plugins/welcome/package.json.hbs index dcd0d7eaa7..b18839bab6 100644 --- a/packages/cli/templates/default-app/plugins/welcome/package.json.hbs +++ b/packages/cli/templates/default-app/plugins/welcome/package.json.hbs @@ -28,7 +28,7 @@ "devDependencies": { "@backstage/cli": "^{{version}}", "@backstage/dev-utils": "^{{version}}", - "@testing-library/jest-dom": "^4.2.4", + "@testing-library/jest-dom": "^5.7.0", "@testing-library/react": "^9.3.2", "@types/testing-library__jest-dom": "^5.0.4", "jest-fetch-mock": "^3.0.3" diff --git a/packages/cli/templates/default-app/plugins/welcome/src/setupTests.ts b/packages/cli/templates/default-app/plugins/welcome/src/setupTests.ts index 666127af39..7b0828bfa8 100644 --- a/packages/cli/templates/default-app/plugins/welcome/src/setupTests.ts +++ b/packages/cli/templates/default-app/plugins/welcome/src/setupTests.ts @@ -1 +1 @@ -import '@testing-library/jest-dom/extend-expect'; +import '@testing-library/jest-dom'; diff --git a/packages/cli/templates/default-plugin/package.json.hbs b/packages/cli/templates/default-plugin/package.json.hbs index 910bbddd56..000808dd2b 100644 --- a/packages/cli/templates/default-plugin/package.json.hbs +++ b/packages/cli/templates/default-plugin/package.json.hbs @@ -32,7 +32,7 @@ "devDependencies": { "@backstage/cli": "^{{version}}", "@backstage/dev-utils": "^{{version}}", - "@testing-library/jest-dom": "^4.2.4", + "@testing-library/jest-dom": "^5.7.0", "@testing-library/react": "^9.3.2", "@testing-library/user-event": "^10.2.4", "@types/jest": "^25.2.1", diff --git a/packages/cli/templates/default-plugin/src/setupTests.ts b/packages/cli/templates/default-plugin/src/setupTests.ts index 1a907ab8e6..e34bc46f4b 100644 --- a/packages/cli/templates/default-plugin/src/setupTests.ts +++ b/packages/cli/templates/default-plugin/src/setupTests.ts @@ -14,5 +14,5 @@ * limitations under the License. */ -import '@testing-library/jest-dom/extend-expect'; +import '@testing-library/jest-dom'; require('jest-fetch-mock').enableMocks(); diff --git a/packages/core/package.json b/packages/core/package.json index 17f85eb41d..e73c7c581f 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -59,7 +59,7 @@ "@backstage/cli": "^0.1.1-alpha.5", "@backstage/test-utils": "^0.1.1-alpha.5", "@backstage/test-utils-core": "^0.1.1-alpha.5", - "@testing-library/jest-dom": "^4.2.4", + "@testing-library/jest-dom": "^5.7.0", "@testing-library/react": "^9.3.2", "@testing-library/user-event": "^10.2.4" }, diff --git a/packages/core/src/setupTests.ts b/packages/core/src/setupTests.ts index 8925258421..825bcd4115 100644 --- a/packages/core/src/setupTests.ts +++ b/packages/core/src/setupTests.ts @@ -14,4 +14,4 @@ * limitations under the License. */ -import '@testing-library/jest-dom/extend-expect'; +import '@testing-library/jest-dom'; diff --git a/packages/dev-utils/package.json b/packages/dev-utils/package.json index 230aa42334..f5eb8e9708 100644 --- a/packages/dev-utils/package.json +++ b/packages/dev-utils/package.json @@ -34,7 +34,7 @@ "@backstage/theme": "^0.1.1-alpha.5", "@material-ui/core": "^4.9.1", "@material-ui/icons": "^4.9.1", - "@testing-library/jest-dom": "^4.2.4", + "@testing-library/jest-dom": "^5.7.0", "@testing-library/react": "^9.3.2", "@testing-library/user-event": "^10.2.4", "@types/jest": "^25.2.1", diff --git a/packages/dev-utils/src/setupTests.ts b/packages/dev-utils/src/setupTests.ts index 8925258421..825bcd4115 100644 --- a/packages/dev-utils/src/setupTests.ts +++ b/packages/dev-utils/src/setupTests.ts @@ -14,4 +14,4 @@ * limitations under the License. */ -import '@testing-library/jest-dom/extend-expect'; +import '@testing-library/jest-dom'; diff --git a/packages/test-utils-core/package.json b/packages/test-utils-core/package.json index 162615fee8..6efe6f9400 100644 --- a/packages/test-utils-core/package.json +++ b/packages/test-utils-core/package.json @@ -28,7 +28,7 @@ "clean": "backstage-cli clean" }, "dependencies": { - "@testing-library/jest-dom": "^4.2.4", + "@testing-library/jest-dom": "^5.7.0", "@testing-library/react": "^9.3.2", "@types/jest": "^25.2.1", "@types/node": "^12.0.0", diff --git a/packages/test-utils-core/src/setupTests.ts b/packages/test-utils-core/src/setupTests.ts index 8925258421..825bcd4115 100644 --- a/packages/test-utils-core/src/setupTests.ts +++ b/packages/test-utils-core/src/setupTests.ts @@ -14,4 +14,4 @@ * limitations under the License. */ -import '@testing-library/jest-dom/extend-expect'; +import '@testing-library/jest-dom'; diff --git a/packages/test-utils/package.json b/packages/test-utils/package.json index a82b6f7c4f..06bf415bd6 100644 --- a/packages/test-utils/package.json +++ b/packages/test-utils/package.json @@ -32,7 +32,7 @@ "@backstage/test-utils-core": "^0.1.1-alpha.5", "@backstage/theme": "^0.1.1-alpha.5", "@material-ui/core": "^4.9.1", - "@testing-library/jest-dom": "^4.2.4", + "@testing-library/jest-dom": "^5.7.0", "@testing-library/react": "^9.3.2", "@testing-library/user-event": "^10.2.4", "@types/jest": "^25.2.1", diff --git a/packages/test-utils/src/setupTests.ts b/packages/test-utils/src/setupTests.ts index 8925258421..825bcd4115 100644 --- a/packages/test-utils/src/setupTests.ts +++ b/packages/test-utils/src/setupTests.ts @@ -14,4 +14,4 @@ * limitations under the License. */ -import '@testing-library/jest-dom/extend-expect'; +import '@testing-library/jest-dom'; diff --git a/plugins/catalog/package.json b/plugins/catalog/package.json index 79bf5fe00c..b55cf15fc6 100644 --- a/plugins/catalog/package.json +++ b/plugins/catalog/package.json @@ -30,7 +30,7 @@ "@backstage/cli": "^0.1.1-alpha.5", "@backstage/dev-utils": "^0.1.1-alpha.5", "@backstage/test-utils": "^0.1.1-alpha.5", - "@testing-library/jest-dom": "^4.2.4", + "@testing-library/jest-dom": "^5.7.0", "@testing-library/react": "^9.3.2", "@testing-library/user-event": "^10.2.4", "@types/jest": "^25.2.1", diff --git a/plugins/catalog/src/setupTests.ts b/plugins/catalog/src/setupTests.ts index 1a907ab8e6..e34bc46f4b 100644 --- a/plugins/catalog/src/setupTests.ts +++ b/plugins/catalog/src/setupTests.ts @@ -14,5 +14,5 @@ * limitations under the License. */ -import '@testing-library/jest-dom/extend-expect'; +import '@testing-library/jest-dom'; require('jest-fetch-mock').enableMocks(); diff --git a/plugins/explore/package.json b/plugins/explore/package.json index f73da27beb..1a915bffe6 100644 --- a/plugins/explore/package.json +++ b/plugins/explore/package.json @@ -31,7 +31,7 @@ "@backstage/cli": "^0.1.1-alpha.5", "@backstage/dev-utils": "^0.1.1-alpha.5", "@backstage/test-utils": "^0.1.1-alpha.5", - "@testing-library/jest-dom": "^4.2.4", + "@testing-library/jest-dom": "^5.7.0", "@testing-library/react": "^9.3.2", "@testing-library/user-event": "^10.2.4", "@types/jest": "^25.2.1", diff --git a/plugins/explore/src/setupTests.ts b/plugins/explore/src/setupTests.ts index 1a907ab8e6..e34bc46f4b 100644 --- a/plugins/explore/src/setupTests.ts +++ b/plugins/explore/src/setupTests.ts @@ -14,5 +14,5 @@ * limitations under the License. */ -import '@testing-library/jest-dom/extend-expect'; +import '@testing-library/jest-dom'; require('jest-fetch-mock').enableMocks(); diff --git a/plugins/graphiql/package.json b/plugins/graphiql/package.json index 2720a6e77b..0fb302c024 100644 --- a/plugins/graphiql/package.json +++ b/plugins/graphiql/package.json @@ -45,7 +45,7 @@ "@backstage/cli": "^0.1.1-alpha.5", "@backstage/dev-utils": "^0.1.1-alpha.5", "@backstage/test-utils": "^0.1.1-alpha.5", - "@testing-library/jest-dom": "^4.2.4", + "@testing-library/jest-dom": "^5.7.0", "@testing-library/react": "^9.3.2", "@testing-library/user-event": "^10.2.4", "@types/codemirror": "^0.0.93", diff --git a/plugins/graphiql/src/setupTests.ts b/plugins/graphiql/src/setupTests.ts index 1a907ab8e6..e34bc46f4b 100644 --- a/plugins/graphiql/src/setupTests.ts +++ b/plugins/graphiql/src/setupTests.ts @@ -14,5 +14,5 @@ * limitations under the License. */ -import '@testing-library/jest-dom/extend-expect'; +import '@testing-library/jest-dom'; require('jest-fetch-mock').enableMocks(); diff --git a/plugins/home-page/package.json b/plugins/home-page/package.json index 1d5b98bb28..5531720f56 100644 --- a/plugins/home-page/package.json +++ b/plugins/home-page/package.json @@ -29,7 +29,7 @@ "devDependencies": { "@backstage/cli": "^0.1.1-alpha.5", "@backstage/dev-utils": "^0.1.1-alpha.5", - "@testing-library/jest-dom": "^4.2.4", + "@testing-library/jest-dom": "^5.7.0", "@testing-library/react": "^9.3.2", "@testing-library/user-event": "^10.2.4", "@types/jest": "^25.2.1", diff --git a/plugins/home-page/src/setupTests.ts b/plugins/home-page/src/setupTests.ts index 8925258421..825bcd4115 100644 --- a/plugins/home-page/src/setupTests.ts +++ b/plugins/home-page/src/setupTests.ts @@ -14,4 +14,4 @@ * limitations under the License. */ -import '@testing-library/jest-dom/extend-expect'; +import '@testing-library/jest-dom'; diff --git a/plugins/lighthouse/package.json b/plugins/lighthouse/package.json index bebf882b9b..bab4a7a673 100644 --- a/plugins/lighthouse/package.json +++ b/plugins/lighthouse/package.json @@ -32,7 +32,7 @@ "@backstage/cli": "^0.1.1-alpha.5", "@backstage/dev-utils": "^0.1.1-alpha.5", "@backstage/test-utils": "^0.1.1-alpha.5", - "@testing-library/jest-dom": "^4.2.4", + "@testing-library/jest-dom": "^5.7.0", "@testing-library/react": "^9.3.2", "@testing-library/user-event": "^10.2.4", "@types/jest": "^25.2.1", diff --git a/plugins/lighthouse/src/setupTests.ts b/plugins/lighthouse/src/setupTests.ts index 1a907ab8e6..e34bc46f4b 100644 --- a/plugins/lighthouse/src/setupTests.ts +++ b/plugins/lighthouse/src/setupTests.ts @@ -14,5 +14,5 @@ * limitations under the License. */ -import '@testing-library/jest-dom/extend-expect'; +import '@testing-library/jest-dom'; require('jest-fetch-mock').enableMocks(); diff --git a/plugins/register-component/package.json b/plugins/register-component/package.json index fbcb39d4d7..3e16d8e7c9 100644 --- a/plugins/register-component/package.json +++ b/plugins/register-component/package.json @@ -30,7 +30,7 @@ "devDependencies": { "@backstage/cli": "^0.1.1-alpha.5", "@backstage/dev-utils": "^0.1.1-alpha.5", - "@testing-library/jest-dom": "^4.2.4", + "@testing-library/jest-dom": "^5.7.0", "@testing-library/react": "^9.3.2", "@testing-library/user-event": "^10.2.4", "@types/jest": "^25.2.1", diff --git a/plugins/register-component/src/setupTests.ts b/plugins/register-component/src/setupTests.ts index 1a907ab8e6..e34bc46f4b 100644 --- a/plugins/register-component/src/setupTests.ts +++ b/plugins/register-component/src/setupTests.ts @@ -14,5 +14,5 @@ * limitations under the License. */ -import '@testing-library/jest-dom/extend-expect'; +import '@testing-library/jest-dom'; require('jest-fetch-mock').enableMocks(); diff --git a/plugins/scaffolder/package.json b/plugins/scaffolder/package.json index 1743f57c3c..facbed06e9 100644 --- a/plugins/scaffolder/package.json +++ b/plugins/scaffolder/package.json @@ -29,7 +29,7 @@ "devDependencies": { "@backstage/cli": "^0.1.1-alpha.5", "@backstage/dev-utils": "^0.1.1-alpha.5", - "@testing-library/jest-dom": "^4.2.4", + "@testing-library/jest-dom": "^5.7.0", "@testing-library/react": "^9.3.2", "@testing-library/user-event": "^10.2.4", "@types/jest": "^25.2.1", diff --git a/plugins/scaffolder/src/setupTests.ts b/plugins/scaffolder/src/setupTests.ts index 1a907ab8e6..e34bc46f4b 100644 --- a/plugins/scaffolder/src/setupTests.ts +++ b/plugins/scaffolder/src/setupTests.ts @@ -14,5 +14,5 @@ * limitations under the License. */ -import '@testing-library/jest-dom/extend-expect'; +import '@testing-library/jest-dom'; require('jest-fetch-mock').enableMocks(); diff --git a/plugins/tech-radar/package.json b/plugins/tech-radar/package.json index f4ccbdab5f..463b34611c 100644 --- a/plugins/tech-radar/package.json +++ b/plugins/tech-radar/package.json @@ -33,7 +33,7 @@ "devDependencies": { "@backstage/cli": "^0.1.1-alpha.5", "@backstage/dev-utils": "^0.1.1-alpha.5", - "@testing-library/jest-dom": "^4.2.4", + "@testing-library/jest-dom": "^5.7.0", "@testing-library/react": "^9.3.2", "@testing-library/user-event": "^10.2.4", "@types/color": "^3.0.1", diff --git a/plugins/tech-radar/src/setupTests.ts b/plugins/tech-radar/src/setupTests.ts index 1a907ab8e6..e34bc46f4b 100644 --- a/plugins/tech-radar/src/setupTests.ts +++ b/plugins/tech-radar/src/setupTests.ts @@ -14,5 +14,5 @@ * limitations under the License. */ -import '@testing-library/jest-dom/extend-expect'; +import '@testing-library/jest-dom'; require('jest-fetch-mock').enableMocks(); diff --git a/plugins/welcome/package.json b/plugins/welcome/package.json index 1c25a9aabc..b9f107a09f 100644 --- a/plugins/welcome/package.json +++ b/plugins/welcome/package.json @@ -30,7 +30,7 @@ "devDependencies": { "@backstage/cli": "^0.1.1-alpha.5", "@backstage/dev-utils": "^0.1.1-alpha.5", - "@testing-library/jest-dom": "^4.2.4", + "@testing-library/jest-dom": "^5.7.0", "@testing-library/react": "^9.3.2", "@testing-library/user-event": "^10.2.4", "@types/jest": "^25.2.1", diff --git a/plugins/welcome/src/setupTests.ts b/plugins/welcome/src/setupTests.ts index 8925258421..825bcd4115 100644 --- a/plugins/welcome/src/setupTests.ts +++ b/plugins/welcome/src/setupTests.ts @@ -14,4 +14,4 @@ * limitations under the License. */ -import '@testing-library/jest-dom/extend-expect'; +import '@testing-library/jest-dom'; diff --git a/yarn.lock b/yarn.lock index da6f670bef..4573ebcf46 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3569,6 +3569,21 @@ pretty-format "^24.0.0" redent "^3.0.0" +"@testing-library/jest-dom@^5.7.0": + version "5.7.0" + resolved "https://registry.npmjs.org/@testing-library/jest-dom/-/jest-dom-5.7.0.tgz#b2e2acb4c088a293d52ba2cd1674b526282a2f87" + integrity sha512-ZV0OtBXmTDEDxrIbqJXiOcXCZ6aIMpmDlmfHj0hGNsSuQ/nX0qPAs9HWmCzXvPfTrhufTiH2nJLvDJu/LgHzwQ== + dependencies: + "@babel/runtime" "^7.9.2" + "@types/testing-library__jest-dom" "^5.0.2" + chalk "^3.0.0" + css "^2.2.4" + css.escape "^1.5.1" + jest-diff "^25.1.0" + jest-matcher-utils "^25.1.0" + lodash "^4.17.15" + redent "^3.0.0" + "@testing-library/react@^9.3.2": version "9.5.0" resolved "https://registry.npmjs.org/@testing-library/react/-/react-9.5.0.tgz#71531655a7890b61e77a1b39452fbedf0472ca5e" @@ -4365,6 +4380,13 @@ dependencies: "@types/jest" "*" +"@types/testing-library__jest-dom@^5.0.2": + version "5.7.0" + resolved "https://registry.npmjs.org/@types/testing-library__jest-dom/-/testing-library__jest-dom-5.7.0.tgz#078790bf4dc89152a74428591a228ec5f9433251" + integrity sha512-LoZ3uonlnAbJUz4bg6UoeFl+frfndXngmkCItSjJ8DD5WlRfVqPC5/LgJASsY/dy7AHH2YJ7PcsdASOydcVeFA== + dependencies: + "@types/jest" "*" + "@types/testing-library__jest-dom@^5.0.4": version "5.6.0" resolved "https://registry.npmjs.org/@types/testing-library__jest-dom/-/testing-library__jest-dom-5.6.0.tgz#325e97aacb7e4a66693e7face8a2c04f936f4a4b" @@ -7426,7 +7448,7 @@ css.escape@^1.5.1: resolved "https://registry.npmjs.org/css.escape/-/css.escape-1.5.1.tgz#42e27d4fa04ae32f931a4b4d4191fa9cddee97cb" integrity sha1-QuJ9T6BK4y+TGktNQZH6nN3ul8s= -css@^2.2.3: +css@^2.2.3, css@^2.2.4: version "2.2.4" resolved "https://registry.npmjs.org/css/-/css-2.2.4.tgz#c646755c73971f2bba6a601e2cf2fd71b1298929" integrity sha512-oUnjmWpy0niI3x/mPL8dVEI1l7MnG3+HHyRPHf+YFSbK+svOhXpmSOcDURUh2aOCgl2grzrOPt1nHLuCVFULLw==