verify
por facebook
Validación previa al commit para contribuciones React con verificación de tipos y pruebas en paralelo. Ejecuta formato y linting de forma secuencial, deteniéndose en el primer fallo para detectar problemas temprano. Ejecuta verificación de tipos y dos conjuntos de pruebas (source y www) en paralelo usando subagentes para mayor eficiencia. Acepta un argumento opcional de patrón de prueba para filtrar qué pruebas se ejecutan. Proporciona informes detallados de fallos con sugerencias de corrección cuando algún paso falla.
npx skills add https://github.com/facebook/react --skill verifyVerification
Run all verification steps.
Arguments:
- $ARGUMENTS: Test pattern for the test step
Instructions
Run these first in sequence:
- Run
yarn prettier- format code (stop if fails) - Run
yarn linc- lint changed files (stop if fails)
Then run these with subagents in parallel:
- Use
/flowto type check (stop if fails) - Use
/testto test changes in source (stop if fails) - Use
/test wwwto test changes in www (stop if fails)
If all pass, show success summary. On failure, stop immediately and report the issue with suggested fixes.