Ghost/test/regression
Fabien 'egg' O'Carroll 1294e3f92c
Replaced all usage of member models with members-api (#12117)
no-issue

* Added stripeSubscriptions relation to member model

This allows us to fetch the subscriptions for a member via standard
model usage, e.g. `withRelated: ['stripeSubscriptions']` rather than
offloading to loops and `decorateWithSubscriptions` functions, this is
more performant and less non-standard than the existing method.

* Updated serialize methods to match existing format

The current usage of `decorateWithSubscriptions` and the usage of
members throughout the codebase has a subscriptions array on a stripe
object on the member, this ensures that when we serialize members to
JSON that we are using the same format.

There is definitely room to change this in future, but this is an
attempt to create as few breaking changes as possible.

* Installed @tryghost/members-api@0.26.0

This includes the required API changes so that everywhere can use
members-api directly rather than models and/or helper methods
2020-08-12 14:17:44 +01:00
..
api Addes sort order support for imported members 2020-08-12 16:34:15 +12:00
exporter Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
importer 🐛 Fixed importing Stripe Plans with amount 0 (#12062) 2020-07-20 14:59:23 +02:00
migrations Fixed broken regression tests from #11861 2020-06-02 16:20:57 +02:00
models Replaced all usage of member models with members-api (#12117) 2020-08-12 14:17:44 +01:00
settings Added new stripe webhook settings (#12028) 2020-07-10 16:26:06 +02:00
site 🐛 Fixed edit link for staff members 2020-07-21 12:28:50 +01:00
update-check Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
README.md Move tests from core to root (#11700) 2020-03-30 16:26:47 +01:00

Regression Tests

This folder should contain packages which we test in a cron job once per day. These tests should ensure that we don't break Ghost.

The goal is that most of these packages use Ghost's API's to test behaviours, otherwise transform the tests into unit tests.