vitest.config.ts 360 B

12345678910111213
  1. import { defineConfig } from "vitest/config";
  2. import path from "node:path";
  3. export default defineConfig({
  4. esbuild: { jsx: "automatic" },
  5. resolve: { alias: { "@": path.resolve(__dirname, ".") } },
  6. test: {
  7. environment: "jsdom",
  8. setupFiles: ["./tests/setup.ts"],
  9. css: false,
  10. exclude: ["tests/e2e/**", "node_modules/**", ".next/**"]
  11. }
  12. });