MCPcopy
hub / github.com/ecyrbe/zodios / createSampleResponse

Function createSampleResponse

src/plugins/zod-validation.plugin.test.ts:310–322  ·  view source on GitHub ↗
(
    { headers } = { headers: { "content-type": "application/json" } }
  )

Source from the content-addressed store, hash-verified

308 });
309
310 const createSampleResponse = (
311 { headers } = { headers: { "content-type": "application/json" } }
312 ) =>
313 ({
314 data: {
315 first: "123",
316 second: 111,
317 },
318 status: 200,
319 headers: headers,
320 config: {},
321 statusText: "OK",
322 } as unknown as AxiosResponse);
323
324 const api = apiBuilder({
325 path: "/parse",

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected