Skip to content
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