mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-05 09:50:34 +03:00
fd0a3e80ae
refs https://github.com/TryGhost/Toolbox/issues/215 - Ghost tests had difficulty running sometimes when the versions for jest-snapshot package did not match in Ghost and @tryghost/express-test - This is the error that was showing up: `IncorrectUsageError: Unable to run snapshot tests, current test was not configured` - The reason why snapshot tests were misconfigured was multiple instances of SnapshotManager, which broke the singleton pattern - Having jest-snapshot embeded within express-test makes sure the versions stay the same across the clients - The version bump also introduces passing "queryParams" parameter into the Agent constructor - enables configuring query parameters that would appear in each agent's request. Example usecase - Content API authentication parameter "key" would be nice to "remember" and add to every request URL |
||
---|---|---|
.. | ||
fixtures | ||
mocks | ||
admin-api-test-agent.js | ||
admin-utils.js | ||
api.js | ||
assertions.js | ||
configUtils.js | ||
db-utils.js | ||
e2e-framework-mock-manager.js | ||
e2e-framework.js | ||
e2e-utils.js | ||
fixture-utils.js | ||
index.js | ||
members-api-test-agent.js | ||
overrides.js | ||
redirects.js | ||
test-agent.js | ||
url-service-utils.js | ||
urlUtils.js |