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
test(spec-tooling): restore the liveness author-lint's array fan-out assertion (#7079)
`getNested` fans a dotted warn-map path out over an ARRAY container level, so
`navigation.runAction` must check EVERY navigation entry, not just index 0.
That reach lost its only test subject when #6774 flipped
`dashboard.widgets.colorVariant` to `live`: the assertion "fans out over EVERY
widget, not just the first" had nowhere left to stand, and was removed with a
tombstone comment rather than downgraded into a silence check that would pass
on a walk which never looks past `widgets[0]`.
`app.props.navigation.children.runAction` (#4848's spec half — `planned` +
`authorWarn`, because the declared deep-link auto-run slot is validated at
authoring but no shipped shell reads it yet) is now a dotted warned path under
an array container: `navigation` is an array in every authored app. Rebuild the
assertion against it in the deleted test's construction — the warned key on
`navigation[1]` and nowhere on `navigation[0]`, so a walk that stops at the
first element finds `undefined`, emits nothing, and goes red.
Verified by mutation, not by a green suite: with `getNested` temporarily taking
only `c[0]` at an array level, this assertion is the ONLY failure across the
package (1883 passed / 1 failed), so the red is attributable to the broken walk
rather than to collateral damage. Reverting the mutation returns 1884 passed.
Alongside it: a control pinning that index 0 is not a blind spot either, the
`checkItem` one-finding-per-(item, path) contract the length assertion rests
on, and a clean-navigation silence pin. The tombstone comment is replaced by a
pointer to this resolution.
Test-only; `getNested` and the lint's behaviour are untouched.
Fixes#7079
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DveDnLVD1syPGfXryonczk
0 commit comments