Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/streamich/react-use
/ useSetState.test.ts
File
useSetState.test.ts
tests/useSetState.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
useSetState from
'../src/useSetState'
;
3
4
const
setUp = (initialState?: object) => renderHook(() => useSetState(initialState));
Callers
nothing calls this directly
Calls
2
setState
Function · 0.85
setUp
Function · 0.70
Tested by
no test coverage detected