Merge pull request 'refactor: update TypeScript configuration to exclude test files and add vitest config' (#23) from bugfix/changeTSconfig into dev

Reviewed-on: #23
This commit is contained in:
Seazn 2026-05-21 17:42:06 +00:00
commit 4d81f6875a
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"
]
}