@storywright/report
v1.7.0
Published
Svelte HTML reporter for Storywright
Readme
@storywright/report
HTML report viewer for Storywright
Svelte-based single-file HTML report that visualizes visual regression test results. Automatically generated by @storywright/cli.
Features
- Image comparison — Switch between Expected / Actual / Diff views
- Type filtering — Filter by Pass, Diff, or New
- Browser filtering — Multi-select when testing across multiple browsers
- Text search — Search by story name or variant
- Virtual scrolling — Handles thousands of entries efficiently
- Light / Dark theme — Respects system preference with manual toggle
- Review tracking — Mark entries as viewed
Screenshot

How It Works
This package is consumed internally by @storywright/cli. The CLI's Playwright reporter:
- Collects test results and screenshot attachments
- Writes
summary.jsonwith all test entries - Embeds this package's JS bundle into
index.html - The report initializes from
window.__STORYWRIGHT_SUMMARY__
The output is a self-contained HTML file — no server required.
Test Entry Types
| Type | Icon | Description | | -------- | ---- | ---------------------------------------------------------------------- | | pass | ✓ | Screenshot matches baseline | | diff | ✗ | Screenshot differs from baseline — shows Expected / Actual / Diff tabs | | new | + | No baseline exists — shows Actual tab only |
Usage
This package is automatically used by @storywright/cli. No manual installation is needed.
# Run tests and generate report
npx storywright test
# Open generated report
npx storywright report --openTo merge multiple shard reports:
npx storywright report --merge --from "shard-*/report/summary.json"Development
pnpm install
pnpm --filter @storywright/report dev # Start dev server
pnpm --filter @storywright/report build # Build IIFE bundleLicense
MIT
