21981fbdc4
The vi.mock factory uses db.and/eq/exists/or from the imported module, but TypeScript's module-level import binding (const declarations) can't be referenced inside the async factory before initialization. Adding top-level imports from "../db/index.js" and using them directly in the mock return fixes the TDZ error. Co-Authored-By: Paperclip <noreply@paperclip.ing>