Skip to content

test: cover bulk session import regression#27

Draft
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/missing-test-coverage-9e2e
Draft

test: cover bulk session import regression#27
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/missing-test-coverage-9e2e

Conversation

@cursor

@cursor cursor Bot commented Jul 16, 2026

Copy link
Copy Markdown

Summary

  • Covers the authenticated CLI-to-web import path introduced in PR ⚡ Bulk insert sessions to fix N+1 in import route #14, including user-scoped row mapping and exactly one bulk database upsert.
  • Covers unauthenticated and empty-state short circuits, plus bulk database error propagation.

Test files

  • test/web-import-route.test.ts
  • test/web-sessions-store.test.ts

Regression risk reduced

These tests protect the N+1 fix from reverting to per-session writes and verify imported sessions cannot lose authenticated user scoping. A mutation to per-row writes was confirmed to fail the new route test.

Validation

  • Focused tests: 7 passed
  • Full suite: 42 passed
  • TypeScript build: passed
  • Prettier and diff checks: passed
Open in Web View Automation 

Co-authored-by: Parvez Kose <koseparvez@gmail.com>
@vercel

vercel Bot commented Jul 16, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
polyagent Ready Ready Preview, Comment Jul 16, 2026 10:08am

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