34 lines
940 B
TypeScript
34 lines
940 B
TypeScript
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",
|
|
],
|
|
},
|
|
},
|
|
})
|