()
| 6 | })) |
| 7 | |
| 8 | function 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 | |
| 16 | vi.mock('@sim/db', () => ({ |
| 17 | db: { select: vi.fn(() => makeChain()) }, |
no test coverage detected