mirror of
https://github.com/Since-3/Kuma.git
synced 2026-10-12 19:51:17 +00:00
30 lines
697 B
TypeScript
30 lines
697 B
TypeScript
import { defineConfig } from "vitest/config";
|
|
import react from "@vitejs/plugin-react";
|
|
import path from "path";
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
resolve: {
|
|
alias: {
|
|
"@": path.resolve(__dirname, "./"),
|
|
},
|
|
},
|
|
test: {
|
|
globals: true,
|
|
environment: "jsdom",
|
|
setupFiles: "./vitest.setup.ts",
|
|
typecheck: { tsconfig: "./tsconfig.test.json" },
|
|
include: ["tests/**/*.test.{ts,tsx}"],
|
|
coverage: {
|
|
provider: "v8",
|
|
reporter: ["text", "lcov"],
|
|
include: [
|
|
"src/app/api/**",
|
|
"src/hooks/**",
|
|
"src/modules/**/schemas/**",
|
|
"src/modules/**/validation/**",
|
|
"src/lib/**",
|
|
],
|
|
},
|
|
},
|
|
});
|