import path from 'node:path'; import { defineConfig } from 'vitest/config'; /** * Covers the pure helpers, which is all that exists today — hence no `environment` and a * `*.spec.ts` include. Component tests are not ruled out: add jsdom, @testing-library/react, * `environment: 'jsdom'` and `*.spec.tsx` here. See CLAUDE.md > Tests. * * `@/*` mirrors `tsconfig.json`'s path so a spec can import the same modules the app does. */ export default defineConfig({ resolve: { alias: { '@': path.resolve(__dirname, 'src') }, }, test: { include: ['src/**/*.spec.ts'], }, });