Skip to content
Closed
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
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,23 @@ setupFilesAfterEnv: ['<rootDir>/jest-setup.js']

### With TypeScript

Install the Typescript types via your package manager, and usually only needs to be done when your package manager requires all dependencies explicitly installed (pnpm, yarn@>=2).

```sh
# for npm
npm install -D @types/testing-library__jest-dom
```

```sh
# for yarn
yarn add -D @types/testing-library__jest-dom
```

```sh
# for pnpm
pnpm add -D @types/testing-library__jest-dom
```

If you're using TypeScript, make sure your setup file is a `.ts` and not a `.js`
to include the necessary types.

Expand Down