Skip to content

Commit

Permalink
fix: vitest and jest-dom types conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
allbertuu committed Jan 2, 2024
1 parent 642d158 commit bf92bc0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/@types/vite-env.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/// <reference types="vite/client" />
/// <reference types="vitest/globals" />
2 changes: 1 addition & 1 deletion test/setup.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
import '@testing-library/jest-dom';
import '@testing-library/jest-dom/vitest';
3 changes: 1 addition & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@
"paths": {
"@/*": ["./src/*"]
},
"types": ["vitest/globals"],
"target": "ESNext",
"useDefineForClassFields": true,
"lib": ["DOM", "DOM.Iterable", "ESNext"],
"allowJs": false,
"skipLibCheck": false,
"skipLibCheck": true,
"esModuleInterop": false,
"allowSyntheticDefaultImports": true,
"strict": true,
Expand Down

1 comment on commit bf92bc0

@vercel
Copy link

@vercel vercel bot commented on bf92bc0 Jan 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.