funmusicplace / mirlo

An open source audio distribution and patronage platform
https://mirlo.space/
GNU General Public License v3.0
120 stars 21 forks source link

API Tests #18

Open simonv3 opened 1 year ago

simonv3 commented 1 year ago
simonv3 commented 7 months 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.

georgkrause commented 4 months ago

id/subscribe (requires mocking stripe)

Stripe provides a testing mode we could use for this: https://docs.stripe.com/test-mode?

humancuration commented 2 weeks ago

https://github.com/humancuration/mirlo/tree/main/test/new_tests

um, chatgpt 4o wrote these