test(candidate): add regression coverage for self-delete cascade (#158) - #175
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Commits going into staging
Summary
DELETE /api/v1/candidatewas already implemented and live (commit32953ed, predates this hub's history) but had zero regression tests. This adds 5 tests coveringhandlerDelete'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