Enable focused tests as repository pre-commit hook

This commit is contained in:
Frank
2026-08-25 16:18:01 -07:00
parent 63ff1b6b43
commit 8c8c3f7cd0
4 changed files with 24 additions and 5 deletions
+3
View File
@@ -6,6 +6,9 @@ load helpers
@test "changed-test wrapper is executable and uses staged diff by default" {
[ -x "$REPO_ROOT/scripts/test-changed.sh" ]
[ -x "$REPO_ROOT/.githooks/pre-commit" ]
run grep -F 'scripts/test-changed.sh' "$REPO_ROOT/.githooks/pre-commit"
[ "$status" -eq 0 ]
run grep -F 'git diff --cached' "$REPO_ROOT/scripts/test-changed.sh"
[ "$status" -eq 0 ]
}