import { render, screen } from '@testing-library/react'; import { vi, test, expect, beforeEach } from 'vitest'; import DocumentEditor from '../../src/components/DocumentEditor'; import { getDocument, saveDocument } from '../../src/api/client'; vi.mock('../../src/api/client'); vi.mock('@monaco-editor/react', () => ({ default: ({ value, onChange }: { value: string; onChange: (value: string | undefined) => void }) => (