Skip to content

Add TDD practices, pre-commit hook, and missing tests#4

Merged
yoaquim merged 2 commits into
mainfrom
chore/tdd-enforcement
Apr 25, 2026
Merged

Add TDD practices, pre-commit hook, and missing tests#4
yoaquim merged 2 commits into
mainfrom
chore/tdd-enforcement

Conversation

@yoaquim
Copy link
Copy Markdown
Owner

@yoaquim yoaquim commented Apr 25, 2026

Summary

  • CLAUDE.md — added mandatory TDD (red-green-refactor), React, Tailwind, and Git practices
  • Pre-commit hook — runs npm run build + npm test before every commit. Committed to .githooks/ and enabled via git config core.hooksPath
  • 23 new tests for people staging (the feature merged in PR People staging — confirm, merge, or dismiss inferred speakers #3 had no tests):
    • server/__tests__/pending-people.test.ts — confirm, merge (with alias dedup), dismiss, 404s, file cleanup
    • scripts/tests/test_stage_people.py — generic label filtering, canonical name merging, skip existing/dismissed/pending, alias matching
  • Branch protection on main: PRs required, no force pushes, auto-delete merged branches

Test plan

  • npm test — 79 tests pass (38 vitest + 41 pytest)
  • Pre-commit hook runs and blocks on failure

yoaquim added 2 commits April 25, 2026 12:57
- CLAUDE.md updated with mandatory TDD (red-green-refactor), React,
  Tailwind, and Git practices
- Pre-commit hook runs build + tests before allowing commits
- 23 new tests for people staging:
  - server: pending people API (confirm, merge, dismiss, edge cases)
  - python: stage-people.py (generic labels, canonical, staging logic,
    skips existing/dismissed/pending, alias matching)
- Branch protection on main: PRs required, no force pushes
- Auto-delete merged branches enabled
@yoaquim yoaquim merged commit f4b6fec into main Apr 25, 2026
@yoaquim yoaquim deleted the chore/tdd-enforcement branch April 25, 2026 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant