Compare commits

...

1 Commits

Author SHA1 Message Date
Jiang Bohan
7d25bd32e1 fix(views): add missing useFileDropZone and FileDropOverlay mocks in create-issue test
The create-issue modal started importing useFileDropZone and FileDropOverlay
from the editor module, but the test mock was not updated to include them,
causing CI to fail.
2026-04-12 15:15:52 +08:00

View File

@@ -60,6 +60,8 @@ vi.mock("@multica/core/api", () => ({
}));
vi.mock("../editor", () => ({
useFileDropZone: () => ({ isDragOver: false, dropZoneProps: {} }),
FileDropOverlay: () => null,
ContentEditor: forwardRef(({ defaultValue, onUpdate, placeholder }: any, ref: any) => {
const valueRef = useRef(defaultValue || "");
const [value, setValue] = useState(defaultValue || "");