From a1049623c8dfe8b43f90162ef123d1998c846162 Mon Sep 17 00:00:00 2001 From: seaznCode Date: Thu, 21 May 2026 19:41:55 +0200 Subject: [PATCH] refactor: update TypeScript configuration to exclude test files and add vitest config --- tsconfig.json | 9 ++++++++- tsconfig.vitest.json | 24 ++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 tsconfig.vitest.json diff --git a/tsconfig.json b/tsconfig.json index b575f7d..7d1952d 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -36,6 +36,13 @@ ".next/dev/types/**/*.ts" ], "exclude": [ - "node_modules" + "node_modules", + "vitest.config.ts", + "src/tests/**/*", + "**/*.test.ts", + "**/*.test.tsx", + "**/*.spec.ts", + "**/*.spec.tsx", + "**/__tests__/**/*" ] } diff --git a/tsconfig.vitest.json b/tsconfig.vitest.json new file mode 100644 index 0000000..3338438 --- /dev/null +++ b/tsconfig.vitest.json @@ -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" + ] +} \ No newline at end of file -- 2.39.5