File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
docs/react-testing-library Expand file tree Collapse file tree 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.
99
1010## Installation
1111
12+ To get started with ` React Testing Library ` , you'll need to install it together
13+ with its peerDependency ` @testing-library/dom ` :
14+
1215``` bash npm2yarn
13- npm install --save-dev @testing-library/react
16+ npm install --save-dev @testing-library/react @testing-library/dom
1417```
1518
1619### With TypeScript
1720
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:
1923
2024``` 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
2226```
2327
24-
2528[ gh ] : https://github.com/testing-library/react-testing-library
2629
2730## The problem
You can’t perform that action at this time.
0 commit comments