Skip to content

test: cover stripe subscription plugin#241

Open
gebibd00-jpg wants to merge 1 commit into
outerbase:mainfrom
gebibd00-jpg:codex/outerbase-stripe-tests
Open

test: cover stripe subscription plugin#241
gebibd00-jpg wants to merge 1 commit into
outerbase:mainfrom
gebibd00-jpg:codex/outerbase-stripe-tests

Conversation

@gebibd00-jpg
Copy link
Copy Markdown

/claim #71

Summary

  • Add focused Vitest coverage for plugins/stripe/index.ts.
  • Cover constructor validation and authless plugin metadata.
  • Cover Stripe API request formatting, bearer auth, form-encoded bodies, and API error propagation.
  • Cover customer lookup/create behavior, product-to-price subscription creation, missing payment-method rejection, route registration, subscribe/unsubscribe persistence, and webhook deletion handling.

Validation

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

This is a test-only coverage slice with no production behavior changes. I did not include a UI demo video because there is no UI surface for this plugin test coverage.

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