testeranto 0.172.0 → 0.177.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.
Files changed (203) hide show
  1. package/README.md +2 -4
  2. package/dist/common/src/PM/base.js +5 -1
  3. package/dist/common/src/PM/main.js +57 -54
  4. package/dist/common/src/PM/node.js +4 -1
  5. package/dist/common/src/PM/pure.js +4 -1
  6. package/dist/common/src/PM/web.js +6 -3
  7. package/dist/common/src/Pure.js +0 -4
  8. package/dist/common/src/Pure.test.js +1 -1
  9. package/dist/common/src/ReportServer.js +2 -126
  10. package/dist/common/src/ReportServer.test.ts/index.js +78 -0
  11. package/dist/common/src/ReportServerLib.js +141 -0
  12. package/dist/common/src/components/pure/ProjectPageView.test/implementation.js +1 -1
  13. package/dist/common/src/esbuildConfigs/node.js +1 -3
  14. package/dist/common/src/lib/BaseSuite.js +13 -11
  15. package/dist/common/src/lib/abstractBase.js +39 -40
  16. package/dist/common/src/lib/baseBuilder.test/baseBuilder.test.implementation.js +10 -9
  17. package/dist/common/src/lib/baseBuilder.test/baseBuilder.test.specification.js +7 -7
  18. package/dist/common/src/lib/basebuilder.js +13 -2
  19. package/dist/common/src/lib/core.js +1 -0
  20. package/dist/common/src/lib/pmProxy.js +215 -201
  21. package/dist/common/src/lib/pmProxy.test/adapter.js +2 -2
  22. package/dist/common/src/lib/pmProxy.test/implementation.js +1 -1
  23. package/dist/common/testeranto.config.js +47 -32
  24. package/dist/common/tsconfig.common.tsbuildinfo +1 -1
  25. package/dist/module/src/PM/base.js +5 -1
  26. package/dist/module/src/PM/main.js +22 -19
  27. package/dist/module/src/PM/node.js +4 -1
  28. package/dist/module/src/PM/pure.js +4 -1
  29. package/dist/module/src/PM/web.js +6 -3
  30. package/dist/module/src/Pure.js +0 -4
  31. package/dist/module/src/Pure.test.js +1 -1
  32. package/dist/module/src/ReportServer.js +2 -123
  33. package/dist/module/src/ReportServer.test.ts/index.js +73 -0
  34. package/dist/module/src/ReportServerLib.js +134 -0
  35. package/dist/module/src/TestPage.js +29 -17
  36. package/dist/module/src/components/pure/ProjectPageView.test/implementation.js +1 -1
  37. package/dist/module/src/components/pure/TestPageView.js +29 -17
  38. package/dist/module/src/esbuildConfigs/node.js +1 -3
  39. package/dist/module/src/lib/BaseSuite.js +13 -11
  40. package/dist/module/src/lib/abstractBase.js +39 -40
  41. package/dist/module/src/lib/baseBuilder.test/baseBuilder.test.implementation.js +10 -9
  42. package/dist/module/src/lib/baseBuilder.test/baseBuilder.test.specification.js +7 -7
  43. package/dist/module/src/lib/basebuilder.js +13 -2
  44. package/dist/module/src/lib/core.js +1 -0
  45. package/dist/module/src/lib/pmProxy.js +215 -201
  46. package/dist/module/src/lib/pmProxy.test/adapter.js +2 -2
  47. package/dist/module/src/lib/pmProxy.test/implementation.js +1 -1
  48. package/dist/module/testeranto.config.js +47 -32
  49. package/dist/module/tsconfig.module.tsbuildinfo +1 -1
  50. package/dist/prebuild/App.js +3 -3
  51. package/dist/prebuild/ReportServer.mjs +21 -9
  52. package/dist/prebuild/build.mjs +1 -1
  53. package/dist/prebuild/run.mjs +27 -20
  54. package/dist/types/src/PM/base.d.ts +1 -1
  55. package/dist/types/src/PM/node.d.ts +1 -1
  56. package/dist/types/src/PM/pure.d.ts +1 -1
  57. package/dist/types/src/PM/web.d.ts +1 -1
  58. package/dist/types/src/ReportServer.test.ts/index.d.ts +29 -0
  59. package/dist/types/src/ReportServerLib.d.ts +1 -0
  60. package/dist/types/src/Types.d.ts +0 -1
  61. package/dist/types/src/components/pure/ProjectPageView.test/index.d.ts +2 -1
  62. package/dist/types/src/lib/BaseSuite.d.ts +2 -0
  63. package/dist/types/src/lib/abstractBase.d.ts +5 -7
  64. package/dist/types/src/lib/baseBuilder.test/baseBuilder.test.types.d.ts +7 -4
  65. package/dist/types/src/lib/pmProxy.d.ts +3 -3
  66. package/dist/types/tsconfig.types.tsbuildinfo +1 -1
  67. package/package.json +3 -3
  68. package/src/PM/base.ts +7 -5
  69. package/src/PM/main.ts +26 -21
  70. package/src/PM/node.ts +6 -1
  71. package/src/PM/pure.ts +6 -1
  72. package/src/PM/web.ts +7 -3
  73. package/src/Pure.test.ts +6 -6
  74. package/src/Pure.ts +0 -8
  75. package/src/ReportServer.test.ts/index.ts +194 -0
  76. package/src/ReportServer.ts +2 -132
  77. package/src/ReportServerLib.ts +147 -0
  78. package/src/TestPage.tsx +65 -5
  79. package/src/Types.ts +0 -1
  80. package/src/components/pure/ProjectPageView.test/implementation.tsx +1 -1
  81. package/src/components/pure/TestPageView.tsx +65 -5
  82. package/src/esbuildConfigs/node.ts +1 -1
  83. package/src/lib/BaseSuite.ts +16 -21
  84. package/src/lib/abstractBase.ts +59 -48
  85. package/src/lib/baseBuilder.test/baseBuilder.test.implementation.ts +22 -10
  86. package/src/lib/baseBuilder.test/baseBuilder.test.specification.ts +9 -9
  87. package/src/lib/baseBuilder.test/baseBuilder.test.types.ts +7 -4
  88. package/src/lib/basebuilder.ts +13 -4
  89. package/src/lib/core.ts +1 -0
  90. package/src/lib/pmProxy.test/adapter.ts +2 -2
  91. package/src/lib/pmProxy.test/implementation.ts +3 -3
  92. package/src/lib/pmProxy.test/types.ts +0 -2
  93. package/src/lib/pmProxy.ts +135 -80
  94. package/testeranto/App.js +3 -3
  95. package/testeranto/bundles/node/core/metafile.json +8 -0
  96. package/testeranto/bundles/pure/core/metafile.json +8 -0
  97. package/testeranto/bundles/web/core/metafile.json +15086 -0
  98. package/testeranto/bundles/web/{allTests → core}/src/components/pure/ProjectPageView.test/index.html +1 -1
  99. package/testeranto/bundles/web/{allTests → core}/src/components/pure/ProjectPageView.test/index.mjs +4109 -1642
  100. package/testeranto/projects.json +1 -1
  101. package/testeranto/reports/core/config.json +24 -0
  102. package/testeranto/reports/{allTests → core}/src/components/pure/ProjectPageView.test/index/web/lint_errors.txt +6 -1
  103. package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/logs.txt +59 -0
  104. package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/message.txt +2 -0
  105. package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/prompt.txt +27 -0
  106. package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/suite-0/given-basicRender/then-0/butThen/happyPath.png +0 -0
  107. package/testeranto/reports/{allTests → core}/src/components/pure/ProjectPageView.test/index/web/type_errors.txt +15 -33
  108. package/testeranto/reports/core/summary.json +9 -0
  109. package/testeranto.config.ts +49 -32
  110. package/tsc.log +78 -92
  111. package/testeranto/bundles/node/allTests/chunk-3EUGBAOM.mjs +0 -113
  112. package/testeranto/bundles/node/allTests/chunk-E75CSRER.mjs +0 -800
  113. package/testeranto/bundles/node/allTests/chunk-M6DO7VMB.mjs +0 -252
  114. package/testeranto/bundles/node/allTests/metafile.json +0 -1229
  115. package/testeranto/bundles/node/allTests/src/lib/BaseSuite.test/node.test.mjs +0 -323
  116. package/testeranto/bundles/node/allTests/src/lib/baseBuilder.test/baseBuilder.test.node.mjs +0 -223
  117. package/testeranto/bundles/node/allTests/src/lib/classBuilder.test/classBuilder.test.mjs +0 -411
  118. package/testeranto/bundles/node/allTests/src/lib/core.test/core.test.mjs +0 -528
  119. package/testeranto/bundles/node/allTests/src/lib/pmProxy.test/index.mjs +0 -4752
  120. package/testeranto/bundles/pure/allTests/chunk-KHDVEHF7.mjs +0 -185
  121. package/testeranto/bundles/pure/allTests/chunk-VMUSFSZM.mjs +0 -797
  122. package/testeranto/bundles/pure/allTests/metafile.json +0 -1054
  123. package/testeranto/bundles/pure/allTests/src/Pure.test.mjs +0 -429
  124. package/testeranto/bundles/pure/allTests/src/lib/BaseSuite.test/pure.test.mjs +0 -425
  125. package/testeranto/bundles/pure/allTests/src/lib/baseBuilder.test/baseBuilder.test.pure.mjs +0 -381
  126. package/testeranto/bundles/web/allTests/chunk-HPYA4YZC.mjs +0 -2283
  127. package/testeranto/bundles/web/allTests/chunk-U7AW26HL.mjs +0 -997
  128. package/testeranto/bundles/web/allTests/metafile.json +0 -25
  129. package/testeranto/bundles/web/allTests/src/lib/BaseSuite.test/web.test.html +0 -19
  130. package/testeranto/bundles/web/allTests/src/lib/BaseSuite.test/web.test.mjs +0 -440
  131. package/testeranto/bundles/web/allTests/src/lib/baseBuilder.test/baseBuilder.test.web.html +0 -19
  132. package/testeranto/bundles/web/allTests/src/lib/baseBuilder.test/baseBuilder.test.web.mjs +0 -244
  133. package/testeranto/reports/allTests/config.json +0 -104
  134. package/testeranto/reports/allTests/src/Pure.test/pure/lint_errors.txt +0 -0
  135. package/testeranto/reports/allTests/src/Pure.test/pure/message.txt +0 -2
  136. package/testeranto/reports/allTests/src/Pure.test/pure/prompt.txt +0 -13
  137. package/testeranto/reports/allTests/src/Pure.test/pure/type_errors.txt +0 -101
  138. package/testeranto/reports/allTests/src/components/pure/ProjectPageView.test/index/web/bdd_errors.txt +0 -1
  139. package/testeranto/reports/allTests/src/components/pure/ProjectPageView.test/index/web/logs.txt +0 -50
  140. package/testeranto/reports/allTests/src/components/pure/ProjectPageView.test/index/web/message.txt +0 -2
  141. package/testeranto/reports/allTests/src/components/pure/ProjectPageView.test/index/web/prompt.txt +0 -17
  142. package/testeranto/reports/allTests/src/components/pure/ProjectPageView.test/index/web/tests.json +0 -32
  143. package/testeranto/reports/allTests/src/lib/BaseSuite.test/node.test/node/bdd_errors.txt +0 -1
  144. package/testeranto/reports/allTests/src/lib/BaseSuite.test/node.test/node/lint_errors.txt +0 -0
  145. package/testeranto/reports/allTests/src/lib/BaseSuite.test/node.test/node/logs.txt +0 -52
  146. package/testeranto/reports/allTests/src/lib/BaseSuite.test/node.test/node/message.txt +0 -2
  147. package/testeranto/reports/allTests/src/lib/BaseSuite.test/node.test/node/prompt.txt +0 -13
  148. package/testeranto/reports/allTests/src/lib/BaseSuite.test/node.test/node/tests.json +0 -31
  149. package/testeranto/reports/allTests/src/lib/BaseSuite.test/node.test/node/type_errors.txt +0 -111
  150. package/testeranto/reports/allTests/src/lib/BaseSuite.test/pure.test/pure/bdd_errors.txt +0 -1
  151. package/testeranto/reports/allTests/src/lib/BaseSuite.test/pure.test/pure/lint_errors.txt +0 -0
  152. package/testeranto/reports/allTests/src/lib/BaseSuite.test/pure.test/pure/message.txt +0 -2
  153. package/testeranto/reports/allTests/src/lib/BaseSuite.test/pure.test/pure/prompt.txt +0 -14
  154. package/testeranto/reports/allTests/src/lib/BaseSuite.test/pure.test/pure/tests.json +0 -31
  155. package/testeranto/reports/allTests/src/lib/BaseSuite.test/pure.test/pure/type_errors.txt +0 -111
  156. package/testeranto/reports/allTests/src/lib/BaseSuite.test/web.test/web/bdd_errors.txt +0 -1
  157. package/testeranto/reports/allTests/src/lib/BaseSuite.test/web.test/web/lint_errors.txt +0 -0
  158. package/testeranto/reports/allTests/src/lib/BaseSuite.test/web.test/web/logs.txt +0 -108
  159. package/testeranto/reports/allTests/src/lib/BaseSuite.test/web.test/web/message.txt +0 -2
  160. package/testeranto/reports/allTests/src/lib/BaseSuite.test/web.test/web/prompt.txt +0 -14
  161. package/testeranto/reports/allTests/src/lib/BaseSuite.test/web.test/web/tests.json +0 -31
  162. package/testeranto/reports/allTests/src/lib/BaseSuite.test/web.test/web/type_errors.txt +0 -111
  163. package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.node/node/bdd_errors.txt +0 -1
  164. package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.node/node/lint_errors.txt +0 -0
  165. package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.node/node/logs.txt +0 -35
  166. package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.node/node/message.txt +0 -2
  167. package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.node/node/prompt.txt +0 -16
  168. package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.node/node/tests.json +0 -77
  169. package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.node/node/type_errors.txt +0 -62
  170. package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.pure/pure/lint_errors.txt +0 -0
  171. package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.pure/pure/message.txt +0 -2
  172. package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.pure/pure/prompt.txt +0 -18
  173. package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.pure/pure/type_errors.txt +0 -62
  174. package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.web/web/bdd_errors.txt +0 -1
  175. package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.web/web/lint_errors.txt +0 -0
  176. package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.web/web/logs.txt +0 -69
  177. package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.web/web/message.txt +0 -2
  178. package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.web/web/prompt.txt +0 -16
  179. package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.web/web/tests.json +0 -77
  180. package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.web/web/type_errors.txt +0 -62
  181. package/testeranto/reports/allTests/src/lib/classBuilder.test/classBuilder.test/node/bdd_errors.txt +0 -1
  182. package/testeranto/reports/allTests/src/lib/classBuilder.test/classBuilder.test/node/lint_errors.txt +0 -0
  183. package/testeranto/reports/allTests/src/lib/classBuilder.test/classBuilder.test/node/logs.txt +0 -700
  184. package/testeranto/reports/allTests/src/lib/classBuilder.test/classBuilder.test/node/message.txt +0 -2
  185. package/testeranto/reports/allTests/src/lib/classBuilder.test/classBuilder.test/node/prompt.txt +0 -16
  186. package/testeranto/reports/allTests/src/lib/classBuilder.test/classBuilder.test/node/tests.json +0 -164
  187. package/testeranto/reports/allTests/src/lib/classBuilder.test/classBuilder.test/node/type_errors.txt +0 -138
  188. package/testeranto/reports/allTests/src/lib/core.test/core.test/node/lint_errors.txt +0 -21
  189. package/testeranto/reports/allTests/src/lib/core.test/core.test/node/logs.txt +0 -7
  190. package/testeranto/reports/allTests/src/lib/core.test/core.test/node/message.txt +0 -2
  191. package/testeranto/reports/allTests/src/lib/core.test/core.test/node/prompt.txt +0 -18
  192. package/testeranto/reports/allTests/src/lib/core.test/core.test/node/type_errors.txt +0 -63
  193. package/testeranto/reports/allTests/src/lib/pmProxy.test/index/node/bdd_errors.txt +0 -1
  194. package/testeranto/reports/allTests/src/lib/pmProxy.test/index/node/lint_errors.txt +0 -20
  195. package/testeranto/reports/allTests/src/lib/pmProxy.test/index/node/logs.txt +0 -31
  196. package/testeranto/reports/allTests/src/lib/pmProxy.test/index/node/message.txt +0 -2
  197. package/testeranto/reports/allTests/src/lib/pmProxy.test/index/node/prompt.txt +0 -16
  198. package/testeranto/reports/allTests/src/lib/pmProxy.test/index/node/tests.json +0 -134
  199. package/testeranto/reports/allTests/src/lib/pmProxy.test/index/node/type_errors.txt +0 -76
  200. package/testeranto/reports/allTests/summary.json +0 -79
  201. package/testeranto/reportsnode_build_errors +0 -20
  202. package/testeranto/reportspure_build_errors +0 -343
  203. package/testeranto/reportsweb_build_errors +0 -25
