MCPcopy 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

1import { act, renderHook } from '@testing-library/react-hooks';
2import useSet from '../src/useSet';
3
4const setUp = <K>(initialSet?: Set<K>) => renderHook(() => useSet(initialSet));

Callers

nothing calls this directly

Calls 3

addFunction · 0.85
setUpFunction · 0.70
resetMethod · 0.65

Tested by

no test coverage detected