import { describe, it, expect, vi, beforeEach } from "vitest"; import { render, screen, fireEvent } from "@testing-library/react"; import { YamlEditor } from "@/components/Kubernetes/YamlEditor"; vi.mock("@monaco-editor/react", () => ({ default: ({ value, onChange, }: { value?: string; onChange?: (v: string | undefined) => void; }) => (