MCPcopy Create free account
hub / github.com/dailydotdev/apps / useScrollRestoration.spec.ts

File useScrollRestoration.spec.ts

packages/shared/src/hooks/useScrollRestoration.spec.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { act, renderHook } from '@testing-library/react';
2import { useScrollRestoration } from './useScrollRestoration';
3import { expectViewSwitch } from '../lib/scrollRestoration';
4

Callers

nothing calls this directly

Calls 14

startOnScrolledFeedFunction · 0.85
traverseFunction · 0.85
setPageHeightFunction · 0.85
scrollUserToFunction · 0.85
switchViewFunction · 0.85
switchPageFunction · 0.85
createEntryFunction · 0.85
emitRouterEventFunction · 0.85
renderOnFunction · 0.85
setScrollYFunction · 0.70
navigateFunction · 0.70
advanceFramesFunction · 0.70

Tested by

no test coverage detected