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

Function createSelectChain

apps/sim/lib/workflows/lifecycle.test.ts:51–59  ·  view source on GitHub ↗
(result: T)

Source from the content-addressed store, hash-verified

49import { archiveWorkflow } from '@/lib/workflows/lifecycle'
50
51function createSelectChain<T>(result: T) {
52 const chain = {
53 from: vi.fn().mockReturnThis(),
54 innerJoin: vi.fn().mockReturnThis(),
55 where: vi.fn().mockResolvedValue(result),
56 }
57
58 return chain
59}
60
61function createUpdateChain() {
62 return {

Callers 1

lifecycle.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected