Files
orca/config/scripts
Jinwoo Hong 5e5d731870 test(config): assert the target route's chunk was never fetched, not that no chunk arrived after the tap (#21922)
* test(config): name the chunk the handoff check says is absent

The three handed-off cases snapshotted the loaded scripts the moment the
page returned and then asserted nothing new arrived after the click. The
opener's own route chunk can still be in flight at that moment, so under
full-suite load it lands afterwards, counts as new, and reds a case whose
rule held: the notify was posted and the document had not moved.

They assert what the comment always claimed instead -- the target route's
own chunk was never fetched -- resolved from the build's route-to-chunk
map, since the bundler hashes chunk names and there is nothing in a URL
to recognise a route by. Being about one named chunk over the whole run
rather than a delta, it cannot be raced by an unrelated arrival.

An absence needs a presence precondition, so `beforeAll` fails if that
route has no chunk; without it a typo would pass all three.

Red-first control: with the coverage test in `route-handoff.web.ts`
forced to keep the hop local, the chunk assertion alone fails and names
the tasks chunk it fetched. Found by the C7.5b lane.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb

* test(config): judge the absent chunk on every status, not only 200

CodeRabbit: the three absence assertions filtered the 200-only list, so a
request for the tasks chunk answered 404 or 500 left no trace in it and
the assertion passed on a fetch that did happen -- the one shape where a
page that tried to render the target reads as a page that never asked.

They read `jsResponses` now, which carries every JavaScript response with
its status, and a request for that chunk fails the case whatever came
back. The 200-only list had no other reader, so it is gone rather than
left as a second collection to pick the wrong one from.

Re-proved on this form, with the coverage test forced to keep the hop
local: the chunk assertion alone reds and now prints the status beside the
path.

Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb
2026-09-21 03:02:32 -04:00
..
2026-05-15 05:44:25 -04:00