File tree Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -97,21 +97,24 @@ primary guiding principle is:
9797## Installation
9898
9999This module is distributed via [ npm] [ npm ] which is bundled with [ node] [ node ] and
100- should be installed as one of your project's ` devDependencies ` :
100+ should be installed as one of your project's ` devDependencies ` .
101+ Starting from RTL version 16, you'll also need to install
102+ ` @testing-library/dom ` :
101103
102104```
103- npm install --save-dev @testing-library/react
105+ npm install --save-dev @testing-library/react @testing-library/dom
104106```
105107
106108or
107109
108110for installation via [ yarn] [ yarn ]
109111
110112```
111- yarn add --dev @testing-library/react
113+ yarn add --dev @testing-library/react @testing-library/dom
112114```
113115
114- This library has ` peerDependencies ` listings for ` react ` and ` react-dom ` .
116+ This library has ` peerDependencies ` listings for ` react ` , ` react-dom ` and
117+ starting from RTL version 16 also ` @testing-library/dom ` .
115118
116119_ React Testing Library versions 13+ require React v18. If your project uses an
117120older version of React, be sure to install version 12:_
Original file line number Diff line number Diff line change 4545 "author" :
" Kent C. Dodds <[email protected] > (https://kentcdodds.com)" ,
4646 "license" : " MIT" ,
4747 "dependencies" : {
48- "@babel/runtime" : " ^7.12.5" ,
49- "@testing-library/dom" : " ^10.0.0"
48+ "@babel/runtime" : " ^7.12.5"
5049 },
5150 "devDependencies" : {
52- "@types/react- dom" : " ^18.2.25 " ,
51+ "@testing-library/ dom" : " ^10.0.0 " ,
5352 "@testing-library/jest-dom" : " ^5.11.6" ,
53+ "@types/react-dom" : " ^18.2.25" ,
5454 "chalk" : " ^4.1.2" ,
5555 "dotenv-cli" : " ^4.0.0" ,
5656 "jest-diff" : " ^29.7.0" ,
6262 "typescript" : " ^4.1.2"
6363 },
6464 "peerDependencies" : {
65+ "@testing-library/dom" : " ^10.0.0" ,
6566 "@types/react-dom" : " ^18.0.0" ,
6667 "react" : " ^18.0.0" ,
6768 "react-dom" : " ^18.0.0"
You can’t perform that action at this time.
0 commit comments