// @vitest-environment happy-dom import { describe, expect, it } from 'vitest' import { exportedTypeShape, runtimeShape, type TypingsShape } from '../authoring/plugin-author-typings.test-fixture' import { buildPluginGuestShellHtml, buildPluginPanelShellHtml } from './plugin-panel-shell' /** The `window.orca` a frame shell defines, read without leaving it on the test window. */ function frameOrca(html: string): unknown { const script = html.match(/