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

Function createGroupedSelectChain

apps/sim/lib/workspaces/utils.test.ts:40–46  ·  view source on GitHub ↗
(result: unknown)

Source from the content-addressed store, hash-verified

38}
39
40function createGroupedSelectChain(result: unknown) {
41 const groupBy = vi.fn().mockResolvedValue(result)
42 const where = vi.fn().mockReturnValue({ groupBy })
43 const from = vi.fn().mockReturnValue({ where })
44
45 return { from, where, groupBy }
46}
47
48function createUpdateChain(result: unknown) {
49 const returning = vi.fn().mockResolvedValue(result)

Callers 1

utils.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected