import { vi } from 'vitest'; export const mockSelect = (returnValue: T) => vi.fn(() => ({ from: vi.fn(() => ({ where: vi.fn(() => returnValue) })) })); export const mockInsert = (returnValue: T) => vi.fn(() => ({ values: vi.fn(() => ({ returning: vi.fn(() => returnValue) })) })); export const mockQuery = (returnValue: T) => ({ userTable: { findFirst: vi.fn(() => returnValue) } });