funmusicplace / mirlo

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

API Tests #18

Open simonv3 opened 1 year ago

simonv3 commented 1 year ago
simonv3 commented 8 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 5 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 1 month ago

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

um, chatgpt 4o wrote these