🎓 Initial commit: Math2 Platform - Plataforma de Álgebra Lineal PRO
✨ Características: - 45 ejercicios universitarios (Basic → Advanced) - Renderizado LaTeX profesional - IA generativa (Z.ai/DashScope) - Docker 9 servicios - Tests 123/123 pasando - Seguridad enterprise (JWT, XSS, Rate limiting) 🐳 Infraestructura: - Next.js 14 + Node.js 20 - PostgreSQL 15 + Redis 7 - Docker Compose completo - Nginx + SSL ready 📚 Documentación: - 5 informes técnicos completos - README profesional - Scripts de deployment automatizados Estado: Producción lista ✅
This commit is contained in:
59
frontend/vitest.config.ts
Normal file
59
frontend/vitest.config.ts
Normal file
@@ -0,0 +1,59 @@
|
||||
import { defineConfig } from 'vitest/config';
|
||||
import react from '@vitejs/plugin-react';
|
||||
import path from 'path';
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [react()],
|
||||
test: {
|
||||
globals: true,
|
||||
environment: 'jsdom',
|
||||
include: ['src/**/*.test.{ts,tsx}', 'tests/**/*.test.{ts,tsx}'],
|
||||
exclude: [
|
||||
'node_modules',
|
||||
'.next',
|
||||
'out',
|
||||
'build',
|
||||
'dist',
|
||||
'e2e/**/*',
|
||||
],
|
||||
coverage: {
|
||||
provider: 'v8',
|
||||
reporter: ['text', 'json', 'html', 'lcov'],
|
||||
include: ['src/**/*.{ts,tsx}'],
|
||||
exclude: [
|
||||
'src/**/*.d.ts',
|
||||
'src/**/index.ts',
|
||||
'src/**/types.ts',
|
||||
'src/**/constants.ts',
|
||||
'src/components/ui/*.tsx',
|
||||
'src/lib/utils.ts',
|
||||
],
|
||||
thresholds: {
|
||||
lines: 70,
|
||||
functions: 70,
|
||||
branches: 65,
|
||||
statements: 70,
|
||||
},
|
||||
},
|
||||
setupFiles: ['./src/test/setup.ts'],
|
||||
testTimeout: 10000,
|
||||
hookTimeout: 10000,
|
||||
deps: {
|
||||
optimizer: {
|
||||
web: {
|
||||
include: ['vitest-canvas-mock'],
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': path.resolve(__dirname, './src'),
|
||||
'@components': path.resolve(__dirname, './src/components'),
|
||||
'@hooks': path.resolve(__dirname, './src/hooks'),
|
||||
'@lib': path.resolve(__dirname, './src/lib'),
|
||||
'@types': path.resolve(__dirname, './src/types'),
|
||||
'@store': path.resolve(__dirname, './src/store'),
|
||||
},
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user