// @vitest-environment jsdom import { act } from 'react'; import { cleanup, fireEvent, render, screen, waitFor, within } from '@testing-library/react'; import { afterEach, describe, expect, it, vi } from 'vitest'; vi.mock('../../src/components/home-hero/PlaceholderCarousel', () => ({ PlaceholderCarousel: () => null, })); import { HomeView } from '../../src/components/HomeView'; import { createPluginAuthoringHandoff, createPluginUseHandoff, PLUGIN_AUTHORING_DEFAULT_GOAL, PLUGIN_AUTHORING_PROMPT, } from '../../src/components/home-hero/plugin-authoring'; // HomeHero's `home-hero-input` is now the project composer's Lexical // contenteditable, not a