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