fix(testkit): macOS compat + fix test 8c ordering (#24)

This commit is contained in:
2026-03-18 21:01:13 -04:00
parent ca94c0a9e5
commit 83a2ec19e2
59 changed files with 4458 additions and 454 deletions

18
.githooks/pre-commit Executable file
View File

@@ -0,0 +1,18 @@
#!/usr/bin/env bash
# Pre-commit hook: typecheck + lint
# Activated by: make install
set -euo pipefail
echo "[pre-commit] Running typecheck…"
if ! pnpm run typecheck; then
echo "[pre-commit] FAILED: typecheck errors — commit blocked." >&2
exit 1
fi
echo "[pre-commit] Running lint…"
if ! pnpm run lint; then
echo "[pre-commit] FAILED: lint errors — commit blocked." >&2
exit 1
fi
echo "[pre-commit] All checks passed."

18
.githooks/pre-push Executable file
View File

@@ -0,0 +1,18 @@
#!/usr/bin/env bash
# Pre-push hook: typecheck + lint (same as pre-commit, catches anything that slipped through)
# Activated by: make install
set -euo pipefail
echo "[pre-push] Running typecheck…"
if ! pnpm run typecheck; then
echo "[pre-push] FAILED: typecheck errors — push blocked." >&2
exit 1
fi
echo "[pre-push] Running lint…"
if ! pnpm run lint; then
echo "[pre-push] FAILED: lint errors — push blocked." >&2
exit 1
fi
echo "[pre-push] All checks passed."