verify
por facebook
Validação de pré-commit para contribuições React com verificação de tipos e testes em paralelo. Executa formatação e linting sequencialmente, parando no primeiro erro para detectar problemas cedo. Executa verificação de tipos e suítes de teste duplas (source e www) em paralelo usando subagentes para eficiência. Aceita argumento opcional de padrão de teste para filtrar quais testes executar. Fornece relatórios detalhados de falhas com correções sugeridas quando qualquer etapa falha.
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.