Back to Hooks

Run Tests After Changes

Hooks post-tool 1,895

Automatically run quick tests after code modifications to ensure nothing breaks. This hook executes 'npm run test:quick' silently after any Edit operation and provides feedback on test status. Helps catch breaking changes immediately during development. Only runs if package.json exists and the test:quick script is available.

Install Command
npx claude-code-templates@latest --hook post-tool/run-tests-after-changes
View on GitHub
claude-code — run-tests-after-changes

Content

JSON
{
"description": "Automatically run quick tests after code modifications to ensure nothing breaks...."
"hooks": {
"PostToolUse": [1 item]
}
}

Stack Builder

0 components

Your stack is empty

Browse components and click the + button to add them to your stack for easy installation.