Skip to content

Commit

Permalink
test(typing) add support for testing types
Browse files Browse the repository at this point in the history
  • Loading branch information
oberbeck committed Nov 19, 2024
1 parent 207205c commit 2aa0a47
Show file tree
Hide file tree
Showing 3 changed files with 478 additions and 211 deletions.
6 changes: 5 additions & 1 deletion configs/vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,12 @@ export default defineConfig({
alias: {
"@jest/globals": "vitest",
},
include: ["src/**/*.test.ts"],
include: ["src/**/*.test.ts", "src/**/*.test-d.ts"],
isolate: false,
watch: false,
typecheck: {
enabled: true,
include: ["src/**/*.test-d.ts"],
},
},
});
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"tslib": "^2.3.1",
"tsx": "^3.8.0",
"typescript": "~4.5.5",
"vitest": "^0.32.2"
"vitest": "^2.1.5"
},
"exports": {
".": {
Expand Down
Loading

0 comments on commit 2aa0a47

Please sign in to comment.