Skip to content

fix(people): fix offboarding test spec missing mocks#2895

Merged
Marfuen merged 1 commit into
mainfrom
mariano/cs-312-cubic-review-fixes-7
May 21, 2026
Merged

fix(people): fix offboarding test spec missing mocks#2895
Marfuen merged 1 commit into
mainfrom
mariano/cs-312-cubic-review-fixes-7

Conversation

@Marfuen
Copy link
Copy Markdown
Contributor

@Marfuen Marfuen commented May 21, 2026

Summary

Fixes P0 test spec failures — missing mocks caused TypeErrors at runtime:

  • Add member, attachment, $transaction mocks to mockDb
  • Add getPresignedDownloadUrl mock to mockAttachmentsService
  • Mock db.attachment.findMany for batched checklist/revocation queries
  • Add member.findFirst mock to all revokeVendorAccess test cases
  • Add count/createMany to revocation mock for revokeAllVendorAccess

All 21 tests pass.

Test plan

  • npx jest src/offboarding-checklist/offboarding-checklist.service.spec.ts — 21/21 pass

🤖 Generated with Claude Code


Summary by cubic

Fixes failing offboarding checklist tests by adding missing mocks in @db and the attachments service, and adds cursor-based batching to getAutomationHeaders to avoid heavy evidence queries. This stabilizes CS-312 offboarding/evidence flows, and all 21 specs now pass.

Written for commit df71b65. Summary will update on new commits. Review in cubic

@vercel vercel Bot temporarily deployed to Preview – app May 21, 2026 15:52 Inactive
@vercel
Copy link
Copy Markdown

vercel Bot commented May 21, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
comp-framework-editor Ready Ready Preview, Comment May 21, 2026 3:54pm
2 Skipped Deployments
Project Deployment Actions Updated (UTC)
app Skipped Skipped May 21, 2026 3:54pm
portal Skipped Skipped May 21, 2026 3:54pm

Request Review

@vercel vercel Bot temporarily deployed to Preview – portal May 21, 2026 15:52 Inactive
@linear
Copy link
Copy Markdown

linear Bot commented May 21, 2026

CS-312

Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Re-trigger cubic

- add member, attachment, $transaction mocks to mockDb
- add getPresignedDownloadUrl mock to attachmentsService
- mock db.attachment.findMany for batched checklist/revocation queries
- add member.findFirst mock to revokeVendorAccess tests

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@Marfuen
Copy link
Copy Markdown
Contributor Author

Marfuen commented May 21, 2026

@cubic-dev-ai re-review this

@cubic-dev-ai
Copy link
Copy Markdown
Contributor

cubic-dev-ai Bot commented May 21, 2026

@cubic-dev-ai re-review this

@Marfuen I have started the AI code review. It will take a few minutes to complete.

Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 2 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Re-trigger cubic

@Marfuen Marfuen merged commit b8bf01d into main May 21, 2026
11 checks passed
@Marfuen Marfuen deleted the mariano/cs-312-cubic-review-fixes-7 branch May 21, 2026 16:00
@claudfuen
Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 3.60.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants