File tree 1 file changed +7
-4
lines changed
docs/react-testing-library
1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -9,19 +9,22 @@ APIs for working with React components.
9
9
10
10
## Installation
11
11
12
+ To get started with ` React Testing Library ` , you'll need to install it together
13
+ with its peerDependency ` @testing-library/dom ` :
14
+
12
15
``` bash npm2yarn
13
- npm install --save-dev @testing-library/react
16
+ npm install --save-dev @testing-library/react @testing-library/dom
14
17
```
15
18
16
19
### With TypeScript
17
20
18
- To get full type coverage, you need to install the types for ` react ` and ` react-dom ` as well:
21
+ To get full type coverage, you need to install the types for ` react ` and ` react-dom ` as
22
+ well:
19
23
20
24
``` bash npm2yarn
21
- npm install --save-dev @testing-library/react @types/react-dom @types/react
25
+ npm install --save-dev @testing-library/react @testing-library/dom @ types/react @types/react-dom
22
26
```
23
27
24
-
25
28
[ gh ] : https://github.com/testing-library/react-testing-library
26
29
27
30
## The problem
You can’t perform that action at this time.
0 commit comments