Open simonv3 opened 1 year ago
One thought for testing the stripe required endpoints is to text the exported function directly, not as a supertest, but rather as a function test. Then mock the stripe API to let it create the things we need.
id/subscribe (requires mocking stripe)
Stripe provides a testing mode we could use for this: https://docs.stripe.com/test-mode?
https://github.com/humancuration/mirlo/tree/main/test/new_tests
um, chatgpt 4o wrote these