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

This commit is contained in:
seaznCode 2026-05-21 19:41:55 +02:00
parent bcc953edc1
commit a1049623c8
2 changed files with 32 additions and 1 deletions

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"
]
}