Ghost/test/utils
Hannah Wolfe 0f42bbeac3
Moved acceptance test utils into own file
- starting and stopping Ghost is part of our rather unloved acceptance test framework
- moving them into their own file to make the different pieces clearer and also to start to make improvements
- first improvement had to happen as an aside - exposing the existingData property via a function and making the API clearer
- this was a weird thing set on module.exports, very hidden and hard to follow
- Note: stopGhost is only used once in the regression/modles/model_posts_spec.js file to make the test run fast enough...
- These tests are effectively "DB integration" tests e.g. non-unit tests because they do use the DB, they need their own framework
2021-06-01 13:17:45 +01:00
..
fixtures 🐛 Fixed incorrect @price.currency value in themes (#12987) 2021-05-27 10:49:35 +05:30
mocks 🔥 Added support for Node 14 2020-10-23 12:57:02 +01:00
acceptance-utils.js Moved acceptance test utils into own file 2021-06-01 13:17:45 +01:00
api.js Extracted promise libs and history into @tryghost/promise 2020-08-11 18:44:21 +01:00
assertions.js Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
configUtils.js Fixed "no-shadow" eslint warning in tests 2020-10-19 17:45:26 +13:00
db-utils.js Cleaned up some unused code in test fixtures 2021-04-26 13:20:07 +01:00
fixture-utils.js Added support for gating content by member labels and products (#12946) 2021-05-10 19:32:11 +01:00
index.js Moved acceptance test utils into own file 2021-06-01 13:17:45 +01:00
old-integration-utils.js Moved theme service to core/server 2021-04-27 15:14:49 +01:00
redirects.js Split test utilities out into separate files 2021-02-16 20:17:04 +00:00
url-service-utils.js Replaced db.ready event with direct call to urlservice 2021-02-23 10:05:59 +00:00
urlUtils.js Moved core/server/lib/url-utils to core/shared/url-utils (#11856) 2020-05-28 11:57:02 +01:00