File tree 2 files changed +7
-5
lines changed
2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -97,21 +97,22 @@ 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 ` @testing-library/dom ` :
101
102
102
103
```
103
- npm install --save-dev @testing-library/react
104
+ npm install --save-dev @testing-library/react @testing-library/dom
104
105
```
105
106
106
107
or
107
108
108
109
for installation via [ yarn] [ yarn ]
109
110
110
111
```
111
- yarn add --dev @testing-library/react
112
+ yarn add --dev @testing-library/react @testing-library/dom
112
113
```
113
114
114
- This library has ` peerDependencies ` listings for ` react ` and ` react- dom` .
115
+ This library has ` peerDependencies ` listings for ` react ` , ` react-dom ` and starting from RTL version 16 also ` @testing-library/ dom` .
115
116
116
117
_ React Testing Library versions 13+ require React v18. If your project uses an
117
118
older version of React, be sure to install version 12:_
Original file line number Diff line number Diff line change 46
46
"license" : " MIT" ,
47
47
"dependencies" : {
48
48
"@babel/runtime" : " ^7.12.5" ,
49
- "@testing-library/dom" : " ^10.0.0" ,
50
49
"@types/react-dom" : " ^18.0.0"
51
50
},
52
51
"devDependencies" : {
52
+ "@testing-library/dom" : " ^10.0.0" ,
53
53
"@testing-library/jest-dom" : " ^5.11.6" ,
54
54
"chalk" : " ^4.1.2" ,
55
55
"dotenv-cli" : " ^4.0.0" ,
62
62
"typescript" : " ^4.1.2"
63
63
},
64
64
"peerDependencies" : {
65
+ "@testing-library/dom" : " ^10.0.0" ,
65
66
"react" : " ^18.0.0" ,
66
67
"react-dom" : " ^18.0.0"
67
68
},
You can’t perform that action at this time.
0 commit comments