0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00
ghost/test/utils
Hannah Wolfe 409dc3b534
Added frontend key to ghost_head for portal (#14782)
refs: https://github.com/TryGhost/Team/issues/1599
refs: f3d5d9cf6b

- this commit adds the concept of a frontend data service, intended for passing data to the frontend from the server in a clean way. This is the start of a new & improved pattern, to hopefully reduce coupling
- the newly added internal frontend key is then exposed through this pattern so that the frontend can make use of it
- the first use case is so that portal can use it to talk to the content API instead of having weird endpoints for portal
- this key will also be used by other internal scripts in future, it's public and therefore safe to expose, but it's meant for internal use only and therefore is not exposed in a generic way e.g. as a helper
2022-05-11 17:34:31 +01:00
..
fixtures Added frontend key to ghost_head for portal (#14782) 2022-05-11 17:34:31 +01:00
mocks Colocated mock-express style utilities 2021-10-20 13:18:35 +01:00
admin-api-test-agent.js Extracted TestAgent class for test utils 2022-02-21 11:19:07 +07:00
admin-utils.js Improved dev tooling (#13118) 2021-07-05 20:02:22 +01:00
api.js Fixed handing test suite 2021-12-09 13:52:02 +04:00
assertions.js
configUtils.js
content-api-test-agent.js Added ContentAPITestAgent 2022-02-23 17:08:56 +07:00
db-utils.js Cleaned newsletter e2e tests, improved framework 2022-05-06 12:15:12 +01:00
e2e-framework-mock-manager.js Fixed mockLabs disabling all other flags (#14621) 2022-04-28 10:55:20 +02:00
e2e-framework.js Renamed settings index.js to settings-service.js 2022-05-10 20:55:31 +01:00
e2e-utils.js Renamed settings index.js to settings-service.js 2022-05-10 20:55:31 +01:00
fixture-utils.js Renamed settings index.js to settings-service.js 2022-05-10 20:55:31 +01:00
index.js Removed support for single "author" shorthand in fixtures 2022-05-09 20:43:19 +08:00
members-api-test-agent.js Extracted TestAgent class for test utils 2022-02-21 11:19:07 +07:00
overrides.js Revert "Added global setup to reset DB before test run" 2022-03-16 21:10:49 +00:00
redirects.js
test-agent.js Removed @tryghost/jest-snapshot dependency 2022-02-22 09:41:58 +07:00
url-service-utils.js Removed unused parameter from isFinished method 2021-11-24 05:32:20 +13:00
urlUtils.js Update dependency @tryghost/url-utils to v3 (#14705) 2022-05-05 16:10:18 +01:00