// @vitest-environment jsdom import { act } from "react"; import { createRoot } from "react-dom/client"; import type { Root } from "react-dom/client"; import { afterEach, beforeEach, describe, expect, it, vi } from "vitest"; import { JsonOption } from "./widget-custom-widget-configuration-input"; vi.mock("@homarr/custom-widgets/workbench", () => ({ CustomWidgetCodeEditor: (props: { id: string; label: string; value: string; error?: string; onChange(value: string): void; }) => (