()
| 16 | // to produce truthy stubs (the mocked db ignores them). |
| 17 | vi.mock('drizzle-orm', () => { |
| 18 | const make = (): Record<string, unknown> => { |
| 19 | const o: Record<string, unknown> = {} |
| 20 | o.as = () => o |
| 21 | o.mapWith = () => o |
| 22 | return o |
| 23 | } |
| 24 | const sql = Object.assign((..._args: unknown[]) => make(), { |
| 25 | raw: (..._args: unknown[]) => make(), |
| 26 | join: (..._args: unknown[]) => make(), |