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

Function makeSelectChain

apps/sim/lib/core/outbox/service.test.ts:72–81  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

70 }
71
72 const makeSelectChain = () => {
73 const chain: Record<string, unknown> = {}
74 const self = () => chain
75 chain.from = vi.fn(self)
76 chain.where = vi.fn(self)
77 chain.orderBy = vi.fn(self)
78 chain.limit = vi.fn(self)
79 chain.for = vi.fn(async () => state.claimedRows.splice(0, 1))
80 return chain
81 }
82
83 const mockDb = {
84 insert: vi.fn(() => {

Callers 1

service.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected