Skip to content

Commit 5d437b8

Browse files
gnapseianschmitz
andauthored
Upgrade testing-library packages (facebook#8406)
Co-authored-by: Ian Schmitz <ianschmitz@gmail.com>
1 parent 3c2f2d4 commit 5d437b8

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
"compile:lockfile": "node tasks/compile-lockfile.js"
2121
},
2222
"devDependencies": {
23-
"@testing-library/jest-dom": "^4.2.0",
24-
"@testing-library/react": "^9.3.0",
25-
"@testing-library/user-event": "^7.1.2",
23+
"@testing-library/jest-dom": "^5.5.0",
24+
"@testing-library/react": "^10.0.4",
25+
"@testing-library/user-event": "^10.1.0",
2626
"alex": "^8.0.0",
2727
"eslint": "^6.1.0",
2828
"execa": "1.0.0",

packages/cra-template-typescript/template.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"package": {
33
"dependencies": {
4-
"@testing-library/react": "^9.3.2",
5-
"@testing-library/jest-dom": "^4.2.4",
6-
"@testing-library/user-event": "^7.1.2",
4+
"@testing-library/jest-dom": "^5.5.0",
5+
"@testing-library/react": "^10.0.4",
6+
"@testing-library/user-event": "^10.1.0",
77
"@types/node": "^12.0.0",
88
"@types/react": "^16.9.0",
99
"@types/react-dom": "^16.9.0",

packages/cra-template-typescript/template/src/setupTests.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
// allows you to do things like:
33
// expect(element).toHaveTextContent(/react/i)
44
// learn more: https://github.com/testing-library/jest-dom
5-
import '@testing-library/jest-dom/extend-expect';
5+
import '@testing-library/jest-dom';

packages/cra-template/template.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"package": {
33
"dependencies": {
4-
"@testing-library/react": "^9.3.2",
5-
"@testing-library/jest-dom": "^4.2.4",
6-
"@testing-library/user-event": "^7.1.2"
4+
"@testing-library/jest-dom": "^5.5.0",
5+
"@testing-library/react": "^10.0.4",
6+
"@testing-library/user-event": "^10.1.0"
77
}
88
}
99
}

packages/cra-template/template/src/setupTests.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
// allows you to do things like:
33
// expect(element).toHaveTextContent(/react/i)
44
// learn more: https://github.com/testing-library/jest-dom
5-
import '@testing-library/jest-dom/extend-expect';
5+
import '@testing-library/jest-dom';

0 commit comments

Comments
 (0)