@@ -17,53 +17,53 @@ const baseProxy = function (pm, mappings) {
17
17
  },
18
18
  });
19
19
  };
20
- const butThenProxy = (pm, filepath) => {
20
+ const butThenProxy = (pm, filepath, addArtifact) => {
21
21
  return baseProxy(pm, [
22
22
  [
23
23
  "screencast",
24
24
  (opts, p) => {
25
- var _a;
26
25
  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
- }
26
+ addArtifact(path);
27
+ // console.log(
28
+ // `[ARTIFACT] Preparing to add to ${step.constructor.name}:`,
29
+ // path
30
+ // );
31
+ // try {
32
+ // console.log(
33
+ // `[ARTIFACT] Successfully added to ${step.constructor.name}`
34
+ // );
35
+ // console.log(`[ARTIFACT] Current artifacts:`, JSON.stringify(step.artifacts));
36
+ // } catch (e) {
37
+ // console.error(`[ARTIFACT] Failed to add ${path}:`, e);
38
+ // throw e;
39
+ // }
34
40
  return [
35
41
  Object.assign(Object.assign({}, opts), { path }),
36
42
  p,
37
43
  ];
38
44
  },
39
45
  ],
40
- ["createWriteStream", (fp) => {
41
- var _a;
46
+ [
47
+ "createWriteStream",
48
+ (fp) => {
42
49
  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
+ addArtifact(path);
50
51
  return [path];
51
- }],
52
+ },
53
+ ],
52
54
  [
53
55
  "writeFileSync",
54
56
  (fp, contents) => {
55
- var _a, _b;
56
57
  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
+ addArtifact(path);
58
59
  return [path, contents];
59
60
  },
60
61
  ],
61
62
  [
62
63
  "customScreenShot",
63
64
  (opts, p) => {
64
- var _a, _b;
65
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);
66
+ addArtifact(path);
67
67
  return [
68
68
  Object.assign(Object.assign({}, opts), { path }),
69
69
  p,
@@ -73,186 +73,200 @@ const butThenProxy = (pm, filepath) => {
73
73
  ]);
74
74
  };
75
75
  exports.butThenProxy = butThenProxy;
76
- const andWhenProxy = (pm, filepath) => baseProxy(pm, [
77
- [
78
- "screencast",
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
- },
88
- ],
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
- }],
101
- [
102
- "customScreenShot",
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
- },
112
- ],
113
- ]);
76
+ const andWhenProxy = (pm, filepath, addArtifact) => {
77
+ return baseProxy(pm, [
78
+ [
79
+ "screencast",
80
+ (opts, p) => {
81
+ const path = `${filepath}/andWhen/${opts.path}`;
82
+ addArtifact(path);
83
+ return [
84
+ Object.assign(Object.assign({}, opts), { path }),
85
+ p,
86
+ ];
87
+ },
88
+ ],
89
+ [
90
+ "createWriteStream",
91
+ (fp) => {
92
+ const path = `${filepath}/andWhen/${fp}`;
93
+ addArtifact(path);
94
+ return [path];
95
+ },
96
+ ],
97
+ [
98
+ "writeFileSync",
99
+ (fp, contents) => {
100
+ const path = `${filepath}/andWhen/${fp}`;
101
+ addArtifact(path);
102
+ return [path, contents];
103
+ },
104
+ ],
105
+ [
106
+ "customScreenShot",
107
+ (opts, p) => {
108
+ const path = `${filepath}/andWhen/${opts.path}`;
109
+ // console.log("STEP2", JSON.stringify(step));
110
+ addArtifact(path);
111
+ return [
112
+ Object.assign(Object.assign({}, opts), { path }),
113
+ p,
114
+ ];
115
+ },
116
+ ],
117
+ ]);
118
+ };
114
119
  exports.andWhenProxy = andWhenProxy;
115
- const afterEachProxy = (pm, suite, given) => baseProxy(pm, [
116
- [
117
- "screencast",
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
- },
127
- ],
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
- }],
134
- [
135
- "writeFileSync",
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
- },
142
- ],
143
- [
144
- "customScreenShot",
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
- },
154
- ],
155
- ]);
120
+ const afterEachProxy = (pm, suite, given, addArtifact) => {
121
+ return baseProxy(pm, [
122
+ [
123
+ "screencast",
124
+ (opts, p) => {
125
+ const path = `suite-${suite}/given-${given}/afterEach/${opts.path}`;
126
+ addArtifact(path);
127
+ return [
128
+ Object.assign(Object.assign({}, opts), { path }),
129
+ p,
130
+ ];
131
+ },
132
+ ],
133
+ [
134
+ "createWriteStream",
135
+ (fp) => {
136
+ const path = `suite-${suite}/afterEach/${fp}`;
137
+ addArtifact(path);
138
+ return [path];
139
+ },
140
+ ],
141
+ [
142
+ "writeFileSync",
143
+ (fp, contents) => {
144
+ const path = `suite-${suite}/given-${given}/afterEach/${fp}`;
145
+ addArtifact(path);
146
+ return [path, contents];
147
+ },
148
+ ],
149
+ [
150
+ "customScreenShot",
151
+ (opts, p) => {
152
+ const path = `suite-${suite}/given-${given}/afterEach/${opts.path}`;
153
+ addArtifact(path);
154
+ // console.log("STEP3", JSON.stringify(step));
155
+ return [
156
+ Object.assign(Object.assign({}, opts), { path }),
157
+ p,
158
+ ];
159
+ },
160
+ ],
161
+ ]);
162
+ };
156
163
  exports.afterEachProxy = afterEachProxy;
157
- const beforeEachProxy = (pm, suite) => baseProxy(pm, [
158
- [
159
- "screencast",
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
- },
169
- ],
170
- [
171
- "writeFileSync",
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
- },
178
- ],
179
- [
180
- "customScreenShot",
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
- },
190
- ],
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
- }],
197
- ]);
164
+ const beforeEachProxy = (pm, suite, addArtifact) => {
165
+ return baseProxy(pm, [
166
+ [
167
+ "screencast",
168
+ (opts, p) => {
169
+ const path = `suite-${suite}/beforeEach/${opts.path}`;
170
+ addArtifact(path);
171
+ return [
172
+ Object.assign(Object.assign({}, opts), { path }),
173
+ p,
174
+ ];
175
+ },
176
+ ],
177
+ [
178
+ "writeFileSync",
179
+ (fp, contents) => {
180
+ const path = `suite-${suite}/beforeEach/${fp}`;
181
+ addArtifact(path);
182
+ return [path, contents];
183
+ },
184
+ ],
185
+ [
186
+ "customScreenShot",
187
+ (opts, p) => {
188
+ const path = `suite-${suite}/beforeEach/${opts.path}`;
189
+ addArtifact(path);
190
+ return [
191
+ Object.assign(Object.assign({}, opts), { path }),
192
+ p,
193
+ ];
194
+ },
195
+ ],
196
+ [
197
+ "createWriteStream",
198
+ (fp) => {
199
+ const path = `suite-${suite}/beforeEach/${fp}`;
200
+ addArtifact(path);
201
+ return [path];
202
+ },
203
+ ],
204
+ ]);
205
+ };
198
206
  exports.beforeEachProxy = beforeEachProxy;
