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

Function terminalBuilder

packages/testing/src/mocks/database.mock.ts:107–115  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

105const execute = vi.fn(() => Promise.resolve([] as unknown[]))
106
107const terminalBuilder = () => {
108 const thenable: any = Promise.resolve([] as unknown[])
109 thenable.limit = limit
110 thenable.orderBy = orderBy
111 thenable.returning = returning
112 thenable.groupBy = groupBy
113 thenable.for = forClause
114 return thenable
115}
116
117const orderBy = vi.fn(terminalBuilder)
118const having = vi.fn(terminalBuilder)

Callers 2

database.mock.tsFile · 0.85
resetDbChainMockFunction · 0.85

Calls 1

resolveMethod · 0.65

Tested by

no test coverage detected