import { act, fireEvent, render, screen, waitFor, within, } from "@testing-library/react"; import { expect, it, vi } from "vitest"; vi.mock("../Editor", () => ({ Editor: ({ source, onChange, }: { source: string; onChange(value: string): void; }) => (