Added aliases to update test snapshots

closes https://github.com/TryGhost/Toolbox/issues/248

- When using the framework it was laways confusing to remember which variable would trigger the snapshot updates. Having aliases to most common "typos" makes the DX way better.
- List of updated variables triggering all snapshot updates:

SNAPSHOT_UPDATE
UPDATE_SNAPSHOT
SNAPSHOTS_UPDATE
UPDATE_SNAPSHOTS

- Additionally this bump automatically fixes missing trailing slashes in URLs used in tests
This commit is contained in:
Naz 2022-03-22 17:47:14 +08:00
parent 3c9531452c
commit f3f4501552
2 changed files with 20 additions and 11 deletions

View File

@ -188,7 +188,7 @@
"devDependencies": {
"@lodder/grunt-postcss": "3.1.1",
"@playwright/test": "1.20.0",
"@tryghost/express-test": "0.6.1",
"@tryghost/express-test": "0.7.0",
"c8": "7.11.0",
"coffeescript": "2.6.1",
"cssnano": "5.1.5",

View File

@ -1880,17 +1880,26 @@
"@tryghost/ignition-errors" "^0.1.0"
lodash "^4.17.21"
"@tryghost/errors@^1.2.6":
version "1.2.6"
resolved "https://registry.yarnpkg.com/@tryghost/errors/-/errors-1.2.6.tgz#4cb15ec63de4e0fe632ce6fa84191e42c708371c"
integrity sha512-9kNE9z9CIKjXKNWS03/pH8w9y1bTaLDTt1gIUQmBNlyS3zP56F1uJkz88Y5ySdp1Rbuee1UG+Kc8/L2NJQxsBg==
dependencies:
lodash "^4.17.21"
utils-copy-error "1.0.1"
uuid "^8.3.2"
"@tryghost/express-dynamic-redirects@0.2.6":
version "0.2.6"
resolved "https://registry.yarnpkg.com/@tryghost/express-dynamic-redirects/-/express-dynamic-redirects-0.2.6.tgz#2c73d424a1ff5abda8b202e9931908071e59932a"
integrity sha512-DmjgIt3V9jya9nfAi2aiPozMKcA8SDXc9VKqSD+nVRE8GZbEevx8ZPxdVBhpARnW/acVSzhxwwUYwXrgbH73zw==
"@tryghost/express-test@0.6.1":
version "0.6.1"
resolved "https://registry.yarnpkg.com/@tryghost/express-test/-/express-test-0.6.1.tgz#88e69a0ca43ead69b27af508c2f0c10088c859a1"
integrity sha512-jJeTefbERTKXxKJv7n0nquJFZKwB06gxFTidM3zN5vCLEpgyJfxYx8WMQMFh3nvHy74bqOToBOfF81tCgQlwEA==
"@tryghost/express-test@0.7.0":
version "0.7.0"
resolved "https://registry.yarnpkg.com/@tryghost/express-test/-/express-test-0.7.0.tgz#d0102f9be5033614a47059c7c4e0b8bff850092a"
integrity sha512-2Uez5eSVr5UJGqs5ESizTqhSTkJdTy91BJfBROUuWFD9i0OcZDmo5YGcqTEw3iGtEQhmMUlAinX+Ifwy277Yiw==
dependencies:
"@tryghost/jest-snapshot" "^0.3.4"
"@tryghost/jest-snapshot" "^0.3.6"
cookiejar "^2.1.3"
reqresnext "^1.7.0"
@ -1929,12 +1938,12 @@
optionalDependencies:
sharp "^0.30.0"
"@tryghost/jest-snapshot@^0.3.4":
version "0.3.4"
resolved "https://registry.yarnpkg.com/@tryghost/jest-snapshot/-/jest-snapshot-0.3.4.tgz#7704e45395196e0a176bcd0e217744b78e38d749"
integrity sha512-w3uChMwmh5smTncOCq9Unan5lA+8wbxchbKwFqgTZf8gakd/DROoX2fN3GR6S2s789s/fL8+2YRDjaVdUdYovw==
"@tryghost/jest-snapshot@^0.3.6":
version "0.3.6"
resolved "https://registry.yarnpkg.com/@tryghost/jest-snapshot/-/jest-snapshot-0.3.6.tgz#e97295b9008ddcc12ce3402dc9fc2995d7be576b"
integrity sha512-G9K2hdsMa4cKhCYKdUv5eOCcZGCQe7fRS4kL1Duj/lvsKTI2jO8JWSfhCgMOL6vUd2XgGSWRQ1W4cna42SeqbQ==
dependencies:
"@tryghost/errors" "^1.2.4"
"@tryghost/errors" "^1.2.6"
expect "^27.5.0"
jest-snapshot "^27.5.0"