Skip to content

Commit 0c01661

Browse files
MatanBobieps1lon
andauthored
docs: move dtl to peerdeps for rtl (#1386)
Co-authored-by: Sebastian Silbermann <[email protected]>
1 parent 33e4f5e commit 0c01661

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

docs/react-testing-library/intro.mdx

+7-4
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)