Ghost/test/utils
Kevin Ansfield f49f7699aa
Enabled all labs flags when testing (#13036)
no issue

Shows impact of new code behind labs flags through the existing acceptance/regression tests. Allows for existing tests to be updated to match new behaviour rather than requiring separate tests where individual flags are enabled. Should result in minimal test updating once code reaches GA.

- adds a forced `'labs:enabled'` fixture op that edits the `labs` setting to enable all flags then restarts the settings service to pick up the new setting
- modifies labs service to not remove ALPHA_FEATURE labs settings when running in a testing environment
2021-06-10 12:54:34 +01:00
..
fixtures Swapped to American English spellings 2021-06-09 16:39:06 +01:00
mocks 🔥 Added support for Node 14 2020-10-23 12:57:02 +01:00
acceptance-utils.js Swapped to American English spellings 2021-06-09 16:39:06 +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 Enabled all labs flags when testing (#13036) 2021-06-10 12:54:34 +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 Fixed config utils to return a usable instance of config 2021-06-01 17:35:10 +04:00