36 lines
960 B
TypeScript
36 lines
960 B
TypeScript
import { defineConfig } from 'vitest/config';
|
|
import react from '@vitejs/plugin-react';
|
|
import { resolve } from 'path';
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
test: {
|
|
globals: true,
|
|
environment: 'jsdom',
|
|
setupFiles: ['./src/lib/test-setup.ts'],
|
|
exclude: ['**/node_modules/**', '**/dist/**', '**/e2e/**', '**/*.spec.ts'],
|
|
coverage: {
|
|
provider: 'v8',
|
|
reporter: ['text', 'json', 'html'],
|
|
thresholds: {
|
|
lines: 85,
|
|
functions: 85,
|
|
branches: 85,
|
|
statements: 85,
|
|
},
|
|
exclude: [
|
|
'**/node_modules/**',
|
|
'**/dist/**',
|
|
'**/*.d.ts',
|
|
'**/*.config.*',
|
|
'**/*.stories.*',
|
|
],
|
|
},
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
'@': resolve(import.meta.dirname, './src'),
|
|
},
|
|
},
|
|
});
|