199
- const beforeAllProxy = (pm, suite) => baseProxy(pm, [
200
- [
201
- "writeFileSync",
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
- },
208
- ],
209
- [
210
- "customScreenShot",
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
- },
220
- ],
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
- }],
227
- ]);
207
+ const beforeAllProxy = (pm, suite, addArtifact) => {
208
+ return baseProxy(pm, [
209
+ [
210
+ "writeFileSync",
211
+ (fp, contents) => {
212
+ const path = `suite-${suite}/beforeAll/${fp}`;
213
+ addArtifact(path);
214
+ return [path, contents];
215
+ },
216
+ ],
217
+ [
218
+ "customScreenShot",
219
+ (opts, p) => {
220
+ const path = `suite-${suite}/beforeAll/${opts.path}`;
221
+ addArtifact(path);
222
+ return [
223
+ Object.assign(Object.assign({}, opts), { path }),
224
+ p,
225
+ ];
226
+ },
227
+ ],
228
+ [
229
+ "createWriteStream",
230
+ (fp) => {
231
+ const path = `suite-${suite}/beforeAll/${fp}`;
232
+ addArtifact(path);
233
+ return [path];
234
+ },
235
+ ],
236
+ ]);
237
+ };
228
238
  exports.beforeAllProxy = beforeAllProxy;
229
- const afterAllProxy = (pm, suite) => baseProxy(pm, [
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
- }],
236
- [
237
- "writeFileSync",
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
- },
244
- ],
245
- [
246
- "customScreenShot",
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
- },
256
- ],
257
- ]);
239
+ const afterAllProxy = (pm, suite, addArtifact) => {
240
+ return baseProxy(pm, [
241
+ [
242
+ "createWriteStream",
243
+ (fp) => {
244
+ const path = `suite-${suite}/afterAll/${fp}`;
245
+ addArtifact(path);
246
+ return [path];
247
+ },
248
+ ],
249
+ [
250
+ "writeFileSync",
251
+ (fp, contents) => {
252
+ const path = `suite-${suite}/afterAll/${fp}`;
253
+ console.log("MARK10");
254
+ addArtifact(path);
255
+ return [path, contents];
256
+ },
257
+ ],
258
+ [
259
+ "customScreenShot",
260
+ (opts, p) => {
261
+ const path = `suite-${suite}/afterAll/${opts.path}`;
262
+ addArtifact(path);
263
+ console.log("MARK9");
264
+ return [
265
+ Object.assign(Object.assign({}, opts), { path }),
266
+ p,
267
+ ];
268
+ },
269
+ ],
270
+ ]);
271
+ };
258
272
  exports.afterAllProxy = afterAllProxy;
