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:
@@ -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..."
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user