import React from 'react'; import { describe, it, expect, beforeEach, vi } from 'vitest'; import { render, screen, fireEvent } from '@testing-library/react'; import { TemplatesView } from '../../../src/renderer/components/TemplatesView/TemplatesView'; import { useAppStore } from '../../../src/renderer/store'; const monacoPropsSpy = vi.fn(); vi.mock('@monaco-editor/react', () => ({ default: (props: { value?: string; defaultValue?: string; onChange?: (value?: string) => void; language?: string; }) => { monacoPropsSpy(props); return (