fix build

This commit is contained in:
Rajpreet0 2026-04-27 20:34:39 +02:00
parent 3c9fc19a3c
commit 51e6f4cd2a
3 changed files with 9 additions and 1 deletions

View file

@ -30,5 +30,5 @@
".next/dev/types/**/*.ts", ".next/dev/types/**/*.ts",
"**/*.mts" "**/*.mts"
], ],
"exclude": ["node_modules"] "exclude": ["node_modules", "vitest.setup.ts", "vitest.config.ts", "tests/**"]
} }

7
tsconfig.test.json Normal file
View file

@ -0,0 +1,7 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"types": ["vitest/globals"]
},
"include": ["vitest.setup.ts", "vitest.config.ts", "tests/**/*.ts", "tests/**/*.tsx"]
}

View file

@ -13,6 +13,7 @@ export default defineConfig({
globals: true, globals: true,
environment: "jsdom", environment: "jsdom",
setupFiles: "./vitest.setup.ts", setupFiles: "./vitest.setup.ts",
typecheck: { tsconfig: "./tsconfig.test.json" },
include: ["tests/**/*.test.{ts,tsx}"], include: ["tests/**/*.test.{ts,tsx}"],
coverage: { coverage: {
provider: "v8", provider: "v8",