import { defineConfig } from "vitest/config";

export default defineConfig({
  test: {
    globals: true,
    environment: "node",
    setupFiles: ["./src/__tests__/setup.ts"],
    globalSetup: ["./src/__tests__/globalSetup.ts"],
    testTimeout: 30000,
    hookTimeout: 60000,
    include: ["src/__tests__/**/*.test.ts"],
    exclude: ["node_modules", "dist"],
    reporters: ["verbose"],
    pool: "forks",
  },
  resolve: {
    alias: {
      "@": "/src",
    },
  },
});
