Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/streamich/react-use
/ useSet.test.ts
File
useSet.test.ts
tests/useSet.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
useSet from
'../src/useSet'
;
3
4
const
setUp = <K>(initialSet?: Set<K>) => renderHook(() => useSet(initialSet));
Callers
nothing calls this directly
Calls
3
add
Function · 0.85
setUp
Function · 0.70
reset
Method · 0.65
Tested by
no test coverage detected