This commit is contained in:
2026-02-10 02:06:54 +01:00
parent 5290560d68
commit ef5e98ad5d
29 changed files with 1529 additions and 8 deletions

33
vitest.config.ts Normal file
View File

@@ -0,0 +1,33 @@
import react from "@vitejs/plugin-react"
import tsconfigPaths from "vite-tsconfig-paths"
import { defineConfig } from "vitest/config"
export default defineConfig({
plugins: [react(), tsconfigPaths()],
test: {
globals: true,
environment: "node",
setupFiles: ["./test/setup/global.ts"],
include: [
"apps/**/*.test.{ts,tsx}",
"packages/**/*.test.{ts,tsx}",
"apps/**/*.vitest.{ts,tsx}",
"packages/**/*.vitest.{ts,tsx}",
],
exclude: ["**/node_modules/**", "**/.next/**", "**/dist/**", "**/.turbo/**", "e2e/**"],
coverage: {
provider: "istanbul",
reporter: ["text", "lcov", "html"],
include: ["apps/**/*.{ts,tsx}", "packages/**/*.{ts,tsx}"],
exclude: [
"**/.next/**",
"**/.turbo/**",
"**/*.d.ts",
"**/*.test.{ts,tsx}",
"**/next-env.d.ts",
"**/next.config.ts",
"**/postcss.config.mjs",
],
},
},
})