MCPcopy Index your code
hub / github.com/simstudioai/sim / mockResponse

Function mockResponse

apps/sim/tools/workflow/executor.test.ts:248–254  ·  view source on GitHub ↗
(body: any, status = 200)

Source from the content-addressed store, hash-verified

246 const transformResponse = workflowExecutorTool.transformResponse!
247
248 function mockResponse(body: any, status = 200): Response {
249 return {
250 ok: status >= 200 && status < 300,
251 status,
252 json: async () => body,
253 } as unknown as Response
254 }
255
256 it.concurrent('should parse standard format response', async () => {
257 const body = {

Callers 1

executor.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected