import { keysToCamelCase } from "zod-to-camel-case"; import type { Thread, ThreadCamel } from "@/schema/public/thread/thread.schema"; export const threadFixture = ({ overrides = {}, }: { overrides?: Partial; } = {}): Thread => ({ thread_id: 1, thread_title: "A thread", thread_slug: "a-thread", ...overrides, }); export const threadFixtureCamel = ({ overrides = {}, }: { overrides?: Partial; } = {}): ThreadCamel => ({ ...keysToCamelCase(threadFixture()), ...overrides, });