You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(scripts): make check-cli-command-ids' literal-declaration self-test able to fail (#12759)
The case pinning that ROOT_DIR_WATCH_HINTS is spelled as a source literal
searched the WHOLE file for a needle it spelled inline, so `includes` found
that needle in the assertion itself. Rewriting the declaration into the
computed form the case exists to reject left the self-test fully green --
38 of 38 cases passing -- while `extractWatchHints` recovered no hint at all
and the gate went unnameable by every dispatch brief.
Scope the search to the declaration statement and derive the needle from the
declared values. Assembling the needle alone is not sufficient here: unlike
check-objectql-double-limit.mjs, this file spells the hint a third time in the
runtime-value case below, so a whole-file search finds that copy and stays
green on the computed form.
Claude-Session: https://claude.ai/code/session_01PfaSTikked61BkcsB5Rn69
Co-authored-by: Claude <noreply@anthropic.com>
0 commit comments