Ghost/test/utils
Hannah Wolfe 069c344495
Switched new e2e-framework to use our own snapshot lib (#14137)
refs TryGhost/Toolbox#158
refs TryGhost/Toolbox#129 (comment)

We now have @tryghost/jest-snapshot - a suite of utilities for using snapshots with mocha, should, etc
The @tryghost/express-test lib also uses it to provide chained snapshot assertions

This library was created because all the existing implementations I could find, including the in use @ethanresnick/chai-jest-snapshot
didn't properly support property matching. @ethanresnick/chai-jest-snapshot supposedly supported it, but the implementation was incorrect
and frequently lead to false test passes.

This library also has (after some back and forth) path resolution so that snapshots can live in a local __snapshots__ folder
2022-02-08 14:33:19 +00:00
..
fixtures Updated casper test fixture to latest version 2022-01-25 14:10:53 +00:00
mocks Colocated mock-express style utilities 2021-10-20 13:18:35 +01: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 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 Restored quick database reset method via table truncation 2022-02-07 21:27:10 +01:00
e2e-framework-mock-utils.js Fixed IDE derp with requring assert 2022-02-07 19:45:33 +00:00
e2e-framework.js Switched new e2e-framework to use our own snapshot lib (#14137) 2022-02-08 14:33:19 +00:00
e2e-utils.js Restored quick database reset method via table truncation 2022-02-07 21:27:10 +01:00
fixture-utils.js Fixed error wording in fixture-utils 2021-12-07 11:12:10 +04:00
index.js Added extra debug to test utilities 2021-11-19 10:47:21 +00:00
overrides.js Switched new e2e-framework to use our own snapshot lib (#14137) 2022-02-08 14:33:19 +00:00
redirects.js Split test utilities out into separate files 2021-02-16 20:17:04 +00:00
test-agent.js Updated members regression tests to use e2e framework (#14130) 2022-02-07 17:15:55 +00:00
url-service-utils.js Removed unused parameter from isFinished method 2021-11-24 05:32:20 +13:00
urlUtils.js Updated test UrlUtils to use canary by default 2022-01-21 15:12:27 +00:00