Skip to content

Conversation

@michaelshimeles
Copy link
Collaborator

  • Add src/component/public.test.ts with tests for:

    • Customer creation, retrieval, and updates
    • Subscription creation and lifecycle management
    • Payment handling and customer linking
    • Metadata updates for subscriptions and payments
    • Lookup by userId and orgId
  • Add src/client/setup.test.ts with mock components setup

  • Update src/client/index.test.ts to match current API:

    • Test client instantiation with component
    • Test STRIPE_SECRET_KEY option handling
    • Verify all expected methods exist on StripeSubscriptions class
    • Test registerRoutes export

- Add src/component/public.test.ts with tests for:
  - Customer creation, retrieval, and updates
  - Subscription creation and lifecycle management
  - Payment handling and customer linking
  - Metadata updates for subscriptions and payments
  - Lookup by userId and orgId

- Add src/client/setup.test.ts with mock components setup

- Update src/client/index.test.ts to match current API:
  - Test client instantiation with component
  - Test STRIPE_SECRET_KEY option handling
  - Verify all expected methods exist on StripeSubscriptions class
  - Test registerRoutes export
@michaelshimeles michaelshimeles force-pushed the feat/add-component-tests branch from 719b7a1 to a8aa62f Compare December 2, 2025 04:00
@michaelshimeles michaelshimeles merged commit 27a4040 into master Dec 2, 2025
1 check passed
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.

3 participants