MCPcopy 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

1import { act, renderHook } from '@testing-library/react-hooks';
2import useSetState from '../src/useSetState';
3
4const setUp = (initialState?: object) => renderHook(() => useSetState(initialState));

Callers

nothing calls this directly

Calls 2

setStateFunction · 0.85
setUpFunction · 0.70

Tested by

no test coverage detected