import { describe, expect, it } from 'vitest'; import { injectDeckPrintStylesheet, injectPrintReadyHandshake, injectPrintScript, } from '../../src/runtime/exports'; import { upsertSpeakerNotesInHtml } from '../../src/runtime/speaker-notes'; // Export splices bridges into the artifact's own bytes exactly like the preview // transports do, so it carries the same hazard: a prototype that builds an HTML // document string writes `` and `
slip` as ordinary content. #7410 was // reported against preview only because `od export` skips the daemon's // URL-preview injection — the export path had the same defect all along. // // Each fixture puts the authored copy of the boundary *before* the document's // own, which is the only arrangement a first-match injector gets wrong. These // run with no `DOMParser` (the web suite's default environment is node), so // each injector is judged on its own rather than on an upstream round-trip. const AUTHORED = 'const doc = `
`;'; /** The authored copy sits in `
`, ahead of the document's own ``. */ const HEAD_FIRST = '
' + `