refactor: update TypeScript configuration to exclude test files and add vitest config #23

Merged
Seazn merged 1 commits from bugfix/changeTSconfig into dev 2026-05-21 17:42:06 +00:00
2 changed files with 32 additions and 1 deletions
Showing only changes of commit a1049623c8 - Show all commits

View File

@ -36,6 +36,13 @@
".next/dev/types/**/*.ts" ".next/dev/types/**/*.ts"
], ],
"exclude": [ "exclude": [
"node_modules" "node_modules",
"vitest.config.ts",
"src/tests/**/*",
"**/*.test.ts",
"**/*.test.tsx",
"**/*.spec.ts",
"**/*.spec.tsx",
"**/__tests__/**/*"
] ]
} }

24
tsconfig.vitest.json Normal file
View File

@ -0,0 +1,24 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"types": [
"vitest/globals",
"@testing-library/jest-dom",
"node"
]
},
"include": [
"vitest.config.ts",
"src/tests/**/*.ts",
"src/tests/**/*.tsx",
"**/*.test.ts",
"**/*.test.tsx",
"**/*.spec.ts",
"**/*.spec.tsx",
"**/__tests__/**/*.ts",
"**/__tests__/**/*.tsx"
],
"exclude": [
"node_modules"
]
}