MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / send

Function send

graph-ui/src/browser-ai/browser-ai.worker.test.ts:42–42  ·  view source on GitHub ↗
(request: BrowserWorkerRequest)

Source from the content-addressed store, hash-verified

40let scope: { location: { href: string }; postMessage: ReturnType<typeof vi.fn>; onmessage?: (event: MessageEvent<BrowserWorkerRequest>) => Promise<void> };
41let fetchMock: ReturnType<typeof vi.fn>;
42const send = (request: BrowserWorkerRequest) => scope.onmessage!({ data: request } as MessageEvent<BrowserWorkerRequest>);
43const replies = (): BrowserWorkerResponse[] => scope.postMessage.mock.calls.map(call => call[0]);
44beforeEach(async () => {
45 vi.resetModules(); vi.clearAllMocks(); fake.count = 23; fake.ngramInputs = [];

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected