executable-stories-formatters 0.7.5 → 0.7.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.
- package/dist/cli.js +12 -6
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +10 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +10 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -253,7 +253,7 @@ interface FormatterOptions {
|
|
|
253
253
|
formats?: OutputFormat[];
|
|
254
254
|
/** Output directory for generated reports. Default: "reports" */
|
|
255
255
|
outputDir?: string;
|
|
256
|
-
/** Base filename (without extension). Default: "
|
|
256
|
+
/** Base filename (without extension). Default: "index" */
|
|
257
257
|
outputName?: string;
|
|
258
258
|
/** Append run timestamp (UTC seconds) to output filename for before/after diffs. Default: false */
|
|
259
259
|
outputNameTimestamp?: boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -253,7 +253,7 @@ interface FormatterOptions {
|
|
|
253
253
|
formats?: OutputFormat[];
|
|
254
254
|
/** Output directory for generated reports. Default: "reports" */
|
|
255
255
|
outputDir?: string;
|
|
256
|
-
/** Base filename (without extension). Default: "
|
|
256
|
+
/** Base filename (without extension). Default: "index" */
|
|
257
257
|
outputName?: string;
|
|
258
258
|
/** Append run timestamp (UTC seconds) to output filename for before/after diffs. Default: false */
|
|
259
259
|
outputNameTimestamp?: boolean;
|
package/dist/index.js
CHANGED
|
@@ -3351,6 +3351,12 @@ body {
|
|
|
3351
3351
|
font-weight: 600;
|
|
3352
3352
|
font-size: 0.875rem;
|
|
3353
3353
|
color: var(--foreground);
|
|
3354
|
+
text-decoration: none;
|
|
3355
|
+
cursor: pointer;
|
|
3356
|
+
}
|
|
3357
|
+
|
|
3358
|
+
a.toc-title:hover {
|
|
3359
|
+
color: var(--primary);
|
|
3354
3360
|
}
|
|
3355
3361
|
|
|
3356
3362
|
.toc-feature {
|
|
@@ -3528,7 +3534,7 @@ function corporateBuildBody(args, deps) {
|
|
|
3528
3534
|
const sidebar = `
|
|
3529
3535
|
<nav class="toc">
|
|
3530
3536
|
<div class="toc-header">
|
|
3531
|
-
<
|
|
3537
|
+
<a href="#" class="toc-title" onclick="window.scrollTo({top:0,behavior:'smooth'});return false;">Test Report</a>
|
|
3532
3538
|
<div class="toc-stats">
|
|
3533
3539
|
<div class="toc-stat-row">
|
|
3534
3540
|
<span class="toc-stat-label">Total</span>
|
|
@@ -13156,7 +13162,7 @@ function renderScenario(args, deps) {
|
|
|
13156
13162
|
<div class="scenario-meta">${tags}${tickets}${sourceLink}${traceBadge}${metricBadges}</div>
|
|
13157
13163
|
</div>
|
|
13158
13164
|
<div class="scenario-actions">
|
|
13159
|
-
<button class="copy-scenario-btn" onclick="copyScenarioAsMarkdown('scenario-${tc.id}')" aria-label="Copy scenario as markdown" title="Copy as Markdown"
|
|
13165
|
+
<button class="copy-scenario-btn" onclick="copyScenarioAsMarkdown('scenario-${tc.id}')" aria-label="Copy scenario as markdown" title="Copy as Markdown"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="9" y="9" width="13" height="13" rx="2" ry="2"/><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"/></svg></button>
|
|
13160
13166
|
<button class="permalink-anchor" onclick="copyPermalink('scenario-${tc.id}')" aria-label="Copy link to scenario" title="Copy link">#</button>
|
|
13161
13167
|
<span class="scenario-duration">${duration}</span>
|
|
13162
13168
|
</div>
|
|
@@ -13535,7 +13541,7 @@ function renderToc(args, deps) {
|
|
|
13535
13541
|
}
|
|
13536
13542
|
return `<nav class="toc-sidebar" aria-label="Table of contents">
|
|
13537
13543
|
<div class="toc-header">
|
|
13538
|
-
<
|
|
13544
|
+
<a href="#" class="toc-title" onclick="window.scrollTo({top:0,behavior:'smooth'});return false;">Contents</a>
|
|
13539
13545
|
</div>
|
|
13540
13546
|
<div class="toc-body">
|
|
13541
13547
|
${features.join("\n")}
|
|
@@ -18073,7 +18079,7 @@ var ReportGenerator = class {
|
|
|
18073
18079
|
excludeTags: options.excludeTags ?? [],
|
|
18074
18080
|
formats: options.formats ?? ["cucumber-json"],
|
|
18075
18081
|
outputDir: options.outputDir ?? "reports",
|
|
18076
|
-
outputName: options.outputName ?? "
|
|
18082
|
+
outputName: options.outputName ?? "index",
|
|
18077
18083
|
outputNameTimestamp: options.outputNameTimestamp ?? false,
|
|
18078
18084
|
sortTestCases: options.sortTestCases ?? "none",
|
|
18079
18085
|
output: {
|