@test-station/render-html 0.1.0 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +29 -0
  2. package/package.json +1 -1
package/README.md ADDED
@@ -0,0 +1,29 @@
1
+ # @test-station/render-html
2
+
3
+ Standalone HTML renderer for Test Station reports.
4
+
5
+ Most consumers should install `@test-station/cli`, which already uses this package. Install `@test-station/render-html` directly when you want to render HTML from an existing `report.json` in your own scripts or tools.
6
+
7
+ ## Install
8
+
9
+ ```sh
10
+ npm install --save-dev @test-station/render-html
11
+ ```
12
+
13
+ ## What It Does
14
+
15
+ - renders the interactive Test Station HTML report from normalized report data
16
+ - supports module-first and package-first views
17
+ - links raw artifacts, suite details, and coverage summaries
18
+
19
+ ## Example
20
+
21
+ ```js
22
+ import fs from 'node:fs';
23
+ import { writeHtmlReport } from '@test-station/render-html';
24
+
25
+ const report = JSON.parse(fs.readFileSync('./artifacts/test-report/report.json', 'utf8'));
26
+ writeHtmlReport(report, './artifacts/test-report', {
27
+ title: report.meta?.projectName || 'Test Station',
28
+ });
29
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@test-station/render-html",
3
- "version": "0.1.0",
3
+ "version": "0.1.6",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },