Skip to content

Commit fc3a68b

Browse files
authored
Update intro.mdx
remove the part that tells you to install @testing-library/dom because it is already included when using a framework wrapper
1 parent f302be9 commit fc3a68b

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Diff for: docs/react-testing-library/intro.mdx

+3-4
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,10 @@ 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`:
12+
To get started with `React Testing Library`, you'll need to install it.
1413

1514
```bash npm2yarn
16-
npm install --save-dev @testing-library/react @testing-library/dom
15+
npm install --save-dev @testing-library/react
1716
```
1817

1918
### With TypeScript
@@ -22,7 +21,7 @@ To get full type coverage, you need to install the types for `react` and `react-
2221
well:
2322

2423
```bash npm2yarn
25-
npm install --save-dev @testing-library/react @testing-library/dom @types/react @types/react-dom
24+
npm install --save-dev @testing-library/react @types/react @types/react-dom
2625
```
2726

2827
[gh]: https://github.com/testing-library/react-testing-library

0 commit comments

Comments
 (0)