Add PostToolUse hook to run PHPUnit tests after every code edit

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-27 11:08:02 -03:00
parent 5414739536
commit 8a707f6c71

View File

@@ -4,5 +4,20 @@
"WebFetch(domain:docs.bsky.app)",
"Bash(tea actions:*)"
]
},
"hooks": {
"PostToolUse": [
{
"matcher": "Edit|Write",
"hooks": [
{
"type": "command",
"command": "vendor/bin/phpunit",
"timeout": 60,
"statusMessage": "Running PHPUnit tests..."
}
]
}
]
}
}