2026-03-03 19:01:13 +01:00
|
|
|
import { defineConfig } from 'vitest/config';
|
|
|
|
|
import react from '@vitejs/plugin-react';
|
|
|
|
|
import path from 'path';
|
|
|
|
|
|
|
|
|
|
export default defineConfig({
|
|
|
|
|
plugins: [react()],
|
|
|
|
|
test: {
|
2026-03-03 21:18:05 +01:00
|
|
|
environment: 'jsdom',
|
2026-03-03 19:01:13 +01:00
|
|
|
globals: true,
|
|
|
|
|
setupFiles: ['./src/test/setup.ts'],
|
2026-03-06 09:19:32 +01:00
|
|
|
include: ['src/**/*.test.{ts,tsx}', 'src/**/__tests__/**/*.{ts,tsx}'],
|
|
|
|
|
exclude: ['node_modules', 'dist', '.next', 'e2e/**', 'playwright-report/**', 'test-results/**', '**/*.spec.ts'],
|
2026-03-03 19:01:13 +01:00
|
|
|
},
|
|
|
|
|
resolve: {
|
|
|
|
|
alias: {
|
|
|
|
|
'@': path.resolve(__dirname, './src'),
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
});
|