executable-stories-formatters 1.4.0 → 1.5.0
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 +1254 -356
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +292 -144
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +14 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +292 -144
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/schemas/raw-run.schema.json +427 -106
- package/templates/astro-thin/astro.config.mjs +6 -22
- package/templates/astro-thin/executable-stories.config.mjs +5 -0
- package/templates/astro-thin/reports/sample-run.json +108 -27
- package/templates/astro-thin/src/content/docs/guides/writing-docs.mdx +51 -0
- package/templates/astro-thin/src/content/docs/index.mdx +7 -0
package/dist/index.d.cts
CHANGED
|
@@ -3503,6 +3503,20 @@ declare class ReportGenerator {
|
|
|
3503
3503
|
* @returns Map of output format to generated file paths
|
|
3504
3504
|
*/
|
|
3505
3505
|
generate(run: TestRunResult): Promise<GenerateResult>;
|
|
3506
|
+
/**
|
|
3507
|
+
* Whether any output is colocated — the global mode, or any per-rule mode.
|
|
3508
|
+
* A colocated rule under a global aggregated mode still writes per-file
|
|
3509
|
+
* reports that need an index.
|
|
3510
|
+
*/
|
|
3511
|
+
private hasColocatedOutput;
|
|
3512
|
+
/**
|
|
3513
|
+
* Write the entry-point page for a colocated HTML report tree. `htmlPaths` is
|
|
3514
|
+
* every HTML report already written this run. Returns the path written, or
|
|
3515
|
+
* undefined when there is nothing to index or the index would clobber a report
|
|
3516
|
+
* already at `index.html` — a colocated source file that produces it, or, in
|
|
3517
|
+
* mixed mode, the global aggregate (whose default output name is also index).
|
|
3518
|
+
*/
|
|
3519
|
+
private writeColocatedIndex;
|
|
3506
3520
|
/**
|
|
3507
3521
|
* Generate reports for a single format.
|
|
3508
3522
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -3503,6 +3503,20 @@ declare class ReportGenerator {
|
|
|
3503
3503
|
* @returns Map of output format to generated file paths
|
|
3504
3504
|
*/
|
|
3505
3505
|
generate(run: TestRunResult): Promise<GenerateResult>;
|
|
3506
|
+
/**
|
|
3507
|
+
* Whether any output is colocated — the global mode, or any per-rule mode.
|
|
3508
|
+
* A colocated rule under a global aggregated mode still writes per-file
|
|
3509
|
+
* reports that need an index.
|
|
3510
|
+
*/
|
|
3511
|
+
private hasColocatedOutput;
|
|
3512
|
+
/**
|
|
3513
|
+
* Write the entry-point page for a colocated HTML report tree. `htmlPaths` is
|
|
3514
|
+
* every HTML report already written this run. Returns the path written, or
|
|
3515
|
+
* undefined when there is nothing to index or the index would clobber a report
|
|
3516
|
+
* already at `index.html` — a colocated source file that produces it, or, in
|
|
3517
|
+
* mixed mode, the global aggregate (whose default output name is also index).
|
|
3518
|
+
*/
|
|
3519
|
+
private writeColocatedIndex;
|
|
3506
3520
|
/**
|
|
3507
3521
|
* Generate reports for a single format.
|
|
3508
3522
|
*/
|