import { fireEvent, render, screen } from '@testing-library/react'; import { SourceEditorDialog } from './SourceEditorDialog'; vi.mock('./monacoSetup', () => ({})); vi.mock('@monaco-editor/react', () => ({ default: ({ value, onChange, theme, }: { value: string; onChange(value: string): void; theme: string; }) => (