Skip to content

test: add Stripe subscription plugin coverage#221

Open
RupteRyuxh wants to merge 1 commit into
outerbase:mainfrom
RupteRyuxh:codex/stripe-plugin-coverage
Open

test: add Stripe subscription plugin coverage#221
RupteRyuxh wants to merge 1 commit into
outerbase:mainfrom
RupteRyuxh:codex/stripe-plugin-coverage

Conversation

@RupteRyuxh
Copy link
Copy Markdown

Summary

  • Add focused Vitest coverage for StripeSubscriptionPlugin initialization and helper behavior.
  • Cover Stripe API request encoding/error propagation, customer lookup/create behavior, product-to-price subscription flow, payment-method guard, cancellation, and subscription persistence through the Starbase data source context.
  • Test-only change; no production behavior changes.

/claim #71

Validation

  • ./node_modules/.bin/vitest run plugins/stripe/index.test.ts -> 11 tests passed
  • ./node_modules/.bin/prettier --check plugins/stripe/index.test.ts -> passed
  • git diff --check -> passed

Non-overlap check

Before starting, I searched open PRs for stripe, StripeSubscriptionPlugin, and plugins/stripe and did not find an existing same-scope coverage PR.

@RupteRyuxh
Copy link
Copy Markdown
Author

Local validation passes on my side:

  • ./node_modules/.bin/vitest run plugins/stripe/index.test.ts -> 11 tests passed
  • ./node_modules/.bin/prettier --check plugins/stripe/index.test.ts -> passed
  • git diff --check -> passed

The GitHub Actions run appears to be waiting for maintainer approval because this PR comes from a fork.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant