From 5d437b8c90362fe6e86f7e9dad249331a16d533f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ernesto=20Garc=C3=ADa?= Date: Sun, 3 May 2020 23:46:13 -0400 Subject: [PATCH] Upgrade testing-library packages (#8406) Co-authored-by: Ian Schmitz --- package.json | 6 +++--- packages/cra-template-typescript/template.json | 6 +++--- packages/cra-template-typescript/template/src/setupTests.ts | 2 +- packages/cra-template/template.json | 6 +++--- packages/cra-template/template/src/setupTests.js | 2 +- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/package.json b/package.json index e48fb86d1ee..e7cecd2b409 100644 --- a/package.json +++ b/package.json @@ -20,9 +20,9 @@ "compile:lockfile": "node tasks/compile-lockfile.js" }, "devDependencies": { - "@testing-library/jest-dom": "^4.2.0", - "@testing-library/react": "^9.3.0", - "@testing-library/user-event": "^7.1.2", + "@testing-library/jest-dom": "^5.5.0", + "@testing-library/react": "^10.0.4", + "@testing-library/user-event": "^10.1.0", "alex": "^8.0.0", "eslint": "^6.1.0", "execa": "1.0.0", diff --git a/packages/cra-template-typescript/template.json b/packages/cra-template-typescript/template.json index 2c789a3f302..decd08f1b4e 100644 --- a/packages/cra-template-typescript/template.json +++ b/packages/cra-template-typescript/template.json @@ -1,9 +1,9 @@ { "package": { "dependencies": { - "@testing-library/react": "^9.3.2", - "@testing-library/jest-dom": "^4.2.4", - "@testing-library/user-event": "^7.1.2", + "@testing-library/jest-dom": "^5.5.0", + "@testing-library/react": "^10.0.4", + "@testing-library/user-event": "^10.1.0", "@types/node": "^12.0.0", "@types/react": "^16.9.0", "@types/react-dom": "^16.9.0", diff --git a/packages/cra-template-typescript/template/src/setupTests.ts b/packages/cra-template-typescript/template/src/setupTests.ts index 74b1a275a0e..8f2609b7b3e 100644 --- a/packages/cra-template-typescript/template/src/setupTests.ts +++ b/packages/cra-template-typescript/template/src/setupTests.ts @@ -2,4 +2,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/cra-template/template.json b/packages/cra-template/template.json index 4c6861dc1f0..73f711c4620 100644 --- a/packages/cra-template/template.json +++ b/packages/cra-template/template.json @@ -1,9 +1,9 @@ { "package": { "dependencies": { - "@testing-library/react": "^9.3.2", - "@testing-library/jest-dom": "^4.2.4", - "@testing-library/user-event": "^7.1.2" + "@testing-library/jest-dom": "^5.5.0", + "@testing-library/react": "^10.0.4", + "@testing-library/user-event": "^10.1.0" } } } diff --git a/packages/cra-template/template/src/setupTests.js b/packages/cra-template/template/src/setupTests.js index 74b1a275a0e..8f2609b7b3e 100644 --- a/packages/cra-template/template/src/setupTests.js +++ b/packages/cra-template/template/src/setupTests.js @@ -2,4 +2,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';