// @vitest-environment happy-dom import { describe, expect, it } from 'vitest' import { buildPluginPanelShellHtml } from './plugin-panel-shell' describe('buildPluginPanelShellHtml', () => { it('removes WebRTC peer connections before plugin code can reach them', () => { const html = buildPluginPanelShellHtml('
Plugin
') const script = html.match(/{' } }, source: window.parent }) ) expect(style.textContent).toBe(':root{/stylescriptx/script}') style.remove() }) })