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

Remove contradiction from documentation #1430

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
7 changes: 3 additions & 4 deletions docs/react-testing-library/intro.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@ 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`:
To get started with `React Testing Library`, you'll need to install it.
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe this text can even be removed as it's kind of stating the obvious


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

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

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

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