@@ -18,11 +18,11 @@ exports.testAdapter = {
18
18
  // };
19
19
  },
20
20
  andWhen: async (store, whenCB, testResource, pm) => {
21
- const proxiedPM = (0, pmProxy_1.andWhenProxy)(pm, "some/path");
21
+ const proxiedPM = (0, pmProxy_1.andWhenProxy)(pm, "some/path", store);
22
22
  return whenCB(store, proxiedPM);
23
23
  },
24
24
  butThen: async (store, thenCB, testResource, pm) => {
25
- const proxiedPM = (0, pmProxy_1.butThenProxy)(pm, "some/path");
25
+ const proxiedPM = (0, pmProxy_1.butThenProxy)(pm, "some/path", store);
26
26
  return thenCB(store, proxiedPM);
27
27
  },
28
28
  afterEach: async (store, key, pm) => store,
@@ -17,7 +17,7 @@ exports.implementation = {
17
17
  var _a, _b, _c, _d, _e, _f, _g, _h;
18
18
  const mockPm = new mockPMBase_1.MockPMBase();
19
19
  const filepath = "test/path";
20
- const proxiedPm = store.butThenProxy(mockPm, filepath);
20
+ const rewritePath = createPathRewriter(`${filepath}/butThen`);
21
21
  let actualPath;
22
22
  let actualContent;
23
23
  try {
@@ -1,8 +1,24 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ // TODO- this config file is horrible. I need to redo how config files are handled.
3
4
  const config = {
4
5
  projects: {
5
- allTests: {
6
+ // staticSite: {
7
+ // tests: [["src/ReportServer.test.ts/index.ts", "node", { ports: 1 }, []]],
8
+ // clearScreen: false,
9
+ // debugger: false,
10
+ // externals: [],
11
+ // featureIngestor: function (s: string): Promise<string> {
12
+ // throw new Error("Function not implemented.");
13
+ // },
14
+ // importPlugins: [],
15
+ // minify: false,
16
+ // nodePlugins: [],
17
+ // ports: ["3334"],
18
+ // src: "",
19
+ // webPlugins: [],
20
+ // },
21
+ core: {
6
22
  tests: [
7
23
  [
8
24
  "src/components/pure/ProjectPageView.test/index.ts",
@@ -10,36 +26,36 @@ const config = {
10
26
  { ports: 0 },
11
27
  [],
12
28
  ],
13
- ["src/lib/BaseSuite.test/node.test.ts", "node", { ports: 0 }, []],
14
- ["src/lib/BaseSuite.test/pure.test.ts", "pure", { ports: 0 }, []],
15
- ["src/lib/BaseSuite.test/web.test.ts", "web", { ports: 0 }, []],
16
- ["src/Pure.test.ts", "pure", { ports: 0 }, []],
17
- ["src/lib/pmProxy.test/index.ts", "node", { ports: 0 }, []],
18
- ["src/lib/core.test/core.test.ts", "node", { ports: 0 }, []],
19
- [
20
- "src/lib/classBuilder.test/classBuilder.test.ts",
21
- "node",
22
- { ports: 0 },
23
- [],
24
- ],
25
- [
26
- "src/lib/baseBuilder.test/baseBuilder.test.node.ts",
27
- "node",
28
- { ports: 0 },
29
- [],
30
- ],
31
- [
32
- "src/lib/baseBuilder.test/baseBuilder.test.pure.ts",
33
- "pure",
34
- { ports: 0 },
35
- [],
36
- ],
37
- [
38
- "src/lib/baseBuilder.test/baseBuilder.test.web.ts",
39
- "web",
40
- { ports: 0 },
41
- [],
42
- ],
29
+ // ["src/lib/BaseSuite.test/node.test.ts", "node", { ports: 0 }, []],
30
+ // ["src/lib/BaseSuite.test/pure.test.ts", "pure", { ports: 0 }, []],
31
+ // ["src/lib/BaseSuite.test/web.test.ts", "web", { ports: 0 }, []],
32
+ // ["src/Pure.test.ts", "pure", { ports: 0 }, []],
33
+ // ["src/lib/pmProxy.test/index.ts", "node", { ports: 0 }, []],
34
+ // ["src/lib/core.test/core.test.ts", "node", { ports: 0 }, []],
35
+ // [
36
+ // "src/lib/classBuilder.test/classBuilder.test.ts",
37
+ // "node",
38
+ // { ports: 0 },
39
+ // [],
40
+ // ],
41
+ // [
42
+ // "src/lib/baseBuilder.test/baseBuilder.test.node.ts",
43
+ // "node",
44
+ // { ports: 0 },
45
+ // [],
46
+ // ],
47
+ // [
48
+ // "src/lib/baseBuilder.test/baseBuilder.test.pure.ts",
49
+ // "pure",
50
+ // { ports: 0 },
51
+ // [],
52
+ // ],
53
+ // [
54
+ // "src/lib/baseBuilder.test/baseBuilder.test.web.ts",
55
+ // "web",
56
+ // { ports: 0 },
57
+ // [],
58
+ // ],
43
59
  // ["src/mothership/test.ts", "node", { ports: 0 }, []],
44
60
  // ["./src/lib/abstractBase/index.ts", "node", { ports: 0 }, []],
45
61
  // [
@@ -70,6 +86,5 @@ const config = {
70
86
  webPlugins: [],
71
87
  },
72
88
  },
73
- reportDomain: "https://adamwong246.github.io/testeranto",
74
89
  };
75
90
  exports.default = config;