MCPcopy Create free account
hub / github.com/reactnativecn/react-native-update / createJsonResponse

Function createJsonResponse

src/__tests__/client.test.ts:5–11  ·  view source on GitHub ↗
(payload: unknown)

Source from the content-addressed store, hash-verified

3const importFreshClient = (cacheKey: string) => import(`../client?${cacheKey}`);
4
5const createJsonResponse = (payload: unknown) =>
6 ({
7 ok: true,
8 status: 200,
9 text: async () => JSON.stringify(payload),
10 json: async () => payload,
11 }) as Response;
12
13const setupClientMocks = ({
14 isFirstTime = false,

Callers 1

client.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected