Files
ECC/tests
Nguyen Thanh Dat 249b0ecf7f test(gateguard): fail the allow-cases when the hook returns nothing
The "does not gate as destructive" cases guarded the decision behind
`if (output && output.hookSpecificOutput)`, so a crashed or silent hook made
parseOutput return null and the test passed having asserted nothing.

Assert the exit code and that output parsed first, then branch: a decision
object must not be a Destructive deny, and pass-through must echo the input
back — the same shape the existing retry case already checks.

Raised in review on #2829.
2026-09-07 15:48:02 +07:00
..
2026-04-12 12:34:45 +05:30