15 lines
389 B
TypeScript
15 lines
389 B
TypeScript
import { defineConfig } from 'vitest/config';
|
|
import react from '@vitejs/plugin-react';
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
test: {
|
|
globals: true,
|
|
environment: 'jsdom',
|
|
setupFiles: ['./src/test/setup.ts'],
|
|
include: ['src/**/*.{test,spec}.{ts,tsx}'],
|
|
exclude: ['e2e/**', 'node_modules/**', 'dist/**', '.next/**'],
|
|
passWithNoTests: false,
|
|
},
|
|
});
|