import { defineConfig } from "vitest/config";

export default defineConfig({
  test: {
    environment: "happy-dom",
    globals: false,
    include: ["tests/**/*.test.js"],
    coverage: {
      provider: "v8",
      reporter: ["text", "lcov"],
      include: ["src/**/*.js"],
      exclude: ["src/contracts/**"],
    },
  },
  resolve: {
    alias: {
      "@src": "/src",
      "@contracts": "/src/contracts",
      "@utils": "/src/utils",
      "@tests": "/tests",
    },
  },
});
