next.js
9c053332 - [test]: convert prefetching tests to be segmentCache compatible (#84521)

Commit
95 days ago
[test]: convert prefetching tests to be segmentCache compatible (#84521) Refactors some older prefetching tests to be compatible with `clientSegmentCache`. The old tests were too tightly coupled to router implementation details. Some of the ones that don't make sense to convert were removed (for ex, asserting on prefetch cache seeding behavior, or fetch priority of "high", as fetch priority is managed differently with the new router). This refactors the tests to leverage the `act` util from `segment-cache` test suites, and implemented the accordion behavior to more granularly control when prefetches are dispatched. I copied those implementations for now since we don't have a global util for it.
Author
Parents
Loading