import { defineConfig } from "vitest/config"; import { fileURLToPath, URL } from "node:url"; // Adaptive Loop: vanilla-TS + SVG, no framework/engine. Static single-page build. export default defineConfig({ base: "./", resolve: { alias: { "@": fileURLToPath(new URL("./src", import.meta.url)), }, }, build: { target: "es2022", outDir: "dist", sourcemap: true, }, test: { // Vitest: pure domain tests run in node (no DOM needed for the core). environment: "node", include: ["tests/**/*.test.ts"], reporters: ["default"], }, });