We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fdee851 commit 8fd402aCopy full SHA for 8fd402a
README.md
@@ -162,6 +162,20 @@ import '@testing-library/jest-dom/vitest'
162
setupFiles: ['./vitest-setup.js']
163
```
164
165
+Also, depending on your local setup, you may need to update your `tsconfig.json`:
166
+
167
+```json
168
+ // In tsconfig.json
169
+ "compilerOptions": {
170
+ ...
171
+ "types": ["vitest/globals", "@testing-library/jest-dom"]
172
+ },
173
+ "include": [
174
175
+ "./vitest.setup.ts"
176
+ ],
177
+```
178
179
[vitest]: https://vitest.dev/
180
[vitest setupfiles]: https://vitest.dev/config/#setupfiles
181
0 commit comments