Skip to content

fix(server): align integration fixtures with composable plan options - #327

Merged
tomber merged 2 commits into
devfrom
fix/integration-tests-composable-plans
Aug 5, 2026
Merged

fix(server): align integration fixtures with composable plan options#327
tomber merged 2 commits into
devfrom
fix/integration-tests-composable-plans

Conversation

@tomber

@tomber tomber commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Update @solvapay/test-utils createTestPlan to POST composable options[] (cadence/charge/limit/default) instead of legacy plan scalars
  • Put the credit-prepaid fixture on its own product so checkLimits is not shadowed by the free default plan
  • Narrow the multi-currency suite to single-currency paid-plan payment intents (plan-level pricingOptions is gone)

Verified locally against the running platform stack at http://localhost:3010: 46 passed | 2 skipped.

Test plan

  • pnpm -F @solvapay/server test:integration against local backend (USE_REAL_BACKEND=true, SOLVAPAY_API_BASE_URL=http://localhost:3010)
  • Confirm CI unit gates still pass (no live-backend dependency)

Made with Cursor

tomber and others added 2 commits August 5, 2026 12:59
Plan create now requires options[]; update test-utils and integration
suites so they exercise the live backend instead of the legacy scalars.

Co-authored-by: Cursor <cursoragent@cursor.com>
Bring generated.ts in line with the pricing-v2 OpenAPI: CreatePlan
requests use required options[] and drop legacy plan scalars.

Co-authored-by: Cursor <cursoragent@cursor.com>
@tomber
tomber merged commit ff6914e into dev Aug 5, 2026
2 checks passed
@tomber
tomber deleted the fix/integration-tests-composable-plans branch August 5, 2026 11:06
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