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

Function whereResult

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

Source from the content-addressed store, hash-verified

262 // `.limit`/`.orderBy`, so `select().from()[.leftJoin()].where()[.limit()]`
263 // works whether or not a terminal is chained.
264 const whereResult = () => {
265 const thenable: any = Promise.resolve([])
266 thenable.limit = vi.fn(() => Promise.resolve([]))
267 thenable.orderBy = vi.fn(() => Promise.resolve([]))
268 return thenable
269 }
270 const fromBuilder = () => ({
271 where: vi.fn(whereResult),
272 leftJoin: vi.fn(() => ({ where: vi.fn(whereResult) })),

Callers

nothing calls this directly

Calls 1

resolveMethod · 0.65

Tested by

no test coverage detected