run-tests

Correr tests del backend y frontend de PROSEGUIT. Usa despues de hacer cambios de codigo para verificar que todo funciona.

SKILL.md

GitHub

Run Tests - PROSEGUIT

Ejecuta los tests del proyecto.

Sin argumentos o "all": todos los tests

cd backend && npm test && cd ../frontend && npm test

Argumento "backend": solo backend

cd backend && npm test

Argumento "frontend": solo frontend

cd frontend && npm test

Archivo especifico

npx vitest run $ARGUMENTS

Tests con watch mode (desarrollo)

cd backend && npm test -- --watch
# o
cd frontend && npm test -- --watch

Tests con coverage

cd backend && npm test -- --coverage
cd frontend && npm test -- --coverage

Cuando un test falla

  1. Leer el mensaje de error completo
  2. Identificar el archivo y linea del fallo
  3. Verificar si el test esta desactualizado o si hay un bug real
  4. Correr solo ese test: npx vitest run path/to/test.ts
  5. Fixear y re-correr