verify
작성자: facebook
리액트 기여에 대한 사전 커밋 검증으로, 병렬 타입 체크와 테스트를 수행합니다. 포맷팅과 린팅을 순차적으로 실행하며, 첫 번째 실패 시 중단하여 문제를 조기에 발견합니다. 타입 체크와 이중 테스트 스위트(소스 및 www)를 서브 에이전트를 사용해 병렬로 실행하여 효율성을 높입니다. 실행할 테스트를 필터링하기 위해 선택적 테스트 패턴 인수를 허용합니다. 단계 실패 시 제안된 수정 사항과 함께 상세한 실패 보고를 제공합니다.
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.