MCPcopy Create free account
hub / github.com/dailydotdev/apps / finishRead

Function finishRead

packages/shared/src/hooks/usePersistentContext.spec.tsx:21–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19describe('usePersistentContext', () => {
20 it('keeps a value set while the first read is still in flight', async () => {
21 let finishRead: (value: number) => void = () => undefined;
22 jest.mocked(get).mockReturnValue(
23 new Promise((resolve) => {
24 finishRead = resolve;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected