Ghost/test/regression
Naz 0962b3ed45 Made custom-redirects middleware testable
refs https://linear.app/tryghost/issue/CORE-35/refactor-route-and-redirect-settings
refs 7528ec8c3b

- The way the custom redirects middleware was organized made it extremely hard to unit test it (had to stub the redirects service methods etc). With a new organization it's possible to provide needed redirects configs to the method which makes the actual redirects Router logic testable and the code less coupled with redirects services
- This was meant to be an attempt to extract more of the slow redirects regression tests, which failed. Instead found this weak spot that could be improved and gained:
- shaved 4s of time as two slow regression test cases are now gone
- there's now a base to build upon when getting more coverage for the custom redirects middleware
2021-09-28 22:00:32 +02:00
..
api Made custom-redirects middleware testable 2021-09-28 22:00:32 +02:00
exporter Added custom_theme_settings table/model (#13327) 2021-09-23 11:51:18 +01:00
importer Renamed tests to .test.js & updated commands 2021-07-06 20:45:01 +01:00
migrations Added custom theme settings browse/edit permissions for Administrators (#13361) 2021-09-27 09:59:09 +01:00
models Moved default settings population test to regression suite 2021-09-01 15:23:57 +04:00
settings Renamed tests to .test.js & updated commands 2021-07-06 20:45:01 +01:00
site Moved validate&yaml-parser modules to backend 2021-09-28 04:59:41 +13:00
README.md Updated acceptance&regression test suite readmes 2021-01-22 16:42:02 +13:00

Regression Tests

These tests should ensure that we don't break Ghost for all available APIs.

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