23 lines
514 B
TypeScript
23 lines
514 B
TypeScript
import { fileURLToPath } from 'node:url';
|
|
import { defineConfig } from 'vitest/config';
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
environment: 'jsdom',
|
|
exclude: [
|
|
'**/node_modules/**',
|
|
'**/tests/e2e/**',
|
|
'**/playwright-report/**',
|
|
'**/test-results/**',
|
|
],
|
|
globals: true,
|
|
include: ['src/**/*.{test,spec}.{ts,tsx,js,jsx}'],
|
|
setupFiles: ['./src/test/setup.ts'],
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
'@': fileURLToPath(new URL('./src', import.meta.url)),
|
|
},
|
|
},
|
|
});
|