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, "./src"), "@muse/shared": path.resolve(__dirname, "../shared/src/index.ts"), }, }, test: { environment: "happy-dom", globals: true, setupFiles: ["./vitest.setup.ts"], include: ["src/**/*.test.{ts,tsx}"], coverage: { provider: "v8", reporter: ["text", "text-summary", "lcov"], include: ["src/lib/**", "src/stores/**"], exclude: ["src/**/*.test.*", "src/**/ui/**"], thresholds: { branches: 80, functions: 80, lines: 80, statements: 80, }, }, }, });