Skip to content

executable-stories-vitest@8.4.0

Choose a tag to compare

@github-actions github-actions released this 11 Jun 06:07
· 141 commits to main since this release
4643841

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 as teach lessons or architecture reviews) directly in story reports. Exactly one of path / url / content is required.

    • HTML report: rendered inside an always-sandboxed <iframe sandbox="allow-scripts"> (no allow-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 as srcdoc by default so the report stays self-contained; under --asset-mode copy they are copied as hashed assets. height accepts 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/html embedding), Confluence (link / code block).
    • Adapters: story.html(...) plus the inline html key on step docs across Vitest, Jest, Playwright, and Cypress. Playwright inlines local files at capture time so they survive per-test outputDir cleanup.
    • Cross-language parity: the Go, Ruby, Rust, pytest, JUnit 5, and xUnit adapters gain the same html doc 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-path source guidance.

Patch Changes

  • Updated dependencies [46c17b9]
    • executable-stories-formatters@0.12.0