@serenity-js/console-reporter 3.0.0-rc.9 → 3.0.1
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/CHANGELOG.md +75 -1171
- package/README.md +98 -27
- package/lib/index.d.ts +4 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +11 -1
- package/lib/index.js.map +1 -1
- package/lib/stage/crew/console-reporter/ConsoleReporter.d.ts +84 -60
- package/lib/stage/crew/console-reporter/ConsoleReporter.d.ts.map +1 -0
- package/lib/stage/crew/console-reporter/ConsoleReporter.js +233 -171
- package/lib/stage/crew/console-reporter/ConsoleReporter.js.map +1 -1
- package/lib/stage/crew/console-reporter/ConsoleReporterConfig.d.ts +13 -0
- package/lib/stage/crew/console-reporter/ConsoleReporterConfig.d.ts.map +1 -0
- package/lib/stage/crew/console-reporter/ConsoleReporterConfig.js +3 -0
- package/lib/stage/crew/console-reporter/ConsoleReporterConfig.js.map +1 -0
- package/lib/stage/crew/console-reporter/Printer.d.ts +2 -4
- package/lib/stage/crew/console-reporter/Printer.d.ts.map +1 -0
- package/lib/stage/crew/console-reporter/Printer.js +0 -3
- package/lib/stage/crew/console-reporter/Printer.js.map +1 -1
- package/lib/stage/crew/console-reporter/Summary.d.ts +7 -1
- package/lib/stage/crew/console-reporter/Summary.d.ts.map +1 -0
- package/lib/stage/crew/console-reporter/Summary.js +14 -1
- package/lib/stage/crew/console-reporter/Summary.js.map +1 -1
- package/lib/stage/crew/console-reporter/SummaryFormatter.d.ts +1 -0
- package/lib/stage/crew/console-reporter/SummaryFormatter.d.ts.map +1 -0
- package/lib/stage/crew/console-reporter/SummaryFormatter.js +4 -1
- package/lib/stage/crew/console-reporter/SummaryFormatter.js.map +1 -1
- package/lib/stage/crew/console-reporter/index.d.ts +2 -0
- package/lib/stage/crew/console-reporter/index.d.ts.map +1 -0
- package/lib/stage/crew/console-reporter/index.js +6 -1
- package/lib/stage/crew/console-reporter/index.js.map +1 -1
- package/lib/stage/crew/console-reporter/themes/TerminalTheme.d.ts +1 -7
- package/lib/stage/crew/console-reporter/themes/TerminalTheme.d.ts.map +1 -0
- package/lib/stage/crew/console-reporter/themes/TerminalTheme.js +0 -6
- package/lib/stage/crew/console-reporter/themes/TerminalTheme.js.map +1 -1
- package/lib/stage/crew/console-reporter/themes/ThemeForColourTerminals.d.ts +7 -21
- package/lib/stage/crew/console-reporter/themes/ThemeForColourTerminals.d.ts.map +1 -0
- package/lib/stage/crew/console-reporter/themes/ThemeForColourTerminals.js +9 -30
- package/lib/stage/crew/console-reporter/themes/ThemeForColourTerminals.js.map +1 -1
- package/lib/stage/crew/console-reporter/themes/ThemeForDarkTerminals.d.ts +1 -0
- package/lib/stage/crew/console-reporter/themes/ThemeForDarkTerminals.d.ts.map +1 -0
- package/lib/stage/crew/console-reporter/themes/ThemeForLightTerminals.d.ts +1 -0
- package/lib/stage/crew/console-reporter/themes/ThemeForLightTerminals.d.ts.map +1 -0
- package/lib/stage/crew/console-reporter/themes/ThemeForMonochromaticTerminals.d.ts +7 -20
- package/lib/stage/crew/console-reporter/themes/ThemeForMonochromaticTerminals.d.ts.map +1 -0
- package/lib/stage/crew/console-reporter/themes/ThemeForMonochromaticTerminals.js +6 -29
- package/lib/stage/crew/console-reporter/themes/ThemeForMonochromaticTerminals.js.map +1 -1
- package/lib/stage/crew/console-reporter/themes/index.d.ts +1 -0
- package/lib/stage/crew/console-reporter/themes/index.d.ts.map +1 -0
- package/lib/stage/crew/console-reporter/themes/index.js +5 -1
- package/lib/stage/crew/console-reporter/themes/index.js.map +1 -1
- package/lib/stage/crew/index.d.ts +1 -0
- package/lib/stage/crew/index.d.ts.map +1 -0
- package/lib/stage/crew/index.js +5 -1
- package/lib/stage/crew/index.js.map +1 -1
- package/lib/stage/index.d.ts +1 -0
- package/lib/stage/index.d.ts.map +1 -0
- package/lib/stage/index.js +5 -1
- package/lib/stage/index.js.map +1 -1
- package/package.json +19 -42
- package/src/index.ts +9 -0
- package/src/stage/crew/console-reporter/ConsoleReporter.ts +237 -173
- package/src/stage/crew/console-reporter/ConsoleReporterConfig.ts +12 -0
- package/src/stage/crew/console-reporter/Printer.ts +1 -4
- package/src/stage/crew/console-reporter/Summary.ts +23 -4
- package/src/stage/crew/console-reporter/SummaryFormatter.ts +5 -10
- package/src/stage/crew/console-reporter/index.ts +1 -0
- package/src/stage/crew/console-reporter/themes/TerminalTheme.ts +0 -8
- package/src/stage/crew/console-reporter/themes/ThemeForColourTerminals.ts +11 -42
- package/src/stage/crew/console-reporter/themes/ThemeForDarkTerminals.ts +1 -1
- package/src/stage/crew/console-reporter/themes/ThemeForLightTerminals.ts +1 -1
- package/src/stage/crew/console-reporter/themes/ThemeForMonochromaticTerminals.ts +6 -30
- package/tsconfig.build.json +10 -0
- package/tsconfig.eslint.json +0 -10
|
@@ -9,6 +9,8 @@ const model_1 = require("@serenity-js/core/lib/model");
|
|
|
9
9
|
class Summary {
|
|
10
10
|
constructor() {
|
|
11
11
|
this.records = [];
|
|
12
|
+
this.testRunStartedAt = new core_1.Timestamp();
|
|
13
|
+
this.testRunFinishedAt = new core_1.Timestamp();
|
|
12
14
|
}
|
|
13
15
|
record(details, outcome, duration) {
|
|
14
16
|
this.records.push({ details, outcome, duration });
|
|
@@ -35,7 +37,18 @@ class Summary {
|
|
|
35
37
|
acc.categories[categoryName].outcomes[record.outcome.constructor.name].count++;
|
|
36
38
|
acc.categories[categoryName].totalTime = acc.categories[categoryName].totalTime.plus(record.duration);
|
|
37
39
|
return acc;
|
|
38
|
-
}, {
|
|
40
|
+
}, {
|
|
41
|
+
categories: {},
|
|
42
|
+
totalTime: core_1.Duration.ofMilliseconds(0),
|
|
43
|
+
realTime: this.testRunFinishedAt.diff(this.testRunStartedAt),
|
|
44
|
+
numberOfScenarios: this.records.length
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
recordTestRunStartedAt(timestamp) {
|
|
48
|
+
this.testRunStartedAt = timestamp;
|
|
49
|
+
}
|
|
50
|
+
recordTestRunFinishedAt(timestamp) {
|
|
51
|
+
this.testRunFinishedAt = timestamp;
|
|
39
52
|
}
|
|
40
53
|
}
|
|
41
54
|
exports.Summary = Summary;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Summary.js","sourceRoot":"","sources":["../../../../src/stage/crew/console-reporter/Summary.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"Summary.js","sourceRoot":"","sources":["../../../../src/stage/crew/console-reporter/Summary.ts"],"names":[],"mappings":";;;AAAA,4CAAwD;AACxD,uDAUqC;AAErC;;GAEG;AACH,MAAa,OAAO;IAApB;QACqB,YAAO,GAAoB,EAAE,CAAC;QAEvC,qBAAgB,GAAc,IAAI,gBAAS,EAAE,CAAC;QAC9C,sBAAiB,GAAc,IAAI,gBAAS,EAAE,CAAC;IAgD3D,CAAC;IA9CG,MAAM,CAAC,OAAwB,EAAE,OAAgB,EAAE,QAAkB;QACjE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC,CAAC;IACtD,CAAC;IAED,UAAU;QACN,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,GAAyB,EAAE,MAAM,EAAE,EAAE;YAC7D,GAAG,CAAC,SAAS,GAAG,GAAG,CAAC,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;YAEpD,MAAM,YAAY,GAAG,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC;YAEnD,IAAI,CAAE,GAAG,CAAC,UAAU,CAAC,YAAY,CAAC,EAAE;gBAChC,GAAG,CAAC,UAAU,CAAC,YAAY,CAAC,GAAG;oBAC3B,IAAI,EAAE,YAAY;oBAClB,QAAQ,EAAE;wBACN,CAAC,4BAAoB,CAAC,IAAI,CAAC,EAAiB,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,4BAAoB,CAAC,IA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AAiB,CAAC,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC;YAC5D,iBAAiB,EAAE,IAAI,CAAC,OAAO,CAAC,MAAM;SACzC,CAAC,CAAC;IACP,CAAC;IAED,sBAAsB,CAAC,SAAoB;QACvC,IAAI,CAAC,gBAAgB,GAAG,SAAS,CAAC;IACtC,CAAC;IAED,uBAAuB,CAAC,SAAoB;QACxC,IAAI,CAAC,iBAAiB,GAAG,SAAS,CAAC;IACvC,CAAC;CACJ;AApDD,0BAoDC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SummaryFormatter.d.ts","sourceRoot":"","sources":["../../../../src/stage/crew/console-reporter/SummaryFormatter.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAsB,MAAM,WAAW,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC;;GAEG;AACH,qBAAa,gBAAgB;IACb,OAAO,CAAC,QAAQ,CAAC,KAAK;gBAAL,KAAK,EAAE,aAAa;IAGjD,MAAM,CAAC,oBAAoB,EAAE,oBAAoB,GAAG,MAAM;IAwB1D,OAAO,CAAC,MAAM;IAId,OAAO,CAAC,eAAe;IAevB,OAAO,CAAC,MAAM;CAajB"}
|
|
@@ -22,6 +22,7 @@ class SummaryFormatter {
|
|
|
22
22
|
}),
|
|
23
23
|
``,
|
|
24
24
|
`Total time: ${this.theme.heading(aggregatedCategories.totalTime)}`,
|
|
25
|
+
`Real time: ${this.theme.heading(aggregatedCategories.realTime)}`,
|
|
25
26
|
`Scenarios: ${this.theme.heading(aggregatedCategories.numberOfScenarios)}`,
|
|
26
27
|
'',
|
|
27
28
|
].join('\n');
|
|
@@ -49,7 +50,9 @@ class SummaryFormatter {
|
|
|
49
50
|
case model_1.ImplementationPending.name: return 'pending';
|
|
50
51
|
case model_1.ExecutionSkipped.name: return 'skipped';
|
|
51
52
|
case model_1.ExecutionIgnored.name: return 'ignored';
|
|
52
|
-
case
|
|
53
|
+
// case ExecutionSuccessful.name:
|
|
54
|
+
default:
|
|
55
|
+
return 'successful';
|
|
53
56
|
}
|
|
54
57
|
}
|
|
55
58
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SummaryFormatter.js","sourceRoot":"","sources":["../../../../src/stage/crew/console-reporter/SummaryFormatter.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"SummaryFormatter.js","sourceRoot":"","sources":["../../../../src/stage/crew/console-reporter/SummaryFormatter.ts"],"names":[],"mappings":";;;AAAA,uDAA2L;AAK3L;;GAEG;AACH,MAAa,gBAAgB;IACzB,YAA6B,KAAoB;QAApB,UAAK,GAAL,KAAK,CAAe;IACjD,CAAC;IAED,MAAM,CAAC,oBAA0C;QAC7C,MACI,aAAa,GAAqB,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,oBAAoB,CAAC,UAAU,CAAC,CAAC,EAC3F,qBAAqB,GAAa,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,aAAa,CAAC,GAAG,CAAC,YAAY,CAAC,EAAE,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,CAAC,EACvG,4BAA4B,GAAM,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,qBAAqB,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;QAExF,OAAO;YACH,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,mBAAmB,CAAC;YACvC,EAAE;YACF,GAAG,aAAa,CAAC,GAAG,CAAC,YAAY,CAAC,EAAE;gBAChC,MAAM,WAAW,GAAG,CAAC,YAAY,CAAC,MAAM,GAAG,4BAA4B;oBACnE,CAAC,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,EAAE,4BAA4B,GAAG,CAAC,CAAC,GAAG,MAAM;oBAClE,CAAC,CAAC,GAAI,YAAa,GAAG,CAAC,CAAC,MAAM,CAAC,4BAA4B,GAAG,CAAC,CAAC,CAA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age/crew/console-reporter/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC"}
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -11,4 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
11
15
|
};
|
|
12
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
17
|
__exportStar(require("./ConsoleReporter"), exports);
|
|
18
|
+
__exportStar(require("./ConsoleReporterConfig"), exports);
|
|
14
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/stage/crew/console-reporter/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/stage/crew/console-reporter/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,0DAAwC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { AssertionReportDiffer } from '@serenity-js/core/lib/io';
|
|
2
1
|
import { Outcome } from '@serenity-js/core/lib/model';
|
|
3
2
|
/**
|
|
4
3
|
* @desc
|
|
@@ -9,15 +8,9 @@ import { Outcome } from '@serenity-js/core/lib/model';
|
|
|
9
8
|
* @abstract
|
|
10
9
|
*/
|
|
11
10
|
export declare abstract class TerminalTheme {
|
|
12
|
-
protected readonly differ: AssertionReportDiffer;
|
|
13
|
-
/**
|
|
14
|
-
* @param {@serenity-js/core/lib/io~AssertionReportDiffer} differ
|
|
15
|
-
*/
|
|
16
|
-
constructor(differ: AssertionReportDiffer);
|
|
17
11
|
abstract heading(...parts: any[]): string;
|
|
18
12
|
abstract outcome(outcome: Outcome | string, ...parts: any[]): string;
|
|
19
13
|
abstract separator(pattern: string): string;
|
|
20
|
-
abstract diff(expected: string, actual: string): string;
|
|
21
14
|
abstract log(...parts: any[]): string;
|
|
22
15
|
/**
|
|
23
16
|
* @desc
|
|
@@ -44,3 +37,4 @@ export declare abstract class TerminalTheme {
|
|
|
44
37
|
*/
|
|
45
38
|
protected repeat(pattern: string, maxLength?: number): string;
|
|
46
39
|
}
|
|
40
|
+
//# sourceMappingURL=TerminalTheme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TerminalTheme.d.ts","sourceRoot":"","sources":["../../../../../src/stage/crew/console-reporter/themes/TerminalTheme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAEtD;;;;;;;GAOG;AACH,8BAAsB,aAAa;IAC/B,QAAQ,CAAC,OAAO,CAAC,GAAG,KAAK,EAAE,GAAG,EAAE,GAAG,MAAM;IACzC,QAAQ,CAAC,OAAO,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,EAAE,GAAG,KAAK,EAAE,GAAG,EAAE,GAAG,MAAM;IACpE,QAAQ,CAAC,SAAS,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM;IAC3C,QAAQ,CAAC,GAAG,CAAC,GAAG,KAAK,EAAE,GAAG,EAAE,GAAG,MAAM;IAErC;;;;;;;;;OASG;IACH,SAAS,CAAC,MAAM,CAAC,KAAK,EAAE,GAAG,EAAE,GAAG,MAAM;IAItC;;;;;;;;;;;OAWG;IACH,SAAS,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,SAAK,GAAG,MAAM;CAS5D"}
|
|
@@ -10,12 +10,6 @@ exports.TerminalTheme = void 0;
|
|
|
10
10
|
* @abstract
|
|
11
11
|
*/
|
|
12
12
|
class TerminalTheme {
|
|
13
|
-
/**
|
|
14
|
-
* @param {@serenity-js/core/lib/io~AssertionReportDiffer} differ
|
|
15
|
-
*/
|
|
16
|
-
constructor(differ) {
|
|
17
|
-
this.differ = differ;
|
|
18
|
-
}
|
|
19
13
|
/**
|
|
20
14
|
* @desc
|
|
21
15
|
* Converts the `parts` to `string` and joins them together.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TerminalTheme.js","sourceRoot":"","sources":["../../../../../src/stage/crew/console-reporter/themes/TerminalTheme.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"TerminalTheme.js","sourceRoot":"","sources":["../../../../../src/stage/crew/console-reporter/themes/TerminalTheme.ts"],"names":[],"mappings":";;;AAEA;;;;;;;GAOG;AACH,MAAsB,aAAa;IAM/B;;;;;;;;;OASG;IACO,MAAM,CAAC,KAAY;QACzB,OAAO,KAAK,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACtC,CAAC;IAED;;;;;;;;;;;OAWG;IACO,MAAM,CAAC,OAAe,EAAE,SAAS,GAAG,EAAE;QAC5C,IAAI,CAAE,OAAO,EAAE;YACX,OAAO,EAAE,CAAC;SACb;QAED,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;QAE3D,OAAO,OAAO,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;IACvC,CAAC;CACJ;AAzCD,sCAyCC"}
|
|
@@ -3,7 +3,7 @@ import { Chalk } from 'chalk';
|
|
|
3
3
|
import { TerminalTheme } from './TerminalTheme';
|
|
4
4
|
/**
|
|
5
5
|
* @desc
|
|
6
|
-
* Base class for {@
|
|
6
|
+
* Base class for {@apilink TerminalTheme} implementations intended
|
|
7
7
|
* to print to terminals that support colour output.
|
|
8
8
|
*
|
|
9
9
|
* @extends {TerminalTheme}
|
|
@@ -20,30 +20,16 @@ export declare abstract class ThemeForColourTerminals extends TerminalTheme {
|
|
|
20
20
|
*/
|
|
21
21
|
constructor(chalk: Chalk);
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
* using a colour appropriate for a given {@link @serenity-js/core/lib/model~Outcome}.
|
|
23
|
+
* Joins the `parts` into a single string and decorates it
|
|
24
|
+
* using a colour appropriate for a given {@apilink Outcome}.
|
|
26
25
|
*
|
|
27
|
-
* @param
|
|
28
|
-
* an instance of an {@
|
|
26
|
+
* @param outcome
|
|
27
|
+
* an instance of an {@apilink @serenity-js/core/lib/model~Outcome}
|
|
29
28
|
* or a string class name of one of its implementations.
|
|
30
29
|
*
|
|
31
|
-
* @param
|
|
30
|
+
* @param parts
|
|
32
31
|
* the parts of the message to be decorated
|
|
33
|
-
*
|
|
34
|
-
* @returns {string}
|
|
35
32
|
*/
|
|
36
33
|
outcome(outcome: Outcome | string, ...parts: any[]): string;
|
|
37
|
-
/**
|
|
38
|
-
* @desc
|
|
39
|
-
* Turns the serialised `expectedValue` and `actualValue` into
|
|
40
|
-
* a visual diff, so that it's easier for the developer to spot
|
|
41
|
-
* the difference between the two values.
|
|
42
|
-
*
|
|
43
|
-
* @param {string} expectedValue
|
|
44
|
-
* @param {string} actualValue
|
|
45
|
-
*
|
|
46
|
-
* @returns {string}
|
|
47
|
-
*/
|
|
48
|
-
diff(expectedValue: string, actualValue: string): string;
|
|
49
34
|
}
|
|
35
|
+
//# sourceMappingURL=ThemeForColourTerminals.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ThemeForColourTerminals.d.ts","sourceRoot":"","sources":["../../../../../src/stage/crew/console-reporter/themes/ThemeForColourTerminals.ts"],"names":[],"mappings":"AAEA,OAAO,EAAgJ,OAAO,EAAE,MAAM,6BAA6B,CAAC;AACpM,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AAE9B,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD;;;;;;;;;GASG;AACH,8BAAsB,uBAAwB,SAAQ,aAAa;IAOnD,SAAS,CAAC,QAAQ,CAAC,KAAK,EAAE,KAAK;IAL3C;;;;OAIG;gBAC4B,KAAK,EAAE,KAAK;IAI3C;;;;;;;;;;OAUG;IACH,OAAO,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,EAAE,GAAG,KAAK,EAAE,GAAG,EAAE,GAAG,MAAM;CAqB9D"}
|
|
@@ -2,12 +2,11 @@
|
|
|
2
2
|
/* istanbul ignore file */
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.ThemeForColourTerminals = void 0;
|
|
5
|
-
const io_1 = require("@serenity-js/core/lib/io");
|
|
6
5
|
const model_1 = require("@serenity-js/core/lib/model");
|
|
7
6
|
const TerminalTheme_1 = require("./TerminalTheme");
|
|
8
7
|
/**
|
|
9
8
|
* @desc
|
|
10
|
-
* Base class for {@
|
|
9
|
+
* Base class for {@apilink TerminalTheme} implementations intended
|
|
11
10
|
* to print to terminals that support colour output.
|
|
12
11
|
*
|
|
13
12
|
* @extends {TerminalTheme}
|
|
@@ -22,26 +21,19 @@ class ThemeForColourTerminals extends TerminalTheme_1.TerminalTheme {
|
|
|
22
21
|
* @see https://www.npmjs.com/package/chalk
|
|
23
22
|
*/
|
|
24
23
|
constructor(chalk) {
|
|
25
|
-
super(
|
|
26
|
-
expected: line => this.chalk.green(`+ ${line}`),
|
|
27
|
-
actual: line => this.chalk.red(`- ${line}`),
|
|
28
|
-
matching: line => ` ${line}`,
|
|
29
|
-
}));
|
|
24
|
+
super();
|
|
30
25
|
this.chalk = chalk;
|
|
31
26
|
}
|
|
32
27
|
/**
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
* using a colour appropriate for a given {@link @serenity-js/core/lib/model~Outcome}.
|
|
28
|
+
* Joins the `parts` into a single string and decorates it
|
|
29
|
+
* using a colour appropriate for a given {@apilink Outcome}.
|
|
36
30
|
*
|
|
37
|
-
* @param
|
|
38
|
-
* an instance of an {@
|
|
31
|
+
* @param outcome
|
|
32
|
+
* an instance of an {@apilink @serenity-js/core/lib/model~Outcome}
|
|
39
33
|
* or a string class name of one of its implementations.
|
|
40
34
|
*
|
|
41
|
-
* @param
|
|
35
|
+
* @param parts
|
|
42
36
|
* the parts of the message to be decorated
|
|
43
|
-
*
|
|
44
|
-
* @returns {string}
|
|
45
37
|
*/
|
|
46
38
|
outcome(outcome, ...parts) {
|
|
47
39
|
const outcomeName = (outcome instanceof model_1.Outcome)
|
|
@@ -58,24 +50,11 @@ class ThemeForColourTerminals extends TerminalTheme_1.TerminalTheme {
|
|
|
58
50
|
case model_1.ExecutionSkipped.name:
|
|
59
51
|
case model_1.ExecutionIgnored.name:
|
|
60
52
|
return this.chalk.blackBright(this.joined(parts));
|
|
61
|
-
case
|
|
53
|
+
// case ExecutionSuccessful.name:
|
|
54
|
+
default:
|
|
62
55
|
return this.chalk.green(this.joined(parts));
|
|
63
56
|
}
|
|
64
57
|
}
|
|
65
|
-
/**
|
|
66
|
-
* @desc
|
|
67
|
-
* Turns the serialised `expectedValue` and `actualValue` into
|
|
68
|
-
* a visual diff, so that it's easier for the developer to spot
|
|
69
|
-
* the difference between the two values.
|
|
70
|
-
*
|
|
71
|
-
* @param {string} expectedValue
|
|
72
|
-
* @param {string} actualValue
|
|
73
|
-
*
|
|
74
|
-
* @returns {string}
|
|
75
|
-
*/
|
|
76
|
-
diff(expectedValue, actualValue) {
|
|
77
|
-
return this.differ.diff(expectedValue, actualValue);
|
|
78
|
-
}
|
|
79
58
|
}
|
|
80
59
|
exports.ThemeForColourTerminals = ThemeForColourTerminals;
|
|
81
60
|
//# sourceMappingURL=ThemeForColourTerminals.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeForColourTerminals.js","sourceRoot":"","sources":["../../../../../src/stage/crew/console-reporter/themes/ThemeForColourTerminals.ts"],"names":[],"mappings":";AAAA,0BAA0B;;;AAE1B,
|
|
1
|
+
{"version":3,"file":"ThemeForColourTerminals.js","sourceRoot":"","sources":["../../../../../src/stage/crew/console-reporter/themes/ThemeForColourTerminals.ts"],"names":[],"mappings":";AAAA,0BAA0B;;;AAE1B,uDAAoM;AAGpM,mDAAgD;AAEhD;;;;;;;;;GASG;AACH,MAAsB,uBAAwB,SAAQ,6BAAa;IAE/D;;;;OAIG;IACH,YAA+B,KAAY;QACvC,KAAK,EAAE,CAAC;QADmB,UAAK,GAAL,KAAK,CAAO;IAE3C,CAAC;IAED;;;;;;;;;;OAUG;IACH,OAAO,CAAC,OAAyB,EAAE,GAAG,KAAY;QAC9C,MAAM,WAAW,GAAG,CAAC,OAAO,YAAY,eAAO,CAAC;YAC5C,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI;YAC1B,CAAC,CAAC,OAAO,CAAC;QAEd,QAAQ,WAAW,EAAE;YACjB,KAAK,4BAAoB,CAAC,IAAI;gBAC1B,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;YAClD,KAAK,gCAAwB,CAAC,IAAI,CAAC;YACnC,KAAK,yCAAiC,CAAC,IAAI;gBACvC,OAAO,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;YAC9C,KAAK,6BAAqB,CAAC,IAAI;gBAC3B,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;YAC/C,KAAK,wBAAgB,CAAC,IAAI,CAAC;YAC3B,KAAK,wBAAgB,CAAC,IAAI;gBACtB,OAAO,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;YACtD,iCAAiC;YACjC;gBACI,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;SACnD;IACL,CAAC;CACJ;AA3CD,0DA2CC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ThemeForDarkTerminals.d.ts","sourceRoot":"","sources":["../../../../../src/stage/crew/console-reporter/themes/ThemeForDarkTerminals.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AAE9B,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAEpE;;;;;;;GAOG;AACH,qBAAa,qBAAsB,SAAQ,uBAAuB;IAE9D;;;;OAIG;gBACS,KAAK,EAAE,KAAK;IAIxB;;;;;;;;OAQG;IACH,OAAO,CAAC,GAAG,KAAK,EAAE,GAAG,EAAE,GAAG,MAAM;IAIhC;;;;;;;;OAQG;IACH,SAAS,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM;IAIlC;;;;;;;OAOG;IACH,GAAG,CAAC,GAAG,KAAK,EAAE,GAAG,EAAE,GAAG,MAAM;CAG/B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ThemeForLightTerminals.d.ts","sourceRoot":"","sources":["../../../../../src/stage/crew/console-reporter/themes/ThemeForLightTerminals.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AAE9B,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAEpE;;;;;;;GAOG;AACH,qBAAa,sBAAuB,SAAQ,uBAAuB;IAE/D;;;;OAIG;gBACS,KAAK,EAAE,KAAK;IAIxB;;;;;;;;OAQG;IACH,OAAO,CAAC,GAAG,KAAK,EAAE,GAAG,EAAE,GAAG,MAAM;IAIhC;;;;;;;;OAQG;IACH,SAAS,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM;IAIlC;;;;;;;OAOG;IACH,GAAG,CAAC,GAAG,KAAK,EAAE,GAAG,EAAE,GAAG,MAAM;CAG/B"}
|
|
@@ -9,7 +9,6 @@ import { TerminalTheme } from './TerminalTheme';
|
|
|
9
9
|
* @public
|
|
10
10
|
*/
|
|
11
11
|
export declare class ThemeForMonochromaticTerminals extends TerminalTheme {
|
|
12
|
-
constructor();
|
|
13
12
|
/**
|
|
14
13
|
* @desc
|
|
15
14
|
* Formats the heading
|
|
@@ -21,16 +20,15 @@ export declare class ThemeForMonochromaticTerminals extends TerminalTheme {
|
|
|
21
20
|
*/
|
|
22
21
|
heading(...parts: any[]): string;
|
|
23
22
|
/**
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
* no decoration of the text is performed.
|
|
23
|
+
* Joins the `parts` into a single string.
|
|
24
|
+
* Since this class represents a theme for monochromatic terminals,
|
|
25
|
+
* no decoration of the text is performed.
|
|
28
26
|
*
|
|
29
|
-
* @param
|
|
30
|
-
* an instance of an {@
|
|
27
|
+
* @param outcome
|
|
28
|
+
* an instance of an {@apilink Outcome}
|
|
31
29
|
* or a string class name of one of its implementations.
|
|
32
30
|
*
|
|
33
|
-
* @param
|
|
31
|
+
* @param parts
|
|
34
32
|
* the parts of the message
|
|
35
33
|
*
|
|
36
34
|
* @returns {string}
|
|
@@ -46,18 +44,6 @@ export declare class ThemeForMonochromaticTerminals extends TerminalTheme {
|
|
|
46
44
|
* @returns {string}
|
|
47
45
|
*/
|
|
48
46
|
separator(pattern: string): string;
|
|
49
|
-
/**
|
|
50
|
-
* @desc
|
|
51
|
-
* Turns the serialised `expectedValue` and `actualValue` into
|
|
52
|
-
* a visual diff, so that it's easier for the developer to spot
|
|
53
|
-
* the difference between the two values.
|
|
54
|
-
*
|
|
55
|
-
* @param {string} expectedValue
|
|
56
|
-
* @param {string} actualValue
|
|
57
|
-
*
|
|
58
|
-
* @returns {string}
|
|
59
|
-
*/
|
|
60
|
-
diff(expectedValue: string, actualValue: string): string;
|
|
61
47
|
/**
|
|
62
48
|
* @desc
|
|
63
49
|
* Decorates the log entries that the developer wanted to have captured in the output.
|
|
@@ -68,3 +54,4 @@ export declare class ThemeForMonochromaticTerminals extends TerminalTheme {
|
|
|
68
54
|
*/
|
|
69
55
|
log(...parts: any[]): string;
|
|
70
56
|
}
|
|
57
|
+
//# sourceMappingURL=ThemeForMonochromaticTerminals.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ThemeForMonochromaticTerminals.d.ts","sourceRoot":"","sources":["../../../../../src/stage/crew/console-reporter/themes/ThemeForMonochromaticTerminals.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAEtD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD;;;;;;;GAOG;AACH,qBAAa,8BAA+B,SAAQ,aAAa;IAE7D;;;;;;;;OAQG;IACH,OAAO,CAAC,GAAG,KAAK,EAAE,GAAG,EAAE,GAAG,MAAM;IAIhC;;;;;;;;;;;;;OAaG;IACH,OAAO,CAAC,OAAO,EAAE,OAAO,EAAE,GAAG,KAAK,EAAE,GAAG,EAAE,GAAG,MAAM;IAIlD;;;;;;;;OAQG;IACH,SAAS,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM;IAIlC;;;;;;;OAOG;IACH,GAAG,CAAC,GAAG,KAAK,EAAE,GAAG,EAAE,GAAG,MAAM;CAG/B"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ThemeForMonochromaticTerminals = void 0;
|
|
4
|
-
const io_1 = require("@serenity-js/core/lib/io");
|
|
5
4
|
const TerminalTheme_1 = require("./TerminalTheme");
|
|
6
5
|
/**
|
|
7
6
|
* @desc
|
|
@@ -12,13 +11,6 @@ const TerminalTheme_1 = require("./TerminalTheme");
|
|
|
12
11
|
* @public
|
|
13
12
|
*/
|
|
14
13
|
class ThemeForMonochromaticTerminals extends TerminalTheme_1.TerminalTheme {
|
|
15
|
-
constructor() {
|
|
16
|
-
super(new io_1.AssertionReportDiffer({
|
|
17
|
-
expected: line => `+ ${line}`,
|
|
18
|
-
actual: line => `- ${line}`,
|
|
19
|
-
matching: line => ` ${line}`,
|
|
20
|
-
}));
|
|
21
|
-
}
|
|
22
14
|
/**
|
|
23
15
|
* @desc
|
|
24
16
|
* Formats the heading
|
|
@@ -32,16 +24,15 @@ class ThemeForMonochromaticTerminals extends TerminalTheme_1.TerminalTheme {
|
|
|
32
24
|
return this.joined(parts);
|
|
33
25
|
}
|
|
34
26
|
/**
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
* no decoration of the text is performed.
|
|
27
|
+
* Joins the `parts` into a single string.
|
|
28
|
+
* Since this class represents a theme for monochromatic terminals,
|
|
29
|
+
* no decoration of the text is performed.
|
|
39
30
|
*
|
|
40
|
-
* @param
|
|
41
|
-
* an instance of an {@
|
|
31
|
+
* @param outcome
|
|
32
|
+
* an instance of an {@apilink Outcome}
|
|
42
33
|
* or a string class name of one of its implementations.
|
|
43
34
|
*
|
|
44
|
-
* @param
|
|
35
|
+
* @param parts
|
|
45
36
|
* the parts of the message
|
|
46
37
|
*
|
|
47
38
|
* @returns {string}
|
|
@@ -61,20 +52,6 @@ class ThemeForMonochromaticTerminals extends TerminalTheme_1.TerminalTheme {
|
|
|
61
52
|
separator(pattern) {
|
|
62
53
|
return this.repeat(pattern);
|
|
63
54
|
}
|
|
64
|
-
/**
|
|
65
|
-
* @desc
|
|
66
|
-
* Turns the serialised `expectedValue` and `actualValue` into
|
|
67
|
-
* a visual diff, so that it's easier for the developer to spot
|
|
68
|
-
* the difference between the two values.
|
|
69
|
-
*
|
|
70
|
-
* @param {string} expectedValue
|
|
71
|
-
* @param {string} actualValue
|
|
72
|
-
*
|
|
73
|
-
* @returns {string}
|
|
74
|
-
*/
|
|
75
|
-
diff(expectedValue, actualValue) {
|
|
76
|
-
return this.differ.diff(expectedValue, actualValue);
|
|
77
|
-
}
|
|
78
55
|
/**
|
|
79
56
|
* @desc
|
|
80
57
|
* Decorates the log entries that the developer wanted to have captured in the output.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeForMonochromaticTerminals.js","sourceRoot":"","sources":["../../../../../src/stage/crew/console-reporter/themes/ThemeForMonochromaticTerminals.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"ThemeForMonochromaticTerminals.js","sourceRoot":"","sources":["../../../../../src/stage/crew/console-reporter/themes/ThemeForMonochromaticTerminals.ts"],"names":[],"mappings":";;;AAEA,mDAAgD;AAEhD;;;;;;;GAOG;AACH,MAAa,8BAA+B,SAAQ,6BAAa;IAE7D;;;;;;;;OAQG;IACH,OAAO,CAAC,GAAG,KAAY;QACnB,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAC9B,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,OAAO,CAAC,OAAgB,EAAE,GAAG,KAAY;QACrC,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAC9B,CAAC;IAED;;;;;;;;OAQG;IACH,SAAS,CAAC,OAAe;QACrB,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAChC,CAAC;IAED;;;;;;;OAOG;IACH,GAAG,CAAC,GAAG,KAAY;QACf,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAC9B,CAAC;CACJ;AAzDD,wEAyDC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/stage/crew/console-reporter/themes/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,kCAAkC,CAAC"}
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/stage/crew/console-reporter/themes/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/stage/crew/console-reporter/themes/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC;AAChC,0DAAwC;AACxC,2DAAyC;AACzC,mEAAiD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/stage/crew/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC"}
|
package/lib/stage/crew/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/stage/crew/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/stage/crew/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC"}
|
package/lib/stage/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/stage/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC"}
|
package/lib/stage/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
package/lib/stage/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/stage/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/stage/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB"}
|