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 all commits
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
11 changes: 7 additions & 4 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 its peerDependency `@testing-library/dom`:

```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` and `react-dom` as well:
To get full type coverage, you need to install the types for `react` and `react-dom` as
well:

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


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

## The problem
Expand Down