MCPcopy 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

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

Callers

nothing calls this directly

Calls 3

setUpFunction · 0.70
setFunction · 0.70
resetMethod · 0.65

Tested by

no test coverage detected