import path from "node:path"; import { defineConfig } from "vitest/config"; // Unit test เฉพาะ pure utils (ไม่มี DOM/DB — ดูรายละเอียดขอบเขตใน tests/utils/) // alias "@" ให้ตรงกับ paths ใน tsconfig.json export default defineConfig({ resolve: { alias: { "@": path.resolve(__dirname), }, }, test: { environment: "node", include: ["tests/**/*.test.ts"], }, });