Skip to content

test(candidate): add regression coverage for self-delete cascade (#158) - #175

Merged
datvt243 merged 1 commit into
stagingfrom
158-candidate-self-delete-allow
Sep 30, 2026
Merged

datvt243 merged 1 commit into
stagingfrom
158-candidate-self-delete-allow

Conversation

@datvt243

Copy link
Copy Markdown
Owner

Commits going into staging

Summary

DELETE /api/v1/candidate was already implemented and live (commit 32953ed, predates this hub's history) but had zero regression tests. This adds 5 tests covering handlerDelete's not-found short-circuit, the full 9-model cascade delete, CV-PDF cleanup, and project/certificate/award image cleanup. 0 production code changed.

Closes #158.

🤖 Generated with Claude Code

DELETE /api/v1/candidate itself was already implemented and live
(commit 32953ed, predates this hub's history) but had zero regression
tests. Adds 5 tests to candidate.service.test.ts covering
handlerDelete: not-found short-circuit (no deletes fire), full
9-model cascade (generalInformation/Experience/Education/Reference/
Project/Certificate/Award/Application/Profile), CV-PDF unlink when
present/absent, and project/certificate/award image cleanup collected
before the cascade delete. 0 production code changed.

npm test: 29 suites / 160 tests passed.
npm run build: clean.

Sealed node: add-candidate-self-delete
Evidence: agent-hub/evidence/implementer/2026-09-29/add-candidate-self-delete-plan.md,
          agent-hub/evidence/verifier/2026-09-29/add-candidate-self-delete-seal.md

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@datvt243
datvt243 merged commit e38bca5 into staging Sep 30, 2026
3 checks passed
@datvt243
datvt243 deleted the 158-candidate-self-delete-allow branch September 30, 2026 17:45
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