@@ -105,14 +105,18 @@ Starting from RTL version 16, you'll also need to install
105
105
npm install --save-dev @testing-library/react @testing-library/dom
106
106
```
107
107
108
- or
109
-
110
108
for installation via [ yarn] [ yarn ]
111
109
112
110
```
113
111
yarn add --dev @testing-library/react @testing-library/dom
114
112
```
115
113
114
+ or, for installation via [ pnpm] [ pnpm ]
115
+
116
+ ```
117
+ pnpm add -D @testing-library/react @testing-library/dom
118
+ ```
119
+
116
120
This library has ` peerDependencies ` listings for ` react ` , ` react-dom ` and
117
121
starting from RTL version 16 also ` @testing-library/dom ` .
118
122
@@ -121,10 +125,13 @@ older version of React, be sure to install version 12:_
121
125
122
126
```
123
127
npm install --save-dev @testing-library/react@12
124
-
125
-
128
+ ```
129
+ ```
126
130
yarn add --dev @testing-library/react@12
127
131
```
132
+ ```
133
+ pnpm add -D @testing-library/react@12
134
+ ```
128
135
129
136
You may also be interested in installing ` @testing-library/jest-dom ` so you can
130
137
use [ the custom jest matchers] ( https://github.com/testing-library/jest-dom ) .
@@ -656,6 +663,7 @@ Contributions of any kind welcome!
656
663
[npm]: https://www.npmjs.com/
657
664
[yarn]: https://classic.yarnpkg.com
658
665
[node]: https://nodejs.org
666
+ [pnpm]: https://pnpm.io
659
667
[build-badge]: https://img.shields.io/github/actions/workflow/status/testing-library/react-testing-library/validate.yml?branch=main&logo=github
660
668
[build]: https://github.com/testing-library/react-testing-library/actions?query=workflow%3Avalidate
661
669
[coverage-badge]: https://img.shields.io/codecov/c/github/testing-library/react-testing-library.svg?style=flat-square
0 commit comments