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

Function get

apps/sim/app/api/chat/[identifier]/otp/route.test.ts:168–179  ·  view source on GitHub ↗
(target, prop)

Source from the content-addressed store, hash-verified

166 const chainable: Record<string, unknown> = {}
167 const proxy: Record<string, unknown> = new Proxy(chainable, {
168 get(target, prop) {
169 if (prop === 'parse') return mockZodParse
170 if (prop === 'safeParse') {
171 return (data: unknown) => ({ success: true, data })
172 }
173 if (prop === 'then') return undefined
174 if (typeof prop === 'symbol') return Reflect.get(target, prop)
175 if (!(prop in target)) {
176 target[prop as string] = vi.fn().mockReturnValue(proxy)
177 }
178 return target[prop as string]
179 },
180 })
181 const makeChain = vi.fn(() => proxy)
182 return {

Callers

nothing calls this directly

Calls 1

getMethod · 0.65

Tested by

no test coverage detected