/** Vitest config: runs this package's src test suites in a node environment, rooted at the package dir. */ import path from "node:path"; import { fileURLToPath } from "node:url"; import { defineConfig } from "vitest/config"; const here = path.dirname(fileURLToPath(import.meta.url)); export default defineConfig({ root: here, test: { environment: "node", include: ["src/**/*.test.{ts,tsx}"], exclude: ["dist/**", "**/node_modules/**"], }, });