executable-stories-formatters 0.2.0 → 0.4.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/README.md +1 -1
- package/dist/adapters.d.cts +1 -1
- package/dist/adapters.d.ts +1 -1
- package/dist/cli.js +401 -7
- package/dist/cli.js.map +1 -1
- package/dist/{index-DCJ0NvAp.d.cts → index-DyeUWfYK.d.cts} +26 -1
- package/dist/{index-DCJ0NvAp.d.ts → index-DyeUWfYK.d.ts} +26 -1
- package/dist/index.cjs +433 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +29 -3
- package/dist/index.d.ts +29 -3
- package/dist/index.js +430 -9
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/schemas/README.md +7 -12
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OTel span types for trace waterfall rendering.
|
|
3
|
+
*
|
|
4
|
+
* Structurally compatible with autotel's SerializedSpan
|
|
5
|
+
* and raw OTel nanosecond formats. No import dependency on autotel.
|
|
6
|
+
*/
|
|
7
|
+
type OtelAttributeValue = string | number | boolean | string[] | number[] | boolean[];
|
|
8
|
+
interface OtelSpan {
|
|
9
|
+
spanId: string;
|
|
10
|
+
parentSpanId?: string;
|
|
11
|
+
name: string;
|
|
12
|
+
/** Preferred: epoch-based milliseconds (from autotel's SerializedSpan) */
|
|
13
|
+
startTimeMs?: number;
|
|
14
|
+
durationMs?: number;
|
|
15
|
+
/** Compatibility: raw OTel nanosecond timestamps */
|
|
16
|
+
startTimeUnixNano?: number;
|
|
17
|
+
endTimeUnixNano?: number;
|
|
18
|
+
status: "ok" | "error" | "unset";
|
|
19
|
+
statusMessage?: string;
|
|
20
|
+
attributes?: Record<string, OtelAttributeValue>;
|
|
21
|
+
}
|
|
22
|
+
|
|
1
23
|
/**
|
|
2
24
|
* Story types — the shared vocabulary for all framework adapters.
|
|
3
25
|
*
|
|
@@ -5,6 +27,7 @@
|
|
|
5
27
|
* They now live in formatters so every adapter can import them
|
|
6
28
|
* from the same place that defines RawRun (the output contract).
|
|
7
29
|
*/
|
|
30
|
+
|
|
8
31
|
/** BDD step keywords for scenario documentation */
|
|
9
32
|
type StepKeyword = "Given" | "When" | "Then" | "And" | "But";
|
|
10
33
|
/** Step execution mode for docs rendering */
|
|
@@ -103,6 +126,8 @@ interface StoryMeta {
|
|
|
103
126
|
docs?: DocEntry[];
|
|
104
127
|
/** Order in which story.init() was called (for source ordering) */
|
|
105
128
|
sourceOrder?: number;
|
|
129
|
+
/** OTel spans from autotel for trace waterfall rendering */
|
|
130
|
+
otelSpans?: OtelSpan[];
|
|
106
131
|
}
|
|
107
132
|
/** Key used to store StoryMeta in test metadata */
|
|
108
133
|
declare const STORY_META_KEY = "story";
|
|
@@ -375,4 +400,4 @@ interface PlaywrightAdapterOptions {
|
|
|
375
400
|
*/
|
|
376
401
|
declare function adaptPlaywrightRun(testResults: Array<[PlaywrightTestCase, PlaywrightTestResult]>, options?: PlaywrightAdapterOptions): RawRun;
|
|
377
402
|
|
|
378
|
-
export { type
|
|
403
|
+
export { type VitestState as A, type VitestTestCase as B, type VitestTestModule as C, type DocEntry as D, type VitestTestResult as E, type JestAdapterOptions as J, type OtelAttributeValue as O, type PlaywrightAdapterOptions as P, type RawStatus as R, type StoryMeta as S, type VitestAdapterOptions as V, type StoryStep as a, type RawAttachment as b, type RawRun as c, type RawCIInfo as d, adaptJestRun as e, adaptPlaywrightRun as f, adaptVitestRun as g, type DocPhase as h, type JestAggregatedResult as i, type JestFileResult as j, type JestTestResult as k, type OtelSpan as l, type PlaywrightAnnotation as m, type PlaywrightAttachment as n, type PlaywrightError as o, type PlaywrightLocation as p, type PlaywrightStatus as q, type PlaywrightTestCase as r, type PlaywrightTestResult as s, type RawStepEvent as t, type RawTestCase as u, STORY_META_KEY as v, type StepKeyword as w, type StepMode as x, type StoryFileReport as y, type VitestSerializedError as z };
|
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OTel span types for trace waterfall rendering.
|
|
3
|
+
*
|
|
4
|
+
* Structurally compatible with autotel's SerializedSpan
|
|
5
|
+
* and raw OTel nanosecond formats. No import dependency on autotel.
|
|
6
|
+
*/
|
|
7
|
+
type OtelAttributeValue = string | number | boolean | string[] | number[] | boolean[];
|
|
8
|
+
interface OtelSpan {
|
|
9
|
+
spanId: string;
|
|
10
|
+
parentSpanId?: string;
|
|
11
|
+
name: string;
|
|
12
|
+
/** Preferred: epoch-based milliseconds (from autotel's SerializedSpan) */
|
|
13
|
+
startTimeMs?: number;
|
|
14
|
+
durationMs?: number;
|
|
15
|
+
/** Compatibility: raw OTel nanosecond timestamps */
|
|
16
|
+
startTimeUnixNano?: number;
|
|
17
|
+
endTimeUnixNano?: number;
|
|
18
|
+
status: "ok" | "error" | "unset";
|
|
19
|
+
statusMessage?: string;
|
|
20
|
+
attributes?: Record<string, OtelAttributeValue>;
|
|
21
|
+
}
|
|
22
|
+
|
|
1
23
|
/**
|
|
2
24
|
* Story types — the shared vocabulary for all framework adapters.
|
|
3
25
|
*
|
|
@@ -5,6 +27,7 @@
|
|
|
5
27
|
* They now live in formatters so every adapter can import them
|
|
6
28
|
* from the same place that defines RawRun (the output contract).
|
|
7
29
|
*/
|
|
30
|
+
|
|
8
31
|
/** BDD step keywords for scenario documentation */
|
|
9
32
|
type StepKeyword = "Given" | "When" | "Then" | "And" | "But";
|
|
10
33
|
/** Step execution mode for docs rendering */
|
|
@@ -103,6 +126,8 @@ interface StoryMeta {
|
|
|
103
126
|
docs?: DocEntry[];
|
|
104
127
|
/** Order in which story.init() was called (for source ordering) */
|
|
105
128
|
sourceOrder?: number;
|
|
129
|
+
/** OTel spans from autotel for trace waterfall rendering */
|
|
130
|
+
otelSpans?: OtelSpan[];
|
|
106
131
|
}
|
|
107
132
|
/** Key used to store StoryMeta in test metadata */
|
|
108
133
|
declare const STORY_META_KEY = "story";
|
|
@@ -375,4 +400,4 @@ interface PlaywrightAdapterOptions {
|
|
|
375
400
|
*/
|
|
376
401
|
declare function adaptPlaywrightRun(testResults: Array<[PlaywrightTestCase, PlaywrightTestResult]>, options?: PlaywrightAdapterOptions): RawRun;
|
|
377
402
|
|
|
378
|
-
export { type
|
|
403
|
+
export { type VitestState as A, type VitestTestCase as B, type VitestTestModule as C, type DocEntry as D, type VitestTestResult as E, type JestAdapterOptions as J, type OtelAttributeValue as O, type PlaywrightAdapterOptions as P, type RawStatus as R, type StoryMeta as S, type VitestAdapterOptions as V, type StoryStep as a, type RawAttachment as b, type RawRun as c, type RawCIInfo as d, adaptJestRun as e, adaptPlaywrightRun as f, adaptVitestRun as g, type DocPhase as h, type JestAggregatedResult as i, type JestFileResult as j, type JestTestResult as k, type OtelSpan as l, type PlaywrightAnnotation as m, type PlaywrightAttachment as n, type PlaywrightError as o, type PlaywrightLocation as p, type PlaywrightStatus as q, type PlaywrightTestCase as r, type PlaywrightTestResult as s, type RawStepEvent as t, type RawTestCase as u, STORY_META_KEY as v, type StepKeyword as w, type StepMode as x, type StoryFileReport as y, type VitestSerializedError as z };
|