testeranto 0.167.0 → 0.171.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/common/src/NavBar.js +45 -0
- package/dist/common/src/PM/main.js +81 -59
- package/dist/common/src/Pure.js +16 -14
- package/dist/common/src/ReportServer.js +48 -5
- package/dist/common/src/Web.js +35 -20
- package/dist/common/src/components/SunriseAnimation.test/implementation.js +1 -0
- package/dist/common/src/components/SunriseAnimation.test/index.js +1 -0
- package/dist/common/src/components/SunriseAnimation.test/interface.js +1 -0
- package/dist/common/src/components/SunriseAnimation.test/specification.js +1 -0
- package/dist/common/src/components/TestStatusBadge.js +55 -0
- package/dist/common/src/components/pure/ProjectPageView.js +204 -0
- package/dist/common/src/components/pure/ProjectPageView.test/adapter.js +20 -0
- package/dist/common/src/components/pure/ProjectPageView.test/implementation.js +71 -0
- package/dist/common/src/components/pure/ProjectPageView.test/index.js +10 -0
- package/dist/common/src/components/pure/ProjectPageView.test/specification.js +19 -0
- package/dist/common/src/components/pure/ProjectPageView.test/types.js +2 -0
- package/dist/common/src/lib/BaseSuite.js +3 -3
- package/dist/common/src/lib/BaseSuite.test/test.js +1 -1
- package/dist/common/src/lib/abstractBase.js +41 -14
- package/dist/common/src/lib/baseBuilder.test/baseBuilder.test.adapter.js +1 -1
- package/dist/common/src/lib/pmProxy.js +185 -64
- package/dist/common/testeranto.config.js +6 -0
- package/dist/common/tsconfig.common.tsbuildinfo +1 -1
- package/dist/module/src/App.js +3 -3
- package/dist/module/src/PM/main.js +81 -59
- package/dist/module/src/ProjectsPage.js +1 -110
- package/dist/module/src/Pure.js +16 -14
- package/dist/module/src/ReportServer.js +48 -5
- package/dist/module/src/TestPage.js +45 -16
- package/dist/module/src/Web.js +35 -20
- package/dist/module/src/components/SunriseAnimation.test/implementation.js +1 -0
- package/dist/module/src/components/SunriseAnimation.test/index.js +1 -0
- package/dist/module/src/components/SunriseAnimation.test/interface.js +1 -0
- package/dist/module/src/components/SunriseAnimation.test/specification.js +1 -0
- package/dist/module/src/components/pure/ProjectPageView.js +197 -0
- package/dist/module/src/components/pure/ProjectPageView.test/adapter.js +17 -0
- package/dist/module/src/components/pure/ProjectPageView.test/implementation.js +68 -0
- package/dist/module/src/components/pure/ProjectPageView.test/index.js +5 -0
- package/dist/module/src/components/pure/ProjectPageView.test/specification.js +15 -0
- package/dist/module/src/components/pure/ProjectPageView.test/types.js +1 -0
- package/dist/module/src/components/pure/ProjectsPageView.js +58 -0
- package/dist/module/src/components/pure/TestPageView.js +136 -0
- package/dist/module/src/components/stateful/ProjectPage.js +63 -0
- package/dist/module/src/components/stateful/ProjectsPage.js +55 -0
- package/dist/module/src/components/stateful/TestPage.js +82 -0
- package/dist/module/src/lib/BaseSuite.js +3 -3
- package/dist/module/src/lib/BaseSuite.test/test.js +1 -1
- package/dist/module/src/lib/abstractBase.js +41 -14
- package/dist/module/src/lib/baseBuilder.test/baseBuilder.test.adapter.js +1 -1
- package/dist/module/src/lib/pmProxy.js +185 -64
- package/dist/module/testeranto.config.js +6 -0
- package/dist/module/tsconfig.module.tsbuildinfo +1 -1
- package/dist/prebuild/App.js +541 -495
- package/dist/prebuild/ReportServer.mjs +44 -4
- package/dist/prebuild/run.mjs +67 -39
- package/dist/types/src/NavBar.d.ts +19 -0
- package/dist/types/src/PM/index.d.ts +3 -1
- package/dist/types/src/PM/main.d.ts +0 -4
- package/dist/types/src/PM/node.d.ts +2 -2
- package/dist/types/src/components/SunriseAnimation.test/interface.d.ts +0 -0
- package/dist/types/src/components/SunriseAnimation.test/specification.d.ts +0 -0
- package/dist/types/src/components/TestStatusBadge.d.ts +15 -0
- package/dist/types/src/components/pure/ProjectPageView.d.ts +14 -0
- package/dist/types/src/components/pure/ProjectPageView.test/adapter.d.ts +3 -0
- package/dist/types/src/components/pure/ProjectPageView.test/implementation.d.ts +3 -0
- package/dist/types/src/components/pure/ProjectPageView.test/index.d.ts +3 -0
- package/dist/types/src/components/pure/ProjectPageView.test/specification.d.ts +3 -0
- package/dist/types/src/components/pure/ProjectPageView.test/types.d.ts +39 -0
- package/dist/types/src/lib/BaseSuite.d.ts +2 -0
- package/dist/types/src/lib/abstractBase.d.ts +12 -0
- package/dist/types/tsconfig.types.tsbuildinfo +1 -1
- package/package.json +3 -2
- package/src/App.tsx +5 -9
- package/src/PM/index.ts +1 -1
- package/src/PM/main.ts +87 -82
- package/src/PM/node.ts +2 -2
- package/src/ProjectsPage.tsx +1 -164
- package/src/Pure.ts +16 -16
- package/src/ReportServer.ts +49 -6
- package/src/TestPage.tsx +78 -5
- package/src/Web.ts +35 -35
- package/src/components/SunriseAnimation.test/implementation.ts +0 -0
- package/src/components/SunriseAnimation.test/index.ts +0 -0
- package/src/components/SunriseAnimation.test/interface.ts +0 -0
- package/src/components/SunriseAnimation.test/specification.ts +0 -0
- package/src/components/pure/ProjectPageView.test/adapter.ts +21 -0
- package/src/components/pure/ProjectPageView.test/implementation.tsx +84 -0
- package/src/components/pure/ProjectPageView.test/index.ts +8 -0
- package/src/components/pure/ProjectPageView.test/specification.ts +31 -0
- package/src/components/pure/ProjectPageView.test/types.ts +55 -0
- package/src/components/pure/ProjectPageView.tsx +332 -0
- package/src/components/pure/ProjectsPageView.tsx +99 -0
- package/src/components/pure/TestPageView.tsx +278 -0
- package/src/components/stateful/ProjectPage.tsx +83 -0
- package/src/components/stateful/ProjectsPage.tsx +73 -0
- package/src/components/stateful/TestPage.tsx +107 -0
- package/src/lib/BaseSuite.test/test.ts +1 -1
- package/src/lib/BaseSuite.ts +9 -4
- package/src/lib/abstractBase.ts +45 -14
- package/src/lib/baseBuilder.test/baseBuilder.test.adapter.ts +1 -1
- package/src/lib/pmProxy.ts +184 -87
- package/testeranto/App.js +541 -495
- package/testeranto/bundles/node/allTests/{chunk-4ONUZRZ4.mjs → chunk-3EUGBAOM.mjs} +1 -1
- package/testeranto/bundles/node/allTests/{chunk-IDCUSTSM.mjs → chunk-E75CSRER.mjs} +246 -115
- package/testeranto/bundles/node/allTests/{chunk-NQEP7SN4.mjs → chunk-M6DO7VMB.mjs} +1 -1
- package/testeranto/bundles/node/allTests/metafile.json +34 -34
- package/testeranto/bundles/node/allTests/src/lib/BaseSuite.test/node.test.mjs +4 -4
- package/testeranto/bundles/node/allTests/src/lib/baseBuilder.test/baseBuilder.test.node.mjs +3 -3
- package/testeranto/bundles/node/allTests/src/lib/classBuilder.test/classBuilder.test.mjs +3 -3
- package/testeranto/bundles/node/allTests/src/lib/core.test/core.test.mjs +2 -17
- package/testeranto/bundles/node/allTests/src/lib/pmProxy.test/index.mjs +2 -2
- package/testeranto/bundles/pure/allTests/{chunk-5SBJWHSZ.mjs → chunk-KHDVEHF7.mjs} +2 -17
- package/testeranto/bundles/pure/allTests/{chunk-4ULDTZFU.mjs → chunk-VMUSFSZM.mjs} +246 -115
- package/testeranto/bundles/pure/allTests/metafile.json +57 -27
- package/testeranto/bundles/pure/allTests/src/Pure.test.mjs +2 -2
- package/testeranto/bundles/pure/allTests/src/lib/BaseSuite.test/pure.test.mjs +3 -3
- package/testeranto/bundles/pure/allTests/src/lib/baseBuilder.test/baseBuilder.test.pure.mjs +2 -29
- package/testeranto/bundles/web/allTests/chunk-HPYA4YZC.mjs +2283 -0
- package/testeranto/bundles/web/allTests/{chunk-TU3MJSSI.mjs → chunk-RLDR6LJN.mjs} +302 -127
- package/testeranto/bundles/web/allTests/{chunk-46E6YGGN.mjs → chunk-U7AW26HL.mjs} +292 -142
- package/testeranto/bundles/web/allTests/metafile.json +15062 -43
- package/testeranto/bundles/web/allTests/src/components/pure/ProjectPageView.test/index.html +19 -0
- package/testeranto/bundles/web/allTests/src/components/pure/ProjectPageView.test/index.mjs +37524 -0
- package/testeranto/bundles/web/allTests/src/lib/BaseSuite.test/web.test.mjs +20 -2
- package/testeranto/bundles/web/allTests/src/lib/baseBuilder.test/baseBuilder.test.web.mjs +26 -2
- package/testeranto/reports/allTests/config.json +8 -0
- package/testeranto/reports/allTests/src/Pure.test/pure/type_errors.txt +9 -3
- package/testeranto/reports/allTests/src/components/pure/ProjectPageView.test/index/web/bdd_errors.txt +1 -0
- package/testeranto/reports/allTests/src/components/pure/ProjectPageView.test/index/web/lint_errors.txt +13 -0
- package/testeranto/reports/allTests/src/components/pure/ProjectPageView.test/index/web/logs.txt +50 -0
- package/testeranto/reports/allTests/src/components/pure/ProjectPageView.test/index/web/message.txt +2 -0
- package/testeranto/reports/allTests/src/components/pure/ProjectPageView.test/index/web/prompt.txt +17 -0
- package/testeranto/reports/allTests/src/components/pure/ProjectPageView.test/index/web/tests.json +32 -0
- package/testeranto/reports/allTests/src/components/pure/ProjectPageView.test/index/web/type_errors.txt +68 -0
- package/testeranto/reports/allTests/src/lib/BaseSuite.test/node.test/node/logs.txt +22 -39
- package/testeranto/reports/allTests/src/lib/BaseSuite.test/node.test/node/tests.json +6 -3
- package/testeranto/reports/allTests/src/lib/BaseSuite.test/node.test/node/type_errors.txt +8 -1
- package/testeranto/reports/allTests/src/lib/BaseSuite.test/pure.test/pure/tests.json +6 -3
- package/testeranto/reports/allTests/src/lib/BaseSuite.test/pure.test/pure/type_errors.txt +9 -3
- package/testeranto/reports/allTests/src/lib/BaseSuite.test/web.test/web/logs.txt +66 -55
- package/testeranto/reports/allTests/src/lib/BaseSuite.test/web.test/web/prompt.txt +2 -2
- package/testeranto/reports/allTests/src/lib/BaseSuite.test/web.test/web/tests.json +6 -3
- package/testeranto/reports/allTests/src/lib/BaseSuite.test/web.test/web/type_errors.txt +10 -5
- package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.node/node/logs.txt +16 -48
- package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.node/node/tests.json +18 -9
- package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.node/node/type_errors.txt +8 -1
- package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.pure/pure/type_errors.txt +10 -5
- package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.web/web/logs.txt +62 -33
- package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.web/web/prompt.txt +2 -2
- package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.web/web/tests.json +18 -9
- package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.web/web/type_errors.txt +10 -5
- package/testeranto/reports/allTests/src/lib/classBuilder.test/classBuilder.test/node/logs.txt +37 -50
- package/testeranto/reports/allTests/src/lib/classBuilder.test/classBuilder.test/node/tests.json +36 -18
- package/testeranto/reports/allTests/src/lib/classBuilder.test/classBuilder.test/node/type_errors.txt +8 -1
- package/testeranto/reports/allTests/src/lib/core.test/core.test/node/logs.txt +2 -2
- package/testeranto/reports/allTests/src/lib/core.test/core.test/node/type_errors.txt +9 -3
- package/testeranto/reports/allTests/src/lib/pmProxy.test/index/node/logs.txt +21 -36
- package/testeranto/reports/allTests/src/lib/pmProxy.test/index/node/tests.json +28 -14
- package/testeranto/reports/allTests/src/lib/pmProxy.test/index/node/type_errors.txt +8 -1
- package/testeranto/reports/allTests/summary.json +15 -8
- package/testeranto/reportsweb_build_errors +25 -0
- package/testeranto.config.ts +7 -0
- package/tsc.log +100 -26
- package/dist/tsconfig.tsbuildinfo +0 -1
- package/testeranto/bundles/node/allTests/chunk-FFBRDUBH.mjs +0 -677
- package/testeranto/bundles/node/allTests/chunk-H2IBV7SY.mjs +0 -113
- package/testeranto/bundles/node/allTests/chunk-ZHOULXPN.mjs +0 -252
- package/testeranto/bundles/pure/allTests/chunk-CSMXYJ65.mjs +0 -200
- package/testeranto/bundles/pure/allTests/chunk-QK4IXLF6.mjs +0 -674
- package/testeranto/bundles/web/allTests/src/lib/BaseSuite.test/web.test/manifest.json +0 -1
- package/testeranto/bundles/web/allTests/src/lib/baseBuilder.test/baseBuilder.test.web/manifest.json +0 -1
- package/testeranto/reports/allTests/src/Pure.test/pure/manifest.json +0 -1
- package/testeranto/reports/allTests/src/lib/BaseSuite.test/node.test/node/manifest.json +0 -1
- package/testeranto/reports/allTests/src/lib/BaseSuite.test/pure.test/pure/manifest.json +0 -1
- package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.node/node/manifest.json +0 -1
- package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.pure/pure/manifest.json +0 -1
- package/testeranto/reports/allTests/src/lib/classBuilder.test/classBuilder.test/node/manifest.json +0 -1
- package/testeranto/reports/allTests/src/lib/core.test/core.test/node/manifest.json +0 -1
- package/testeranto/reports/allTests/src/lib/pmProxy.test/index/node/manifest.json +0 -1
- /package/{testeranto/reports/allTests/src/Pure.test/pure/logs.txt → dist/types/src/components/SunriseAnimation.test/implementation.d.ts} +0 -0
- /package/{testeranto/reports/allTests/src/lib/BaseSuite.test/pure.test/pure/logs.txt → dist/types/src/components/SunriseAnimation.test/index.d.ts} +0 -0
|
@@ -17,121 +17,242 @@ const baseProxy = function (pm, mappings) {
|
|
|
17
17
|
},
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
|
-
const butThenProxy = (pm, filepath) =>
|
|
21
|
-
[
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
20
|
+
const butThenProxy = (pm, filepath) => {
|
|
21
|
+
return baseProxy(pm, [
|
|
22
|
+
[
|
|
23
|
+
"screencast",
|
|
24
|
+
(opts, p) => {
|
|
25
|
+
var _a;
|
|
26
|
+
const path = `${filepath}/butThen/${opts.path}`;
|
|
27
|
+
console.log(`[Proxy] Captured artifact path for butThen:`, path);
|
|
28
|
+
if ((_a = pm.currentStep) === null || _a === void 0 ? void 0 : _a.addArtifact) {
|
|
29
|
+
pm.currentStep.addArtifact(path);
|
|
30
|
+
}
|
|
31
|
+
else {
|
|
32
|
+
console.warn('No currentStep or addArtifact method found');
|
|
33
|
+
}
|
|
34
|
+
return [
|
|
35
|
+
Object.assign(Object.assign({}, opts), { path }),
|
|
36
|
+
p,
|
|
37
|
+
];
|
|
38
|
+
},
|
|
26
39
|
],
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
40
|
+
["createWriteStream", (fp) => {
|
|
41
|
+
var _a;
|
|
42
|
+
const path = `${filepath}/butThen/${fp}`;
|
|
43
|
+
console.log(`[Proxy] Captured artifact path for butThen:`, path);
|
|
44
|
+
if ((_a = pm.currentStep) === null || _a === void 0 ? void 0 : _a.addArtifact) {
|
|
45
|
+
pm.currentStep.addArtifact(path);
|
|
46
|
+
}
|
|
47
|
+
else {
|
|
48
|
+
console.warn('No currentStep or addArtifact method found');
|
|
49
|
+
}
|
|
50
|
+
return [path];
|
|
51
|
+
}],
|
|
52
|
+
[
|
|
53
|
+
"writeFileSync",
|
|
54
|
+
(fp, contents) => {
|
|
55
|
+
var _a, _b;
|
|
56
|
+
const path = `${filepath}/butThen/${fp}`;
|
|
57
|
+
(_b = (_a = pm.currentStep) === null || _a === void 0 ? void 0 : _a.artifacts) === null || _b === void 0 ? void 0 : _b.push(path);
|
|
58
|
+
return [path, contents];
|
|
59
|
+
},
|
|
38
60
|
],
|
|
39
|
-
|
|
40
|
-
|
|
61
|
+
[
|
|
62
|
+
"customScreenShot",
|
|
63
|
+
(opts, p) => {
|
|
64
|
+
var _a, _b;
|
|
65
|
+
const path = `${filepath}/butThen/${opts.path}`;
|
|
66
|
+
(_b = (_a = pm.currentStep) === null || _a === void 0 ? void 0 : _a.artifacts) === null || _b === void 0 ? void 0 : _b.push(path);
|
|
67
|
+
return [
|
|
68
|
+
Object.assign(Object.assign({}, opts), { path }),
|
|
69
|
+
p,
|
|
70
|
+
];
|
|
71
|
+
},
|
|
72
|
+
],
|
|
73
|
+
]);
|
|
74
|
+
};
|
|
41
75
|
exports.butThenProxy = butThenProxy;
|
|
42
76
|
const andWhenProxy = (pm, filepath) => baseProxy(pm, [
|
|
43
77
|
[
|
|
44
78
|
"screencast",
|
|
45
|
-
(opts, p) =>
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
79
|
+
(opts, p) => {
|
|
80
|
+
var _a, _b;
|
|
81
|
+
const path = `${filepath}/andWhen/${opts.path}`;
|
|
82
|
+
(_b = (_a = pm.currentStep) === null || _a === void 0 ? void 0 : _a.artifacts) === null || _b === void 0 ? void 0 : _b.push(path);
|
|
83
|
+
return [
|
|
84
|
+
Object.assign(Object.assign({}, opts), { path }),
|
|
85
|
+
p,
|
|
86
|
+
];
|
|
87
|
+
},
|
|
49
88
|
],
|
|
50
|
-
["createWriteStream", (fp) =>
|
|
51
|
-
|
|
89
|
+
["createWriteStream", (fp) => {
|
|
90
|
+
var _a, _b;
|
|
91
|
+
const path = `${filepath}/andWhen/${fp}`;
|
|
92
|
+
(_b = (_a = pm.currentStep) === null || _a === void 0 ? void 0 : _a.artifacts) === null || _b === void 0 ? void 0 : _b.push(path);
|
|
93
|
+
return [path];
|
|
94
|
+
}],
|
|
95
|
+
["writeFileSync", (fp, contents) => {
|
|
96
|
+
var _a, _b;
|
|
97
|
+
const path = `${filepath}/andWhen/${fp}`;
|
|
98
|
+
(_b = (_a = pm.currentStep) === null || _a === void 0 ? void 0 : _a.artifacts) === null || _b === void 0 ? void 0 : _b.push(path);
|
|
99
|
+
return [path, contents];
|
|
100
|
+
}],
|
|
52
101
|
[
|
|
53
102
|
"customScreenShot",
|
|
54
|
-
(opts, p) =>
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
103
|
+
(opts, p) => {
|
|
104
|
+
var _a, _b;
|
|
105
|
+
const path = `${filepath}/andWhen/${opts.path}`;
|
|
106
|
+
(_b = (_a = pm.currentStep) === null || _a === void 0 ? void 0 : _a.artifacts) === null || _b === void 0 ? void 0 : _b.push(path);
|
|
107
|
+
return [
|
|
108
|
+
Object.assign(Object.assign({}, opts), { path }),
|
|
109
|
+
p,
|
|
110
|
+
];
|
|
111
|
+
},
|
|
58
112
|
],
|
|
59
113
|
]);
|
|
60
114
|
exports.andWhenProxy = andWhenProxy;
|
|
61
115
|
const afterEachProxy = (pm, suite, given) => baseProxy(pm, [
|
|
62
116
|
[
|
|
63
117
|
"screencast",
|
|
64
|
-
(opts, p) =>
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
118
|
+
(opts, p) => {
|
|
119
|
+
var _a, _b;
|
|
120
|
+
const path = `suite-${suite}/given-${given}/afterEach/${opts.path}`;
|
|
121
|
+
(_b = (_a = pm.currentStep) === null || _a === void 0 ? void 0 : _a.artifacts) === null || _b === void 0 ? void 0 : _b.push(path);
|
|
122
|
+
return [
|
|
123
|
+
Object.assign(Object.assign({}, opts), { path }),
|
|
124
|
+
p,
|
|
125
|
+
];
|
|
126
|
+
},
|
|
68
127
|
],
|
|
69
|
-
["createWriteStream", (fp) =>
|
|
128
|
+
["createWriteStream", (fp) => {
|
|
129
|
+
var _a, _b;
|
|
130
|
+
const path = `suite-${suite}/afterEach/${fp}`;
|
|
131
|
+
(_b = (_a = pm.currentStep) === null || _a === void 0 ? void 0 : _a.artifacts) === null || _b === void 0 ? void 0 : _b.push(path);
|
|
132
|
+
return [path];
|
|
133
|
+
}],
|
|
70
134
|
[
|
|
71
135
|
"writeFileSync",
|
|
72
|
-
(fp, contents) =>
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
136
|
+
(fp, contents) => {
|
|
137
|
+
var _a, _b;
|
|
138
|
+
const path = `suite-${suite}/given-${given}/afterEach/${fp}`;
|
|
139
|
+
(_b = (_a = pm.currentStep) === null || _a === void 0 ? void 0 : _a.artifacts) === null || _b === void 0 ? void 0 : _b.push(path);
|
|
140
|
+
return [path, contents];
|
|
141
|
+
},
|
|
76
142
|
],
|
|
77
143
|
[
|
|
78
144
|
"customScreenShot",
|
|
79
|
-
(opts, p) =>
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
145
|
+
(opts, p) => {
|
|
146
|
+
var _a, _b;
|
|
147
|
+
const path = `suite-${suite}/given-${given}/afterEach/${opts.path}`;
|
|
148
|
+
(_b = (_a = pm.currentStep) === null || _a === void 0 ? void 0 : _a.artifacts) === null || _b === void 0 ? void 0 : _b.push(path);
|
|
149
|
+
return [
|
|
150
|
+
Object.assign(Object.assign({}, opts), { path }),
|
|
151
|
+
p,
|
|
152
|
+
];
|
|
153
|
+
},
|
|
83
154
|
],
|
|
84
155
|
]);
|
|
85
156
|
exports.afterEachProxy = afterEachProxy;
|
|
86
157
|
const beforeEachProxy = (pm, suite) => baseProxy(pm, [
|
|
87
158
|
[
|
|
88
159
|
"screencast",
|
|
89
|
-
(opts, p) =>
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
160
|
+
(opts, p) => {
|
|
161
|
+
var _a, _b;
|
|
162
|
+
const path = `suite-${suite}/beforeEach/${opts.path}`;
|
|
163
|
+
(_b = (_a = pm.currentStep) === null || _a === void 0 ? void 0 : _a.artifacts) === null || _b === void 0 ? void 0 : _b.push(path);
|
|
164
|
+
return [
|
|
165
|
+
Object.assign(Object.assign({}, opts), { path }),
|
|
166
|
+
p,
|
|
167
|
+
];
|
|
168
|
+
},
|
|
93
169
|
],
|
|
94
170
|
[
|
|
95
171
|
"writeFileSync",
|
|
96
|
-
(fp, contents) =>
|
|
172
|
+
(fp, contents) => {
|
|
173
|
+
var _a, _b;
|
|
174
|
+
const path = `suite-${suite}/beforeEach/${fp}`;
|
|
175
|
+
(_b = (_a = pm.currentStep) === null || _a === void 0 ? void 0 : _a.artifacts) === null || _b === void 0 ? void 0 : _b.push(path);
|
|
176
|
+
return [path, contents];
|
|
177
|
+
},
|
|
97
178
|
],
|
|
98
179
|
[
|
|
99
180
|
"customScreenShot",
|
|
100
|
-
(opts, p) =>
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
181
|
+
(opts, p) => {
|
|
182
|
+
var _a, _b;
|
|
183
|
+
const path = `suite-${suite}/beforeEach/${opts.path}`;
|
|
184
|
+
(_b = (_a = pm.currentStep) === null || _a === void 0 ? void 0 : _a.artifacts) === null || _b === void 0 ? void 0 : _b.push(path);
|
|
185
|
+
return [
|
|
186
|
+
Object.assign(Object.assign({}, opts), { path }),
|
|
187
|
+
p,
|
|
188
|
+
];
|
|
189
|
+
},
|
|
104
190
|
],
|
|
105
|
-
["createWriteStream", (fp) =>
|
|
191
|
+
["createWriteStream", (fp) => {
|
|
192
|
+
var _a, _b;
|
|
193
|
+
const path = `suite-${suite}/beforeEach/${fp}`;
|
|
194
|
+
(_b = (_a = pm.currentStep) === null || _a === void 0 ? void 0 : _a.artifacts) === null || _b === void 0 ? void 0 : _b.push(path);
|
|
195
|
+
return [path];
|
|
196
|
+
}],
|
|
106
197
|
]);
|
|
107
198
|
exports.beforeEachProxy = beforeEachProxy;
|
|
108
199
|
const beforeAllProxy = (pm, suite) => baseProxy(pm, [
|
|
109
200
|
[
|
|
110
201
|
"writeFileSync",
|
|
111
|
-
(fp, contents) =>
|
|
202
|
+
(fp, contents) => {
|
|
203
|
+
var _a, _b;
|
|
204
|
+
const path = `suite-${suite}/beforeAll/${fp}`;
|
|
205
|
+
(_b = (_a = pm.currentStep) === null || _a === void 0 ? void 0 : _a.artifacts) === null || _b === void 0 ? void 0 : _b.push(path);
|
|
206
|
+
return [path, contents];
|
|
207
|
+
},
|
|
112
208
|
],
|
|
113
209
|
[
|
|
114
210
|
"customScreenShot",
|
|
115
|
-
(opts, p) =>
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
211
|
+
(opts, p) => {
|
|
212
|
+
var _a, _b;
|
|
213
|
+
const path = `suite-${suite}/beforeAll/${opts.path}`;
|
|
214
|
+
(_b = (_a = pm.currentStep) === null || _a === void 0 ? void 0 : _a.artifacts) === null || _b === void 0 ? void 0 : _b.push(path);
|
|
215
|
+
return [
|
|
216
|
+
Object.assign(Object.assign({}, opts), { path }),
|
|
217
|
+
p,
|
|
218
|
+
];
|
|
219
|
+
},
|
|
119
220
|
],
|
|
120
|
-
["createWriteStream", (fp) =>
|
|
221
|
+
["createWriteStream", (fp) => {
|
|
222
|
+
var _a, _b;
|
|
223
|
+
const path = `suite-${suite}/beforeAll/${fp}`;
|
|
224
|
+
(_b = (_a = pm.currentStep) === null || _a === void 0 ? void 0 : _a.artifacts) === null || _b === void 0 ? void 0 : _b.push(path);
|
|
225
|
+
return [path];
|
|
226
|
+
}],
|
|
121
227
|
]);
|
|
122
228
|
exports.beforeAllProxy = beforeAllProxy;
|
|
123
229
|
const afterAllProxy = (pm, suite) => baseProxy(pm, [
|
|
124
|
-
["createWriteStream", (fp) =>
|
|
230
|
+
["createWriteStream", (fp) => {
|
|
231
|
+
var _a, _b;
|
|
232
|
+
const path = `suite-${suite}/afterAll/${fp}`;
|
|
233
|
+
(_b = (_a = pm.currentStep) === null || _a === void 0 ? void 0 : _a.artifacts) === null || _b === void 0 ? void 0 : _b.push(path);
|
|
234
|
+
return [path];
|
|
235
|
+
}],
|
|
125
236
|
[
|
|
126
237
|
"writeFileSync",
|
|
127
|
-
(fp, contents) =>
|
|
238
|
+
(fp, contents) => {
|
|
239
|
+
var _a, _b;
|
|
240
|
+
const path = `suite-${suite}/afterAll/${fp}`;
|
|
241
|
+
(_b = (_a = pm.currentStep) === null || _a === void 0 ? void 0 : _a.artifacts) === null || _b === void 0 ? void 0 : _b.push(path);
|
|
242
|
+
return [path, contents];
|
|
243
|
+
},
|
|
128
244
|
],
|
|
129
245
|
[
|
|
130
246
|
"customScreenShot",
|
|
131
|
-
(opts, p) =>
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
247
|
+
(opts, p) => {
|
|
248
|
+
var _a, _b;
|
|
249
|
+
const path = `suite-${suite}/afterAll/${opts.path}`;
|
|
250
|
+
(_b = (_a = pm.currentStep) === null || _a === void 0 ? void 0 : _a.artifacts) === null || _b === void 0 ? void 0 : _b.push(path);
|
|
251
|
+
return [
|
|
252
|
+
Object.assign(Object.assign({}, opts), { path }),
|
|
253
|
+
p,
|
|
254
|
+
];
|
|
255
|
+
},
|
|
135
256
|
],
|
|
136
257
|
]);
|
|
137
258
|
exports.afterAllProxy = afterAllProxy;
|
|
@@ -4,6 +4,12 @@ const config = {
|
|
|
4
4
|
projects: {
|
|
5
5
|
allTests: {
|
|
6
6
|
tests: [
|
|
7
|
+
[
|
|
8
|
+
"src/components/pure/ProjectPageView.test/index.ts",
|
|
9
|
+
"web",
|
|
10
|
+
{ ports: 0 },
|
|
11
|
+
[],
|
|
12
|
+
],
|
|
7
13
|
["src/lib/BaseSuite.test/node.test.ts", "node", { ports: 0 }, []],
|
|
8
14
|
["src/lib/BaseSuite.test/pure.test.ts", "pure", { ports: 0 }, []],
|
|
9
15
|
["src/lib/BaseSuite.test/web.test.ts", "web", { ports: 0 }, []],
|