Skip to content

Commit a437596

Browse files
committed
docs: move dtl to peerdeps for rtl
1 parent a6bf3f5 commit a437596

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

docs/react-testing-library/intro.mdx

Lines changed: 6 additions & 3 deletions
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 it's 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-dom` as well:
21+
To get full type coverage, you need to install the types for `react-dom` as
22+
well:
1923

2024
```bash npm2yarn
2125
npm install --save-dev @testing-library/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)