import { render, screen, fireEvent } from "@testing-library/react"; import { describe, it, expect, vi } from "vitest"; import { FunctionForm } from "./FunctionForm"; import type { DdlParams } from "../../../lib/objectCrud"; vi.mock("../../editor/SqlEditorField", () => ({ SqlEditorField: ({ value, onChange }: { value: string; onChange: (v: string) => void }) => (