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

Function makeChain

apps/sim/lib/credentials/access.test.ts:8–14  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6}))
7
8function makeChain() {
9 const chain: any = {}
10 chain.from = vi.fn(() => chain)
11 chain.where = vi.fn(() => chain)
12 chain.limit = vi.fn(() => Promise.resolve(dbState.results.shift() ?? []))
13 return chain
14}
15
16vi.mock('@sim/db', () => ({
17 db: { select: vi.fn(() => makeChain()) },

Callers 1

access.test.tsFile · 0.70

Calls 2

shiftMethod · 0.80
resolveMethod · 0.65

Tested by

no test coverage detected