import path from 'node:path'; import { fileURLToPath } from 'node:url'; import { defineConfig } from 'vitest/config'; import react from '@vitejs/plugin-react'; const rootDir = path.dirname(fileURLToPath(import.meta.url)); export default defineConfig({ plugins: [react()], resolve: { alias: { '@': path.resolve(rootDir, 'src') }, }, test: { globals: true, environment: 'jsdom', setupFiles: ['./test/setup.ts'], /* Per-component tests sit next to the component; test/ holds the suites that cut across the whole kit (the axe smoke run). */ include: ['src/**/*.test.{ts,tsx}', 'test/**/*.test.{ts,tsx}'], css: false, }, });