From af156040cb721f7507b62932153c14b5aefbfb57 Mon Sep 17 00:00:00 2001 From: Naiyuan Qing <145280634+NevilleQingNY@users.noreply.github.com> Date: Wed, 8 Apr 2026 13:55:25 +0800 Subject: [PATCH] test(issues): add ReadonlyContent mock to issue detail tests Co-Authored-By: Claude Opus 4.6 (1M context) --- apps/web/app/(dashboard)/issues/[id]/page.test.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/web/app/(dashboard)/issues/[id]/page.test.tsx b/apps/web/app/(dashboard)/issues/[id]/page.test.tsx index 4d0e3a3e..bbfa6727 100644 --- a/apps/web/app/(dashboard)/issues/[id]/page.test.tsx +++ b/apps/web/app/(dashboard)/issues/[id]/page.test.tsx @@ -84,6 +84,9 @@ vi.mock("@/components/ui/calendar", () => ({ // Mock ContentEditor (Tiptap needs real DOM) vi.mock("@/features/editor", () => ({ + ReadonlyContent: ({ content }: { content: string }) => ( +
{content}
+ ), ContentEditor: forwardRef(({ defaultValue, onUpdate, placeholder, onSubmit }: any, ref: any) => { const valueRef = useRef(defaultValue || ""); const [value, setValue] = useState(defaultValue || "");