mirror of
https://github.com/OpenSquawk/OpenSquawk
synced 2026-08-09 02:56:02 +08:00
- .githooks/pre-push: runs vue-tsc before every push; blocks TypeScript regressions locally without any manual developer setup - postinstall: git config core.hooksPath .githooks activates the hook automatically on yarn install (yarn 4, enableScripts: true) - tests/smoke/apiHandlers.smoke.test.ts: import-level smoke tests for all bug-report handlers + 3 core admin handlers — catches broken exports and top-level runtime errors without a DB or running server - tests/server/bugReport.test.ts: 16 unit tests covering comment validation, contact-string building, model schema fields, status enum, and patch logic Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
10 lines
272 B
Bash
Executable File
10 lines
272 B
Bash
Executable File
#!/bin/sh
|
|
# Runs automatically before every git push (installed via postinstall → git config core.hooksPath).
|
|
# Keeps broken TypeScript off main without any manual developer setup.
|
|
set -e
|
|
|
|
echo "→ TypeScript check..."
|
|
yarn typecheck
|
|
|
|
echo "✓ Pre-push checks passed"
|