import { defineConfig } from "vitest/config";
import path from "path";

export default defineConfig({
  test: {
    environment: "jsdom",
    setupFiles: ["./src/__tests__/setup.ts"],
    include: ["src/**/*.test.{ts,tsx}"],
    globals: true,
    css: false,
  },
  resolve: {
    alias: {
      "@": path.resolve(__dirname, "./src"),
    },
  },
  css: {
    // Disable PostCSS processing — Tailwind v4's plugin isn't compatible with Vite's PostCSS loader
    postcss: {
      plugins: [],
    },
  },
  esbuild: {
    jsx: "automatic",
  },
});
