File tree 2 files changed +10
-6
lines changed
2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -97,21 +97,24 @@ primary guiding principle is:
97
97
## Installation
98
98
99
99
This 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 ` :
101
103
102
104
```
103
- npm install --save-dev @testing-library/react
105
+ npm install --save-dev @testing-library/react @testing-library/dom
104
106
```
105
107
106
108
or
107
109
108
110
for installation via [ yarn] [ yarn ]
109
111
110
112
```
111
- yarn add --dev @testing-library/react
113
+ yarn add --dev @testing-library/react @testing-library/dom
112
114
```
113
115
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 ` .
115
118
116
119
_ React Testing Library versions 13+ require React v18. If your project uses an
117
120
older version of React, be sure to install version 12:_
Original file line number Diff line number Diff line change 45
45
"author" :
" Kent C. Dodds <[email protected] > (https://kentcdodds.com)" ,
46
46
"license" : " MIT" ,
47
47
"dependencies" : {
48
- "@babel/runtime" : " ^7.12.5" ,
49
- "@testing-library/dom" : " ^10.0.0"
48
+ "@babel/runtime" : " ^7.12.5"
50
49
},
51
50
"devDependencies" : {
51
+ "@testing-library/dom" : " ^10.0.0" ,
52
52
"@types/react-dom" : " ^18.2.25" ,
53
53
"@testing-library/jest-dom" : " ^5.11.6" ,
54
54
"chalk" : " ^4.1.2" ,
62
62
"typescript" : " ^4.1.2"
63
63
},
64
64
"peerDependencies" : {
65
+ "@testing-library/dom" : " ^10.0.0" ,
65
66
"@types/react-dom" : " ^18.0.0" ,
66
67
"react" : " ^18.0.0" ,
67
68
"react-dom" : " ^18.0.0"
You can’t perform that action at this time.
0 commit comments