0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-18 02:21:47 -05:00
ghost/test/utils
Naz c7e833545b Extracted webhook mock receiver into a package
refs https://github.com/TryGhost/Toolbox/issues/320

- Following the rule of having minimum code changes in the Ghost core codebase. This module belongs to "framework" along with other testing tools anyway.
- The bump includes a noteworthy changes - the "snapshotManager" was extracted into a separate exposed property of express-test API (maybe should be even it's own separate concept eventually, for now exposing it was enough). "snapshotManager" had to be exposed to be able to pass it to the webhook mock receiver - to use same instance configured with mocha hooks. snapshotManager has to be a singleton in the system to configure snapshots correctly through mochaHooks.
2022-06-03 11:57:39 +08:00
..
fixtures Removed subscriber-related webhook fixtures 2022-05-26 14:45:36 +08:00
mocks Colocated mock-express style utilities 2021-10-20 13:18:35 +01:00
admin-api-test-agent.js Refactored Admin API test agent to use async/await 2022-06-01 17:48:08 +08:00
admin-utils.js Renamed "client" references to "admin" 2022-05-17 09:05:44 +01:00
api.js Fixed handing test suite 2021-12-09 13:52:02 +04: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
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 Extracted webhook mock receiver into a package 2022-06-03 11:57:39 +08:00
e2e-framework.js Added root Ghost server/API test agent 2022-05-20 13:17:00 +08: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
ghost-api-test-agent.js Added root Ghost server/API test agent 2022-05-20 13:17:00 +08: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 Split test utilities out into separate files 2021-02-16 20:17:04 +00:00
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