Repository navigation
executable-stories-vitest@8.4.0
·
141 commits
to main
since this release
Minor Changes
-
46c17b9: Add the
story.html({ path | url | content, title?, height? })doc kind for embedding generated HTML (charts, single-file reports, and skill/agent output such asteachlessons or architecture reviews) directly in story reports. Exactly one ofpath/url/contentis required.- HTML report: rendered inside an always-sandboxed
<iframe sandbox="allow-scripts">(noallow-same-origin) with a title bar and an open-in-new-tab control. Embedded scripts run (Tailwind/Mermaid CDN charts work) but cannot reach the report DOM, cookies, or storage. Local files are inlined assrcdocby default so the report stays self-contained; under--asset-mode copythey are copied as hashed assets.heightaccepts a number (px) or string (e.g."60vh"), default 400px. - Other formats degrade gracefully: Markdown (link / collapsible code block), JUnit (text line), Cucumber JSON (
text/htmlembedding), Confluence (link / code block). - Adapters:
story.html(...)plus the inlinehtmlkey on step docs across Vitest, Jest, Playwright, and Cypress. Playwright inlines local files at capture time so they survive per-testoutputDircleanup. - Cross-language parity: the Go, Ruby, Rust, pytest, JUnit 5, and xUnit adapters gain the same
htmldoc kind (published via their own registries), each enforcing the exactly-one-source rule idiomatically.
See the Embedding skill & agent HTML output guide for the sandbox-safe authoring contract and
content-vs-pathsource guidance. - HTML report: rendered inside an always-sandboxed
Patch Changes
- Updated dependencies [46c17b9]
- executable-stories-formatters@0.12.0