File tree 1 file changed +9
-4
lines changed
docs/react-testing-library
1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -7,15 +7,20 @@ sidebar_label: Introduction
7
7
[ ` React Testing Library ` ] [ gh ] builds on top of ` DOM Testing Library ` by adding
8
8
APIs for working with React components.
9
9
10
- > Projects created with [ ` Create React App ` ] ( https://create-react-app.dev/ ) have
11
- > out of the box support for ** React Testing Library** . If that is not the case,
12
- > you can add it via ` npm ` like so:
10
+ ## Installation
13
11
14
12
``` bash npm2yarn
15
13
npm install --save-dev @testing-library/react
16
14
```
17
15
18
- - [ React Testing Library on GitHub] [ gh ]
16
+ ### With TypeScript
17
+
18
+ To get full type coverage, you need to install the types for ` react-dom ` as well:
19
+
20
+ ``` bash npm2yarn
21
+ npm install --save-dev @testing-library/react @types/react-dom
22
+ ```
23
+
19
24
20
25
[ gh ] : https://github.com/testing-library/react-testing-library
21
26
You can’t perform that action at this time.
0 commit comments