Skip to content

Commit

Permalink
test(examples): revert jest-dom import and add type source
Browse files Browse the repository at this point in the history
  • Loading branch information
diego-aquino committed Aug 25, 2024
1 parent fa80b1a commit 83fc1fa
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/with-vitest-browser/tests/setup.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import '@testing-library/jest-dom';
import '@testing-library/jest-dom/vitest';

import { beforeAll, afterEach, afterAll } from 'vitest';

Expand Down
3 changes: 2 additions & 1 deletion examples/with-vitest-browser/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"skipLibCheck": true,
"pretty": true,
"strict": true,
"allowSyntheticDefaultImports": true
"allowSyntheticDefaultImports": true,
"types": ["@testing-library/jest-dom"]
},
"include": ["**/*.ts", "**/*.mts"],
"exclude": ["node_modules"]
Expand Down
2 changes: 1 addition & 1 deletion examples/with-vitest-jsdom/tests/setup.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import '@testing-library/jest-dom';
import '@testing-library/jest-dom/vitest';

import { beforeAll, afterEach, afterAll } from 'vitest';

Expand Down
3 changes: 2 additions & 1 deletion examples/with-vitest-jsdom/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"skipLibCheck": true,
"pretty": true,
"strict": true,
"allowSyntheticDefaultImports": true
"allowSyntheticDefaultImports": true,
"types": ["@testing-library/jest-dom"]
},
"include": ["**/*.ts", "**/*.mts"],
"exclude": ["node_modules"]
Expand Down

0 comments on commit 83fc1fa

Please sign in to comment.