MCPcopy Create free account
hub / github.com/tinyplex/tinybase / mockWasmFetches

Function mockWasmFetches

test/vitest/setup.ts:28–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26});
27
28const mockWasmFetches = () => {
29 fetchMock.resetMocks();
30 fetchMock.doMock(async (request) => {
31 if (request.url.startsWith('file://')) {
32 return {
33 status: 200,
34 body: readFileSync(request.url.substring(7)) as any,
35 };
36 }
37 return '';
38 });
39};

Callers 1

setup.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…