| name | test |
| description | Runs tests, typecheck, and lint, then reports results. Use when checking code quality. |
Test Runner
テストを実行し、結果を報告します。
Quick Check
!npm run test:all 2>&1 | tail -5
Commands
Full Test Suite
npm run test:all
npm run typecheck
npm run lint
Specific Tests
If $ARGUMENTS is provided, run only matching tests:
npm run test -- --grep "$ARGUMENTS"
npm run test -- $ARGUMENTS
Report Format
1. Test Summary
- Total: X tests
- Passed: X
- Failed: X
- Skipped: X
2. Failed Tests (if any)
Test: [test name]
Error: [error message]
Location: [file:line]
3. Type Errors (if any)
File: [path]
Error: [message]
4. Lint Errors (if any)
File: [path]
Rule: [rule name]
Message: [message]
On Failure
If tests, typecheck, or lint fail:
- Analyze the root cause
- Propose a fix
- If simple, offer to fix immediately
- If complex, create a task
Quick Fixes
npm run lint -- --fix
npm run test -- -u