test(hooks): snapshot invalid matcher loading

This commit is contained in:
ZiyaZhang
2026-07-28 02:58:08 -07:00
parent 3f71f91d5b
commit 5e4c2ffae7
12 changed files with 105 additions and 4 deletions
@@ -0,0 +1,19 @@
{
"hooks": {
"UserPromptSubmit": [
{
"hooks": [
{ "type": "command", "command": "echo 'must not run' >&2; exit 2" }
]
}
],
"PreToolUse": [
{
"matcher": "[",
"hooks": [
{ "type": "command", "command": "exit 2" }
]
}
]
}
}