Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
1
import
{ act, renderHook } from
'@testing-library/react'
;
2
import
{ useScrollRestoration } from
'./useScrollRestoration'
;
3
import
{ expectViewSwitch } from
'../lib/scrollRestoration'
;
4
Callers
nothing calls this directly
Calls
14
startOnScrolledFeed
Function · 0.85
traverse
Function · 0.85
setPageHeight
Function · 0.85
scrollUserTo
Function · 0.85
switchView
Function · 0.85
switchPage
Function · 0.85
createEntry
Function · 0.85
emitRouterEvent
Function · 0.85
renderOn
Function · 0.85
setScrollY
Function · 0.70
navigate
Function · 0.70
advanceFrames
Function · 0.70
Tested by
no test coverage detected