TryGhost
OSS
Ghost
Fixed the labs test-behaviour comment ref BER-3799 The comment claimed all flags in GA_FEATURES, BETA_FEATURES, and ALPHA_FEATURES are globally enabled during E2E tests, which was wrong on three counts: BETA_FEATURES and ALPHA_FEATURES don't exist (the constants are PUBLIC_BETA_FEATURES and PRIVATE_FEATURES), GA_FEATURES are always true everywhere rather than being a test behaviour, and the mechanism lives in enableAllLabsFeatures in test/utils/fixture-utils.js — not labs.js — which enables every key in WRITABLE_KEYS_ALLOWLIST on each fixture init. The comment now names the real mechanism and file, and spells out the consequence: a response key behind a private flag still moves E2E snapshots even though the flag is off in production.
nx run ghost-monorepo:lint:boundaries
Sign in / Sign up
Open main menu
Succeeded
CI Pipeline Execution
nx run ghost-monorepo:lint:boundaries
Click to copy
Linux
4 CPU cores
read-write
access token used
12bf0ff2
29373