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

File useCounter.test.ts

tests/useCounter.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 useCounter from '../src/useCounter';
3
4const setUp = (initialValue?: number, max: number | null = null, min: number | null = null) =>

Callers

nothing calls this directly

Calls 4

getFunction · 0.85
setUpFunction · 0.70
setFunction · 0.70
resetFunction · 0.70

Tested by

no test coverage detected