MCPcopy
hub / github.com/simstudioai/sim / makeChain

Function makeChain

apps/sim/lib/billing/webhooks/outbox-handlers.test.ts:24–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22
23vi.mock('@sim/db', () => {
24 const makeChain = () => {
25 const chain: Record<string, unknown> = {}
26 chain.from = () => chain
27 chain.where = () => chain
28 chain.limit = () => Promise.resolve(queryQueue.value.shift() ?? [])
29 return chain
30 }
31 return { db: { select: () => makeChain() } }
32})
33

Callers 1

Calls 2

shiftMethod · 0.80
resolveMethod · 0.65

Tested by

no test coverage detected