Skip to content

Commit 03563de

Browse files
Apply suggestions from code review
Co-authored-by: Tim Deschryver <[email protected]>
1 parent 1cfbe66 commit 03563de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/svelte-testing-library/setup.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,9 @@ runner that's ESM compatible.
140140

141141
### TypeScript
142142

143-
If you use TypeScript and want to use [`@testing-library/jest-dom`][@testing-library/jest-dom] you need to tell the TypeScript compiler about [`@testing-library/jest-dom`][@testing-library/jest-dom] by adding it in your `tsconfig.json` to the `compilerOptions`.
143+
Include [`@testing-library/jest-dom`][@testing-library/jest-dom] to the TypeScript `types` to make the TypeScript compiler aware about the [`@testing-library/jest-dom`][@testing-library/jest-dom] matchers.
144144

145-
```json title="package.json"
145+
```json title="tsconfig.json"
146146
{
147147
"compilerOptions": {
148148
"types": ["@testing-library/jest-dom"],

0 commit comments

Comments
 (0)