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

Function buildStatsSelectChain

apps/sim/lib/billing/threshold-billing.test.ts:193–211  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

191}
192
193function buildStatsSelectChain() {
194 const result = {
195 for: vi.fn(() => result),
196 limit: mockTxStatsLimit,
197 then: (resolve: (value: unknown[]) => unknown, reject?: (reason: unknown) => unknown) =>
198 Promise.resolve(mockTxStatsLimit()).then(resolve, reject),
199 }
200
201 return {
202 from: vi.fn(() => ({
203 leftJoin: vi.fn(() => ({
204 innerJoin: vi.fn(() => ({
205 where: vi.fn(() => result),
206 })),
207 })),
208 where: vi.fn(() => result),
209 })),
210 }
211}
212
213function buildUpdateChain() {
214 return {

Callers 1

Calls 1

resolveMethod · 0.65

Tested by

no test coverage detected