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