mirror of
https://github.com/Since-3/Kuma.git
synced 2026-10-12 20:51:18 +00:00
fix build
This commit is contained in:
parent
3c9fc19a3c
commit
51e6f4cd2a
3 changed files with 9 additions and 1 deletions
|
|
@ -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
7
tsconfig.test.json
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
"extends": "./tsconfig.json",
|
||||||
|
"compilerOptions": {
|
||||||
|
"types": ["vitest/globals"]
|
||||||
|
},
|
||||||
|
"include": ["vitest.setup.ts", "vitest.config.ts", "tests/**/*.ts", "tests/**/*.tsx"]
|
||||||
|
}
|
||||||
|
|
@ -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",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue