Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go

fix(test): add missing selection mock in ContentEditor test

Naiyuan Qing35557c0b115d
diff --git a/packages/views/editor/content-editor.test.tsx b/packages/views/editor/content-editor.test.tsx
index 9fe8e9e314..19fa4c1641 100644
--- a/packages/views/editor/content-editor.test.tsx
+++ b/packages/views/editor/content-editor.test.tsx
@@ -36,6 +36,9 @@ vi.mock("@tiptap/react", () => ({
size: 0,
},
},
+ selection: {
+ empty: true,
+ },
},
}),
EditorContent: ({ className }: { className?: string }) => (