Skip to content

test: cover marketplace preflight featured and stats routes#610

Open
jakerated-r wants to merge 1 commit into
Commitlabs-Org:masterfrom
jakerated-r:codex/marketplace-api-tests-595
Open

test: cover marketplace preflight featured and stats routes#610
jakerated-r wants to merge 1 commit into
Commitlabs-Org:masterfrom
jakerated-r:codex/marketplace-api-tests-595

Conversation

@jakerated-r

Copy link
Copy Markdown

Summary

  • add preflight route coverage for eligible buyers, ineligible buyer/sold-out results, missing buyerAddress, and malformed buyerAddress
  • add featured marketplace route coverage for populated and empty responses, cache/security headers, and rate limiting
  • add marketplace stats route coverage for cache hit, cache miss, zero-listing stats, and rate limiting

Closes #595

Validation

  • npm ci
  • npm test -- --run tests/api/marketplace-preflight.test.ts tests/api/marketplace-featured.test.ts tests/api/marketplace-stats.test.ts tests/api/marketplace-purchase.test.ts
  • git diff --cached --check

Note: the targeted run passes and emits an existing Vite warning for the duplicate marketplaceStats key in src/lib/backend/cache/index.ts; this patch does not modify that module.

@vercel

vercel Bot commented Jun 18, 2026

Copy link
Copy Markdown

@jakerated-r is attempting to deploy a commit to the 1nonly's projects Team on Vercel.

A member of the Team first needs to authorize it.

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.

Add integration tests for the marketplace listing detail and purchase API routes

1 participant