mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-01 05:50:35 +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 |
||
---|---|---|
.. | ||
e2e-api | ||
e2e-browser | ||
e2e-frontend | ||
e2e-server | ||
integration | ||
regression | ||
unit | ||
utils | ||
.eslintignore | ||
.eslintrc.js | ||
.jshintrc |