Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: move dtl to peerdeps for rtl #1386

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions docs/react-testing-library/intro.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,22 @@ APIs for working with React components.

## Installation

To get started with `React Testing Library`, you'll need to install it together
with it's peerDependency `@testing-library/dom`:
MatanBobi marked this conversation as resolved.
Show resolved Hide resolved

```bash npm2yarn
npm install --save-dev @testing-library/react
npm install --save-dev @testing-library/react @testing-library/dom
```

### With TypeScript

To get full type coverage, you need to install the types for `react-dom` as well:
To get full type coverage, you need to install the types for `react-dom` as
well:

```bash npm2yarn
npm install --save-dev @testing-library/react @types/react-dom
MatanBobi marked this conversation as resolved.
Show resolved Hide resolved
```


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

## The problem
Expand Down