Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
Indexed
MCP
copy
Index your code
hub
/
github.com/streamich/react-use
/ useMap.test.ts
File
useMap.test.ts
tests/useMap.test.ts:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
import
{ act, renderHook } from
'@testing-library/react-hooks'
;
2
import
useMap from
'../src/useMap'
;
3
4
const
setUp = <T extends object>(initialMap?: T) => renderHook(() => useMap(initialMap));
Callers
nothing calls this directly
Calls
3
setUp
Function · 0.70
set
Function · 0.70
reset
Method · 0.65
Tested by
no test coverage detected