import { defineConfig } from 'vitest/config'; import react from '@vitejs/plugin-react'; import { resolve } from 'path'; export default defineConfig({ plugins: [react()], resolve: { alias: { '@': resolve(__dirname, 'src'), }, }, test: { globals: true, environment: 'jsdom', include: ['tests/**/*.test.ts', 'tests/**/*.test.tsx'], setupFiles: ['tests/setup.ts'], coverage: { provider: 'v8', include: ['src/canvas/**', 'src/history/**', 'src/components/**'], }, }, });