Ghost/test/unit
Naz 99a2f12cb7 Simplified yaml parser to have fewer dependencies
refs https://linear.app/tryghost/issue/CORE-35/refactor-route-and-redirect-settings
refs 5715aa2155 (diff-48644be82a9b957e5e627bf7b0f2f73cdb1d63851ffad68c7c178c5886495bb8R52-R57)

- Simplified the yaml parser implementation to take in a single parameter, this move will allove to simplify the logic in the route settings + opens a door to unify handling with redirects yaml parsing!
- We loose the "filename" from the error information but that was a generic "routes.yaml" anyway and would be thrown only when somebody uploaded a routes.yaml file (no real added value).
- The debug statement should be moved to contain related filepath+other info to the calling module instead
- An additional error handler was borrowed from the redirects yaml parsing logic that was introduced in a referenced commit - it still makes sense to keep it for routes.yaml configuration
2021-09-30 17:29:43 +02:00
..
adapters Refactored scheduling default test to use nock 2021-07-15 14:07:11 +04:00
api Fixed failing unit test 2021-08-13 10:22:11 +04:00
apps Renamed tests to .test.js & updated commands 2021-07-06 20:45:01 +01:00
data Moved routing setting hash calculation to backend 2021-09-28 04:59:41 +13:00
helpers Divided f/e proxy into true proxy + rendering service 2021-09-29 13:10:14 +01:00
lib Blocked 0.* IP addresses when making oembed requests 2021-09-14 11:35:14 +01:00
meta Renamed tests to .test.js & updated commands 2021-07-06 20:45:01 +01:00
models Fixed settings tests due to Bookshelf update 2021-09-10 16:59:11 +01:00
server Renamed tests to .test.js & updated commands 2021-07-06 20:45:01 +01:00
services Simplified yaml parser to have fewer dependencies 2021-09-30 17:29:43 +02:00
shared Renamed tests to .test.js & updated commands 2021-07-06 20:45:01 +01:00
web Made custom-redirects middleware testable 2021-09-28 22:00:32 +02:00