Hooks · Hook
Pre-push Test Runner
Run tests before pushing to catch regressions
hooktestingpre-push
Template content
# Hook Configuration (for ~/.claude/settings.json)
{
"hooks": {
"PrePush": [
{
"command": "npm test",
"description": "Run test suite before pushing"
}
]
}
}
# Notes
- Prevents pushing code that breaks tests
- Runs the full test suite
- If tests fail, the push is blockedUse this template in the editor
Open PromptEditor.io to customize this template, save it, and inject it into any AI chat.
Open the editor