Ghost/ghost/members-api/lib
Simon Backx 80cec29144
Added Stripe Mocker to make testing easier (#16396)
no issue

The Stripe Mocker mocks the Stripe API in memory, to make it much easier
to test subscription flows. Currently it is more a POC to see if it
works well. It probably needs a bit more work to support more scenarios.
- Added new tests for the subscription stats endpoint for 3D secure +
free trial flows using the new Stripe Mocker
- Updated members admin api tests to use Stripe Mocker (+ added new test
for deleting members with Stripe cancellation)
- Some tests called mockStripe at the beginning, but that method did
nothing apart from disabling network (which is the default now), then
they mocked Stripe inside the tests file... so I've removed those
because those conflict with the new mocker that is enabled when calling
mockStripe. We'll need to port those over later.
2023-03-10 18:43:35 +01:00
..
controllers 🐛 Fixed broken redemption count for offers (#15954) 2022-12-07 14:30:11 +05:30
repositories Added Stripe Mocker to make testing easier (#16396) 2023-03-10 18:43:35 +01:00
services Upgraded got package from v9.6.0 to v11.8.6 (#16261) 2023-02-20 09:33:11 -06:00
MembersAPI.js Added Stripe Mocker to make testing easier (#16396) 2023-03-10 18:43:35 +01:00