executable-stories-formatters 0.7.4 → 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 +775 -32
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +766 -29
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +26 -2
- package/dist/index.d.ts +26 -2
- package/dist/index.js +765 -29
- package/dist/index.js.map +1 -1
- package/package.json +7 -2
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;
|
|
@@ -290,6 +290,10 @@ interface FormatterOptions {
|
|
|
290
290
|
ticketUrlTemplate?: string;
|
|
291
291
|
/** Theme name. Default: "default". Available: default, corporate, terminal, minimal, dashboard, playful */
|
|
292
292
|
theme?: string;
|
|
293
|
+
/** Show table of contents sidebar. Default: true */
|
|
294
|
+
tocEnabled?: boolean;
|
|
295
|
+
/** Include theme picker with all CSS-only themes embedded. Default: false */
|
|
296
|
+
themePickerEnabled?: boolean;
|
|
293
297
|
};
|
|
294
298
|
/** JUnit XML specific options */
|
|
295
299
|
junit?: {
|
|
@@ -433,6 +437,8 @@ interface ResolvedFormatterOptions {
|
|
|
433
437
|
permalinkBaseUrl?: string;
|
|
434
438
|
ticketUrlTemplate?: string;
|
|
435
439
|
theme: string;
|
|
440
|
+
tocEnabled: boolean;
|
|
441
|
+
themePickerEnabled: boolean;
|
|
436
442
|
};
|
|
437
443
|
junit: {
|
|
438
444
|
suiteName: string;
|
|
@@ -834,6 +840,18 @@ interface HtmlTemplateOptions {
|
|
|
834
840
|
additionalJs?: string;
|
|
835
841
|
/** Additional ESM import statements for CDN libraries (used by themes). */
|
|
836
842
|
additionalImports?: string[];
|
|
843
|
+
/** Pre-rendered TOC sidebar HTML. Placed as sibling of .container inside .report-layout. */
|
|
844
|
+
tocHtml?: string;
|
|
845
|
+
/** Pre-rendered theme picker HTML (select element). */
|
|
846
|
+
themePickerHtml?: string;
|
|
847
|
+
/** Additional theme CSS blocks to embed (for theme picker). */
|
|
848
|
+
additionalThemeCss?: Array<{
|
|
849
|
+
name: string;
|
|
850
|
+
label: string;
|
|
851
|
+
css: string;
|
|
852
|
+
}>;
|
|
853
|
+
/** Name of the currently active theme (for data-theme-name attribute). */
|
|
854
|
+
activeThemeName?: string;
|
|
837
855
|
}
|
|
838
856
|
|
|
839
857
|
/**
|
|
@@ -868,6 +886,8 @@ interface HtmlTheme {
|
|
|
868
886
|
declare function resolveTheme(nameOrTheme: string | HtmlTheme): HtmlTheme;
|
|
869
887
|
/** List available built-in theme names. */
|
|
870
888
|
declare function getAvailableThemes(): string[];
|
|
889
|
+
/** Get all themes that only use CSS (no custom body/template overrides). */
|
|
890
|
+
declare function getCssOnlyThemes(): HtmlTheme[];
|
|
871
891
|
|
|
872
892
|
/**
|
|
873
893
|
* Status mapping from raw framework statuses to canonical TestStatus.
|
|
@@ -1171,8 +1191,12 @@ interface HtmlOptions {
|
|
|
1171
1191
|
permalinkBaseUrl?: string;
|
|
1172
1192
|
/** URL template for ticket links. Use {ticket} as placeholder. E.g., "https://jira.example.com/browse/{ticket}" */
|
|
1173
1193
|
ticketUrlTemplate?: string;
|
|
1194
|
+
/** Show table of contents sidebar. Default: true */
|
|
1195
|
+
tocEnabled?: boolean;
|
|
1174
1196
|
/** Theme name or custom theme object. Default: "default" */
|
|
1175
1197
|
theme?: string | HtmlTheme;
|
|
1198
|
+
/** Include theme picker with all CSS-only themes embedded. Default: false */
|
|
1199
|
+
themePickerEnabled?: boolean;
|
|
1176
1200
|
}
|
|
1177
1201
|
/**
|
|
1178
1202
|
* HTML Formatter.
|
|
@@ -2253,4 +2277,4 @@ declare function normalizeVitestResults(testModules: Parameters<typeof adaptVite
|
|
|
2253
2277
|
*/
|
|
2254
2278
|
declare function normalizePlaywrightResults(testResults: Parameters<typeof adaptPlaywrightRun>[0], adapterOptions?: Parameters<typeof adaptPlaywrightRun>[1], canonicalizeOptions?: CanonicalizeOptions): TestRunResult;
|
|
2255
2279
|
|
|
2256
|
-
export { type Attachment, type BundleOptions, type BundleResult, type CIInfo, CIProvider, type CanonicalizeOptions, type ColocatedStyle, type CompareFormat, type CompareFormatterOptions, type CoverageSummary, CucumberHtmlFormatter, type CucumberHtmlOptions, CucumberJsonFormatter, type CucumberJsonOptions, CucumberMessagesFormatter, type CucumberMessagesOptions, DocEntry, type FlakinessLevel, type FormatterOptions, type GenerateArgs, type GenerateCompareResult, type GenerateDeps, type GenerateResult, type GenericWebhookNotifierOptions, type HistoryEntry, type HistoryStore, HtmlFormatter, type HtmlOptions, type HtmlTheme, type HtmlThemeName, type IJsonDataTable, type IJsonDocString, type IJsonEmbedding, type IJsonFeature, type IJsonScenario, type IJsonStep, type IJsonStepArgument, type IJsonStepResult, type IJsonTableRow, type IJsonTag, JUnitFormatter, type JUnitOptions, type ListScenariosArgs, type ListScenariosDeps, type Logger, MIN_FLAKINESS_SAMPLES, MIN_METRIC_SAMPLES, MIN_PERF_SAMPLES, MarkdownFormatter, type MarkdownFormatterOptions, type MarkdownOptions, type MarkdownRenderers, NormalizedTicket, type NotificationSummary, type NotifyCondition, OtelSpan, type OtelTraceContext, type OutputConfig, type OutputFormat, type OutputMode, type OutputRule, type PerformanceTrend, RawAttachment, RawCIInfo, RawRun, RawStatus, ReportGenerator, type ResolvedFormatterOptions, RunDiffHtmlFormatter, type RunDiffHtmlOptions, RunDiffMarkdownFormatter, type RunDiffMarkdownOptions, type RunDiffResult, type RunDiffSummary, type ScenarioChangeFlags, type ScenarioChangeKind, type ScenarioDiff, type ScenarioSnapshot, type SortTestCasesMode, type StabilityGrade, type StepResult, StoryMeta, StoryStep, type TestCaseAttempt, type TestCaseResult, type TestHistory, type TestMetrics, type TestRunResult, type TestStatus, CIInfo$1 as TypedCIInfo, type ValidationResult, type WebhookPayload, type WebhookSignerHmac, type WriteFile, adaptJestRun, adaptPlaywrightRun, adaptVitestRun, assertValidRun, bundleAssets, calculateFlakiness, calculateStability, canonicalizeRun, clearVersionCache, computeTestMetrics, createPrCommentSummary, createReportGenerator, deriveStepResults, detectCI, detectPerformanceTrend, diffRuns, findGitDir, formatDuration, generateRunComparison, generateRunId, generateTestCaseId, getAvailableThemes, hasSufficientHistory, listScenarios, loadHistory, mergeStepResults, msToNanoseconds, nanosecondsToMs, normalizeJestResults, normalizePlaywrightResults, normalizeStatus, normalizeVitestResults, parseEnvelopes, parseNdjson, readBranchName, readGitSha, readPackageVersion, resolveAttachment, resolveAttachments, resolveTheme, resolveTraceUrl, saveHistory, sendNotifications, sendSlackNotification, sendTeamsNotification, sendWebhookNotification, signBody, slugify, stripAnsi, tryGetActiveOtelContext, updateHistory, validateCanonicalRun };
|
|
2280
|
+
export { type Attachment, type BundleOptions, type BundleResult, type CIInfo, CIProvider, type CanonicalizeOptions, type ColocatedStyle, type CompareFormat, type CompareFormatterOptions, type CoverageSummary, CucumberHtmlFormatter, type CucumberHtmlOptions, CucumberJsonFormatter, type CucumberJsonOptions, CucumberMessagesFormatter, type CucumberMessagesOptions, DocEntry, type FlakinessLevel, type FormatterOptions, type GenerateArgs, type GenerateCompareResult, type GenerateDeps, type GenerateResult, type GenericWebhookNotifierOptions, type HistoryEntry, type HistoryStore, HtmlFormatter, type HtmlOptions, type HtmlTheme, type HtmlThemeName, type IJsonDataTable, type IJsonDocString, type IJsonEmbedding, type IJsonFeature, type IJsonScenario, type IJsonStep, type IJsonStepArgument, type IJsonStepResult, type IJsonTableRow, type IJsonTag, JUnitFormatter, type JUnitOptions, type ListScenariosArgs, type ListScenariosDeps, type Logger, MIN_FLAKINESS_SAMPLES, MIN_METRIC_SAMPLES, MIN_PERF_SAMPLES, MarkdownFormatter, type MarkdownFormatterOptions, type MarkdownOptions, type MarkdownRenderers, NormalizedTicket, type NotificationSummary, type NotifyCondition, OtelSpan, type OtelTraceContext, type OutputConfig, type OutputFormat, type OutputMode, type OutputRule, type PerformanceTrend, RawAttachment, RawCIInfo, RawRun, RawStatus, ReportGenerator, type ResolvedFormatterOptions, RunDiffHtmlFormatter, type RunDiffHtmlOptions, RunDiffMarkdownFormatter, type RunDiffMarkdownOptions, type RunDiffResult, type RunDiffSummary, type ScenarioChangeFlags, type ScenarioChangeKind, type ScenarioDiff, type ScenarioSnapshot, type SortTestCasesMode, type StabilityGrade, type StepResult, StoryMeta, StoryStep, type TestCaseAttempt, type TestCaseResult, type TestHistory, type TestMetrics, type TestRunResult, type TestStatus, CIInfo$1 as TypedCIInfo, type ValidationResult, type WebhookPayload, type WebhookSignerHmac, type WriteFile, adaptJestRun, adaptPlaywrightRun, adaptVitestRun, assertValidRun, bundleAssets, calculateFlakiness, calculateStability, canonicalizeRun, clearVersionCache, computeTestMetrics, createPrCommentSummary, createReportGenerator, deriveStepResults, detectCI, detectPerformanceTrend, diffRuns, findGitDir, formatDuration, generateRunComparison, generateRunId, generateTestCaseId, getAvailableThemes, getCssOnlyThemes, hasSufficientHistory, listScenarios, loadHistory, mergeStepResults, msToNanoseconds, nanosecondsToMs, normalizeJestResults, normalizePlaywrightResults, normalizeStatus, normalizeVitestResults, parseEnvelopes, parseNdjson, readBranchName, readGitSha, readPackageVersion, resolveAttachment, resolveAttachments, resolveTheme, resolveTraceUrl, saveHistory, sendNotifications, sendSlackNotification, sendTeamsNotification, sendWebhookNotification, signBody, slugify, stripAnsi, tryGetActiveOtelContext, updateHistory, validateCanonicalRun };
|
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;
|
|
@@ -290,6 +290,10 @@ interface FormatterOptions {
|
|
|
290
290
|
ticketUrlTemplate?: string;
|
|
291
291
|
/** Theme name. Default: "default". Available: default, corporate, terminal, minimal, dashboard, playful */
|
|
292
292
|
theme?: string;
|
|
293
|
+
/** Show table of contents sidebar. Default: true */
|
|
294
|
+
tocEnabled?: boolean;
|
|
295
|
+
/** Include theme picker with all CSS-only themes embedded. Default: false */
|
|
296
|
+
themePickerEnabled?: boolean;
|
|
293
297
|
};
|
|
294
298
|
/** JUnit XML specific options */
|
|
295
299
|
junit?: {
|
|
@@ -433,6 +437,8 @@ interface ResolvedFormatterOptions {
|
|
|
433
437
|
permalinkBaseUrl?: string;
|
|
434
438
|
ticketUrlTemplate?: string;
|
|
435
439
|
theme: string;
|
|
440
|
+
tocEnabled: boolean;
|
|
441
|
+
themePickerEnabled: boolean;
|
|
436
442
|
};
|
|
437
443
|
junit: {
|
|
438
444
|
suiteName: string;
|
|
@@ -834,6 +840,18 @@ interface HtmlTemplateOptions {
|
|
|
834
840
|
additionalJs?: string;
|
|
835
841
|
/** Additional ESM import statements for CDN libraries (used by themes). */
|
|
836
842
|
additionalImports?: string[];
|
|
843
|
+
/** Pre-rendered TOC sidebar HTML. Placed as sibling of .container inside .report-layout. */
|
|
844
|
+
tocHtml?: string;
|
|
845
|
+
/** Pre-rendered theme picker HTML (select element). */
|
|
846
|
+
themePickerHtml?: string;
|
|
847
|
+
/** Additional theme CSS blocks to embed (for theme picker). */
|
|
848
|
+
additionalThemeCss?: Array<{
|
|
849
|
+
name: string;
|
|
850
|
+
label: string;
|
|
851
|
+
css: string;
|
|
852
|
+
}>;
|
|
853
|
+
/** Name of the currently active theme (for data-theme-name attribute). */
|
|
854
|
+
activeThemeName?: string;
|
|
837
855
|
}
|
|
838
856
|
|
|
839
857
|
/**
|
|
@@ -868,6 +886,8 @@ interface HtmlTheme {
|
|
|
868
886
|
declare function resolveTheme(nameOrTheme: string | HtmlTheme): HtmlTheme;
|
|
869
887
|
/** List available built-in theme names. */
|
|
870
888
|
declare function getAvailableThemes(): string[];
|
|
889
|
+
/** Get all themes that only use CSS (no custom body/template overrides). */
|
|
890
|
+
declare function getCssOnlyThemes(): HtmlTheme[];
|
|
871
891
|
|
|
872
892
|
/**
|
|
873
893
|
* Status mapping from raw framework statuses to canonical TestStatus.
|
|
@@ -1171,8 +1191,12 @@ interface HtmlOptions {
|
|
|
1171
1191
|
permalinkBaseUrl?: string;
|
|
1172
1192
|
/** URL template for ticket links. Use {ticket} as placeholder. E.g., "https://jira.example.com/browse/{ticket}" */
|
|
1173
1193
|
ticketUrlTemplate?: string;
|
|
1194
|
+
/** Show table of contents sidebar. Default: true */
|
|
1195
|
+
tocEnabled?: boolean;
|
|
1174
1196
|
/** Theme name or custom theme object. Default: "default" */
|
|
1175
1197
|
theme?: string | HtmlTheme;
|
|
1198
|
+
/** Include theme picker with all CSS-only themes embedded. Default: false */
|
|
1199
|
+
themePickerEnabled?: boolean;
|
|
1176
1200
|
}
|
|
1177
1201
|
/**
|
|
1178
1202
|
* HTML Formatter.
|
|
@@ -2253,4 +2277,4 @@ declare function normalizeVitestResults(testModules: Parameters<typeof adaptVite
|
|
|
2253
2277
|
*/
|
|
2254
2278
|
declare function normalizePlaywrightResults(testResults: Parameters<typeof adaptPlaywrightRun>[0], adapterOptions?: Parameters<typeof adaptPlaywrightRun>[1], canonicalizeOptions?: CanonicalizeOptions): TestRunResult;
|
|
2255
2279
|
|
|
2256
|
-
export { type Attachment, type BundleOptions, type BundleResult, type CIInfo, CIProvider, type CanonicalizeOptions, type ColocatedStyle, type CompareFormat, type CompareFormatterOptions, type CoverageSummary, CucumberHtmlFormatter, type CucumberHtmlOptions, CucumberJsonFormatter, type CucumberJsonOptions, CucumberMessagesFormatter, type CucumberMessagesOptions, DocEntry, type FlakinessLevel, type FormatterOptions, type GenerateArgs, type GenerateCompareResult, type GenerateDeps, type GenerateResult, type GenericWebhookNotifierOptions, type HistoryEntry, type HistoryStore, HtmlFormatter, type HtmlOptions, type HtmlTheme, type HtmlThemeName, type IJsonDataTable, type IJsonDocString, type IJsonEmbedding, type IJsonFeature, type IJsonScenario, type IJsonStep, type IJsonStepArgument, type IJsonStepResult, type IJsonTableRow, type IJsonTag, JUnitFormatter, type JUnitOptions, type ListScenariosArgs, type ListScenariosDeps, type Logger, MIN_FLAKINESS_SAMPLES, MIN_METRIC_SAMPLES, MIN_PERF_SAMPLES, MarkdownFormatter, type MarkdownFormatterOptions, type MarkdownOptions, type MarkdownRenderers, NormalizedTicket, type NotificationSummary, type NotifyCondition, OtelSpan, type OtelTraceContext, type OutputConfig, type OutputFormat, type OutputMode, type OutputRule, type PerformanceTrend, RawAttachment, RawCIInfo, RawRun, RawStatus, ReportGenerator, type ResolvedFormatterOptions, RunDiffHtmlFormatter, type RunDiffHtmlOptions, RunDiffMarkdownFormatter, type RunDiffMarkdownOptions, type RunDiffResult, type RunDiffSummary, type ScenarioChangeFlags, type ScenarioChangeKind, type ScenarioDiff, type ScenarioSnapshot, type SortTestCasesMode, type StabilityGrade, type StepResult, StoryMeta, StoryStep, type TestCaseAttempt, type TestCaseResult, type TestHistory, type TestMetrics, type TestRunResult, type TestStatus, CIInfo$1 as TypedCIInfo, type ValidationResult, type WebhookPayload, type WebhookSignerHmac, type WriteFile, adaptJestRun, adaptPlaywrightRun, adaptVitestRun, assertValidRun, bundleAssets, calculateFlakiness, calculateStability, canonicalizeRun, clearVersionCache, computeTestMetrics, createPrCommentSummary, createReportGenerator, deriveStepResults, detectCI, detectPerformanceTrend, diffRuns, findGitDir, formatDuration, generateRunComparison, generateRunId, generateTestCaseId, getAvailableThemes, hasSufficientHistory, listScenarios, loadHistory, mergeStepResults, msToNanoseconds, nanosecondsToMs, normalizeJestResults, normalizePlaywrightResults, normalizeStatus, normalizeVitestResults, parseEnvelopes, parseNdjson, readBranchName, readGitSha, readPackageVersion, resolveAttachment, resolveAttachments, resolveTheme, resolveTraceUrl, saveHistory, sendNotifications, sendSlackNotification, sendTeamsNotification, sendWebhookNotification, signBody, slugify, stripAnsi, tryGetActiveOtelContext, updateHistory, validateCanonicalRun };
|
|
2280
|
+
export { type Attachment, type BundleOptions, type BundleResult, type CIInfo, CIProvider, type CanonicalizeOptions, type ColocatedStyle, type CompareFormat, type CompareFormatterOptions, type CoverageSummary, CucumberHtmlFormatter, type CucumberHtmlOptions, CucumberJsonFormatter, type CucumberJsonOptions, CucumberMessagesFormatter, type CucumberMessagesOptions, DocEntry, type FlakinessLevel, type FormatterOptions, type GenerateArgs, type GenerateCompareResult, type GenerateDeps, type GenerateResult, type GenericWebhookNotifierOptions, type HistoryEntry, type HistoryStore, HtmlFormatter, type HtmlOptions, type HtmlTheme, type HtmlThemeName, type IJsonDataTable, type IJsonDocString, type IJsonEmbedding, type IJsonFeature, type IJsonScenario, type IJsonStep, type IJsonStepArgument, type IJsonStepResult, type IJsonTableRow, type IJsonTag, JUnitFormatter, type JUnitOptions, type ListScenariosArgs, type ListScenariosDeps, type Logger, MIN_FLAKINESS_SAMPLES, MIN_METRIC_SAMPLES, MIN_PERF_SAMPLES, MarkdownFormatter, type MarkdownFormatterOptions, type MarkdownOptions, type MarkdownRenderers, NormalizedTicket, type NotificationSummary, type NotifyCondition, OtelSpan, type OtelTraceContext, type OutputConfig, type OutputFormat, type OutputMode, type OutputRule, type PerformanceTrend, RawAttachment, RawCIInfo, RawRun, RawStatus, ReportGenerator, type ResolvedFormatterOptions, RunDiffHtmlFormatter, type RunDiffHtmlOptions, RunDiffMarkdownFormatter, type RunDiffMarkdownOptions, type RunDiffResult, type RunDiffSummary, type ScenarioChangeFlags, type ScenarioChangeKind, type ScenarioDiff, type ScenarioSnapshot, type SortTestCasesMode, type StabilityGrade, type StepResult, StoryMeta, StoryStep, type TestCaseAttempt, type TestCaseResult, type TestHistory, type TestMetrics, type TestRunResult, type TestStatus, CIInfo$1 as TypedCIInfo, type ValidationResult, type WebhookPayload, type WebhookSignerHmac, type WriteFile, adaptJestRun, adaptPlaywrightRun, adaptVitestRun, assertValidRun, bundleAssets, calculateFlakiness, calculateStability, canonicalizeRun, clearVersionCache, computeTestMetrics, createPrCommentSummary, createReportGenerator, deriveStepResults, detectCI, detectPerformanceTrend, diffRuns, findGitDir, formatDuration, generateRunComparison, generateRunId, generateTestCaseId, getAvailableThemes, getCssOnlyThemes, hasSufficientHistory, listScenarios, loadHistory, mergeStepResults, msToNanoseconds, nanosecondsToMs, normalizeJestResults, normalizePlaywrightResults, normalizeStatus, normalizeVitestResults, parseEnvelopes, parseNdjson, readBranchName, readGitSha, readPackageVersion, resolveAttachment, resolveAttachments, resolveTheme, resolveTraceUrl, saveHistory, sendNotifications, sendSlackNotification, sendTeamsNotification, sendWebhookNotification, signBody, slugify, stripAnsi, tryGetActiveOtelContext, updateHistory, validateCanonicalRun };
|