We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cc943df + d1053f1 commit b6f6796Copy full SHA for b6f6796
template/app/src/vite-env.d.ts
@@ -1 +1,7 @@
1
/// <reference types="vite/client" />
2
+
3
+// This is needed to properly support Vitest testing with jest-dom matchers.
4
+// Types for jest-dom are not recognized automatically and Typescript complains
5
+// about missing types e.g. when using `toBeInTheDocument` and other matchers.
6
+// Reference: https://github.com/testing-library/jest-dom/issues/546#issuecomment-1889884843
7
+import '@testing-library/jest-dom';
0 commit comments