Skip to content

Commit b6f6796

Browse files
authored
Merge pull request #419 from wasp-lang/filip-tscofnig-rework
Update tsconfig and vite-env.d.ts
2 parents cc943df + d1053f1 commit b6f6796

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

template/app/src/vite-env.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
11
/// <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

Comments
 (0)