MCPcopy Index your code
hub / github.com/streamich/react-use / useGetSet.test.ts

File useGetSet.test.ts

tests/useGetSet.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 useGetSet from '../src/useGetSet';
3
4const setUp = (initialValue: any) => renderHook(() => useGetSet(initialValue));

Callers

nothing calls this directly

Calls 4

getFunction · 0.85
setUpFunction · 0.70
setFunction · 0.70
onClickFunction · 0.50

Tested by

no test coverage detected