Skip to content
This repository was archived by the owner on Feb 18, 2020. It is now read-only.

Commit c4d503c

Browse files
committed
Move react-testing-library dependency. Update README
react-testing-library has been deprecated in favour of @testing-library/react Relevant issue: testing-library/dom-testing-library#260
1 parent ca8bc4c commit c4d503c

File tree

4 files changed

+98
-28
lines changed

4 files changed

+98
-28
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
- Webpack
1313
- SASS & CSS Modules
1414
- Service Worker support
15-
- Jest & React-Testing-Library
15+
- Jest & react-testing-library
1616
- Hot Module Replacement
1717
- ESLint & Prettier
1818
- Redux DevTools via Chrome extension

config/jest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ module.exports = {
119119

120120
// The path to a module that runs some code to configure or set up the testing framework before each test
121121
setupFilesAfterEnv: [
122-
'react-testing-library/cleanup-after-each',
122+
'@testing-library/react/cleanup-after-each',
123123
'jest-dom/extend-expect',
124124
],
125125

package-lock.json

Lines changed: 95 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
"@babel/preset-react": "^7.0.0",
4444
"@babel/preset-typescript": "^7.3.3",
4545
"@svgr/webpack": "^4.2.0",
46+
"@testing-library/react": "^8.0.1",
4647
"@types/jest": "^24.0.11",
4748
"@types/react": "^16.8.13",
4849
"@types/react-dom": "^16.8.4",
@@ -85,7 +86,6 @@
8586
"postcss-normalize": "^7.0.1",
8687
"prettier": "^1.17.0",
8788
"react-dev-utils": "^9.0.0",
88-
"react-testing-library": "^7.0.0",
8989
"sass-loader": "^7.1.0",
9090
"style-loader": "^0.23.1",
9191
"typescript": "^3.4.3",

0 commit comments

Comments
 (0)