testeranto 0.172.0 → 0.173.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 (193) hide show
  1. package/README.md +2 -4
  2. package/dist/common/src/PM/base.js +4 -0
  3. package/dist/common/src/PM/main.js +11 -4
  4. package/dist/common/src/PM/node.js +1 -1
  5. package/dist/common/src/PM/web.js +3 -3
  6. package/dist/common/src/ReportServer.js +2 -126
  7. package/dist/common/src/ReportServer.test.ts/index.js +78 -0
  8. package/dist/common/src/ReportServerLib.js +135 -0
  9. package/dist/common/src/components/pure/ProjectPageView.test/implementation.js +1 -1
  10. package/dist/common/src/lib/abstractBase.js +2 -0
  11. package/dist/common/src/lib/baseBuilder.test/baseBuilder.test.implementation.js +10 -9
  12. package/dist/common/src/lib/baseBuilder.test/baseBuilder.test.specification.js +7 -7
  13. package/dist/common/src/lib/basebuilder.js +8 -2
  14. package/dist/common/src/lib/pmProxy.js +54 -150
  15. package/dist/common/testeranto.config.js +35 -20
  16. package/dist/common/tsconfig.common.tsbuildinfo +1 -1
  17. package/dist/module/src/PM/base.js +4 -0
  18. package/dist/module/src/PM/main.js +11 -4
  19. package/dist/module/src/PM/node.js +1 -1
  20. package/dist/module/src/PM/web.js +3 -3
  21. package/dist/module/src/ReportServer.js +2 -123
  22. package/dist/module/src/ReportServer.test.ts/index.js +73 -0
  23. package/dist/module/src/ReportServerLib.js +128 -0
  24. package/dist/module/src/TestPage.js +29 -17
  25. package/dist/module/src/components/pure/ProjectPageView.test/implementation.js +1 -1
  26. package/dist/module/src/components/pure/TestPageView.js +29 -17
  27. package/dist/module/src/lib/abstractBase.js +2 -0
  28. package/dist/module/src/lib/baseBuilder.test/baseBuilder.test.implementation.js +10 -9
  29. package/dist/module/src/lib/baseBuilder.test/baseBuilder.test.specification.js +7 -7
  30. package/dist/module/src/lib/basebuilder.js +8 -2
  31. package/dist/module/src/lib/pmProxy.js +54 -150
  32. package/dist/module/testeranto.config.js +35 -20
  33. package/dist/module/tsconfig.module.tsbuildinfo +1 -1
  34. package/dist/prebuild/App.js +3 -3
  35. package/dist/prebuild/ReportServer.mjs +15 -9
  36. package/dist/prebuild/run.mjs +14 -4
  37. package/dist/types/src/PM/node.d.ts +1 -1
  38. package/dist/types/src/PM/web.d.ts +1 -1
  39. package/dist/types/src/ReportServer.test.ts/index.d.ts +29 -0
  40. package/dist/types/src/ReportServerLib.d.ts +2 -0
  41. package/dist/types/src/Types.d.ts +0 -1
  42. package/dist/types/src/components/pure/ProjectPageView.test/index.d.ts +2 -1
  43. package/dist/types/src/lib/abstractBase.d.ts +1 -1
  44. package/dist/types/src/lib/baseBuilder.test/baseBuilder.test.types.d.ts +7 -4
  45. package/dist/types/tsconfig.types.tsbuildinfo +1 -1
  46. package/package.json +2 -2
  47. package/src/PM/base.ts +5 -0
  48. package/src/PM/main.ts +12 -4
  49. package/src/PM/node.ts +1 -1
  50. package/src/PM/web.ts +3 -3
  51. package/src/ReportServer.test.ts/index.ts +194 -0
  52. package/src/ReportServer.ts +2 -132
  53. package/src/ReportServerLib.ts +144 -0
  54. package/src/TestPage.tsx +65 -5
  55. package/src/Types.ts +0 -1
  56. package/src/components/pure/ProjectPageView.test/implementation.tsx +1 -1
  57. package/src/components/pure/TestPageView.tsx +65 -5
  58. package/src/lib/abstractBase.ts +4 -1
  59. package/src/lib/baseBuilder.test/baseBuilder.test.implementation.ts +22 -10
  60. package/src/lib/baseBuilder.test/baseBuilder.test.specification.ts +9 -9
  61. package/src/lib/baseBuilder.test/baseBuilder.test.types.ts +7 -4
  62. package/src/lib/basebuilder.ts +7 -4
  63. package/src/lib/pmProxy.ts +78 -155
  64. package/testeranto/App.js +3 -3
  65. package/testeranto/bundles/node/allTests/metafile.json +38 -781
  66. package/testeranto/bundles/node/allTests/src/lib/baseBuilder.test/baseBuilder.test.node.mjs +983 -24
  67. package/testeranto/bundles/node/core/metafile.json +486 -0
  68. package/testeranto/bundles/{pure/allTests/chunk-VMUSFSZM.mjs → node/core/src/lib/baseBuilder.test/baseBuilder.test.node.mjs} +797 -412
  69. package/testeranto/bundles/node/staticSite/metafile.json +593 -0
  70. package/testeranto/bundles/node/staticSite/src/ReportServer.test.ts/index.mjs +1594 -0
  71. package/testeranto/bundles/pure/allTests/metafile.json +122 -550
  72. package/testeranto/bundles/pure/allTests/src/lib/baseBuilder.test/baseBuilder.test.pure.mjs +740 -27
  73. package/testeranto/bundles/pure/core/metafile.json +626 -0
  74. package/testeranto/bundles/{node/allTests/chunk-E75CSRER.mjs → pure/core/src/lib/baseBuilder.test/baseBuilder.test.pure.mjs} +777 -483
  75. package/testeranto/bundles/pure/staticSite/metafile.json +8 -0
  76. package/testeranto/bundles/web/allTests/metafile.json +777 -22
  77. package/testeranto/bundles/web/allTests/src/lib/baseBuilder.test/baseBuilder.test.web.mjs +893 -45
  78. package/testeranto/bundles/web/core/metafile.json +780 -0
  79. package/testeranto/bundles/web/core/src/lib/baseBuilder.test/baseBuilder.test.web.html +19 -0
  80. package/testeranto/bundles/web/{allTests/chunk-U7AW26HL.mjs → core/src/lib/baseBuilder.test/baseBuilder.test.web.mjs} +506 -411
  81. package/testeranto/bundles/web/staticSite/metafile.json +8 -0
  82. package/testeranto/projects.json +2 -1
  83. package/testeranto/reports/allTests/config.json +0 -64
  84. package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.node/node/lint_errors.txt +2 -0
  85. package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.node/node/logs.txt +11 -13
  86. package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.node/node/prompt.txt +10 -0
  87. package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.node/node/suite-0/given-testInitialization/then-0/butThen/hello.txt +1 -0
  88. package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.node/node/tests.json +10 -18
  89. package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.node/node/type_errors.txt +25 -13
  90. package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.pure/pure/lint_errors.txt +2 -0
  91. package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.pure/pure/prompt.txt +8 -0
  92. package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.pure/pure/type_errors.txt +24 -12
  93. package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.web/web/lint_errors.txt +2 -0
  94. package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.web/web/logs.txt +49 -55
  95. package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.web/web/prompt.txt +12 -2
  96. package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.web/web/suite-0/given-testInitialization/then-0/butThen/hello.txt +1 -0
  97. package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.web/web/tests.json +10 -18
  98. package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.web/web/type_errors.txt +24 -12
  99. package/testeranto/reports/allTests/summary.json +6 -62
  100. package/testeranto/reports/core/config.json +24 -0
  101. package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.node/node/lint_errors.txt +2 -0
  102. package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.node/node/logs.txt +32 -0
  103. package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.node/node/message.txt +2 -0
  104. package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.node/node/prompt.txt +26 -0
  105. package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.node/node/suite-0/given-testInitialization/then-0/butThen/hello.txt +1 -0
  106. package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.node/node/tests.json +69 -0
  107. package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.node/node/type_errors.txt +74 -0
  108. package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.pure/pure/lint_errors.txt +2 -0
  109. package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.pure/pure/message.txt +2 -0
  110. package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.pure/pure/prompt.txt +26 -0
  111. package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.pure/pure/type_errors.txt +74 -0
  112. package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.web/web/lint_errors.txt +2 -0
  113. package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.web/web/logs.txt +61 -0
  114. package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.web/web/message.txt +2 -0
  115. package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.web/web/prompt.txt +26 -0
  116. package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.web/web/suite-0/given-testInitialization/then-0/butThen/hello.txt +1 -0
  117. package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.web/web/tests.json +69 -0
  118. package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.web/web/type_errors.txt +74 -0
  119. package/testeranto/reports/core/summary.json +23 -0
  120. package/testeranto/reports/staticSite/config.json +24 -0
  121. package/testeranto/reports/staticSite/src/ReportServer.test.ts/index/node/lint_errors.txt +5 -0
  122. package/testeranto/reports/staticSite/src/ReportServer.test.ts/index/node/logs.txt +44 -0
  123. package/testeranto/reports/staticSite/src/ReportServer.test.ts/index/node/message.txt +2 -0
  124. package/testeranto/reports/staticSite/src/ReportServer.test.ts/index/node/prompt.txt +23 -0
  125. package/testeranto/reports/{allTests/src/lib/core.test/core.test → staticSite/src/ReportServer.test.ts/index}/node/type_errors.txt +21 -32
  126. package/testeranto/reports/staticSite/summary.json +9 -0
  127. package/testeranto/reportsnode_build_errors +8 -11
  128. package/testeranto.config.ts +37 -20
  129. package/testeranto/bundles/node/allTests/chunk-3EUGBAOM.mjs +0 -113
  130. package/testeranto/bundles/node/allTests/chunk-M6DO7VMB.mjs +0 -252
  131. package/testeranto/bundles/node/allTests/src/lib/BaseSuite.test/node.test.mjs +0 -323
  132. package/testeranto/bundles/node/allTests/src/lib/classBuilder.test/classBuilder.test.mjs +0 -411
  133. package/testeranto/bundles/node/allTests/src/lib/core.test/core.test.mjs +0 -528
  134. package/testeranto/bundles/node/allTests/src/lib/pmProxy.test/index.mjs +0 -4752
  135. package/testeranto/bundles/pure/allTests/chunk-KHDVEHF7.mjs +0 -185
  136. package/testeranto/bundles/pure/allTests/src/Pure.test.mjs +0 -429
  137. package/testeranto/bundles/pure/allTests/src/lib/BaseSuite.test/pure.test.mjs +0 -425
  138. package/testeranto/bundles/web/allTests/chunk-HPYA4YZC.mjs +0 -2283
  139. package/testeranto/bundles/web/allTests/src/components/pure/ProjectPageView.test/index.html +0 -19
  140. package/testeranto/bundles/web/allTests/src/components/pure/ProjectPageView.test/index.mjs +0 -37524
  141. package/testeranto/bundles/web/allTests/src/lib/BaseSuite.test/web.test.html +0 -19
  142. package/testeranto/bundles/web/allTests/src/lib/BaseSuite.test/web.test.mjs +0 -440
  143. package/testeranto/reports/allTests/src/Pure.test/pure/lint_errors.txt +0 -0
  144. package/testeranto/reports/allTests/src/Pure.test/pure/message.txt +0 -2
  145. package/testeranto/reports/allTests/src/Pure.test/pure/prompt.txt +0 -13
  146. package/testeranto/reports/allTests/src/Pure.test/pure/type_errors.txt +0 -101
  147. package/testeranto/reports/allTests/src/components/pure/ProjectPageView.test/index/web/lint_errors.txt +0 -13
  148. package/testeranto/reports/allTests/src/components/pure/ProjectPageView.test/index/web/logs.txt +0 -50
  149. package/testeranto/reports/allTests/src/components/pure/ProjectPageView.test/index/web/message.txt +0 -2
  150. package/testeranto/reports/allTests/src/components/pure/ProjectPageView.test/index/web/prompt.txt +0 -17
  151. package/testeranto/reports/allTests/src/components/pure/ProjectPageView.test/index/web/tests.json +0 -32
  152. package/testeranto/reports/allTests/src/components/pure/ProjectPageView.test/index/web/type_errors.txt +0 -68
  153. package/testeranto/reports/allTests/src/lib/BaseSuite.test/node.test/node/lint_errors.txt +0 -0
  154. package/testeranto/reports/allTests/src/lib/BaseSuite.test/node.test/node/logs.txt +0 -52
  155. package/testeranto/reports/allTests/src/lib/BaseSuite.test/node.test/node/message.txt +0 -2
  156. package/testeranto/reports/allTests/src/lib/BaseSuite.test/node.test/node/prompt.txt +0 -13
  157. package/testeranto/reports/allTests/src/lib/BaseSuite.test/node.test/node/tests.json +0 -31
  158. package/testeranto/reports/allTests/src/lib/BaseSuite.test/node.test/node/type_errors.txt +0 -111
  159. package/testeranto/reports/allTests/src/lib/BaseSuite.test/pure.test/pure/bdd_errors.txt +0 -1
  160. package/testeranto/reports/allTests/src/lib/BaseSuite.test/pure.test/pure/lint_errors.txt +0 -0
  161. package/testeranto/reports/allTests/src/lib/BaseSuite.test/pure.test/pure/message.txt +0 -2
  162. package/testeranto/reports/allTests/src/lib/BaseSuite.test/pure.test/pure/prompt.txt +0 -14
  163. package/testeranto/reports/allTests/src/lib/BaseSuite.test/pure.test/pure/tests.json +0 -31
  164. package/testeranto/reports/allTests/src/lib/BaseSuite.test/pure.test/pure/type_errors.txt +0 -111
  165. package/testeranto/reports/allTests/src/lib/BaseSuite.test/web.test/web/bdd_errors.txt +0 -1
  166. package/testeranto/reports/allTests/src/lib/BaseSuite.test/web.test/web/lint_errors.txt +0 -0
  167. package/testeranto/reports/allTests/src/lib/BaseSuite.test/web.test/web/logs.txt +0 -108
  168. package/testeranto/reports/allTests/src/lib/BaseSuite.test/web.test/web/message.txt +0 -2
  169. package/testeranto/reports/allTests/src/lib/BaseSuite.test/web.test/web/prompt.txt +0 -14
  170. package/testeranto/reports/allTests/src/lib/BaseSuite.test/web.test/web/tests.json +0 -31
  171. package/testeranto/reports/allTests/src/lib/BaseSuite.test/web.test/web/type_errors.txt +0 -111
  172. package/testeranto/reports/allTests/src/lib/classBuilder.test/classBuilder.test/node/bdd_errors.txt +0 -1
  173. package/testeranto/reports/allTests/src/lib/classBuilder.test/classBuilder.test/node/lint_errors.txt +0 -0
  174. package/testeranto/reports/allTests/src/lib/classBuilder.test/classBuilder.test/node/logs.txt +0 -700
  175. package/testeranto/reports/allTests/src/lib/classBuilder.test/classBuilder.test/node/message.txt +0 -2
  176. package/testeranto/reports/allTests/src/lib/classBuilder.test/classBuilder.test/node/prompt.txt +0 -16
  177. package/testeranto/reports/allTests/src/lib/classBuilder.test/classBuilder.test/node/tests.json +0 -164
  178. package/testeranto/reports/allTests/src/lib/classBuilder.test/classBuilder.test/node/type_errors.txt +0 -138
  179. package/testeranto/reports/allTests/src/lib/core.test/core.test/node/lint_errors.txt +0 -21
  180. package/testeranto/reports/allTests/src/lib/core.test/core.test/node/logs.txt +0 -7
  181. package/testeranto/reports/allTests/src/lib/core.test/core.test/node/message.txt +0 -2
  182. package/testeranto/reports/allTests/src/lib/core.test/core.test/node/prompt.txt +0 -18
  183. package/testeranto/reports/allTests/src/lib/pmProxy.test/index/node/bdd_errors.txt +0 -1
  184. package/testeranto/reports/allTests/src/lib/pmProxy.test/index/node/lint_errors.txt +0 -20
  185. package/testeranto/reports/allTests/src/lib/pmProxy.test/index/node/logs.txt +0 -31
  186. package/testeranto/reports/allTests/src/lib/pmProxy.test/index/node/message.txt +0 -2
  187. package/testeranto/reports/allTests/src/lib/pmProxy.test/index/node/prompt.txt +0 -16
  188. package/testeranto/reports/allTests/src/lib/pmProxy.test/index/node/tests.json +0 -134
  189. package/testeranto/reports/allTests/src/lib/pmProxy.test/index/node/type_errors.txt +0 -76
  190. package/testeranto/reportspure_build_errors +0 -343
  191. package/testeranto/reportsweb_build_errors +0 -25
  192. /package/testeranto/reports/{allTests/src/components/pure/ProjectPageView.test/index/web → core/src/lib/baseBuilder.test/baseBuilder.test.node/node}/bdd_errors.txt +0 -0
  193. /package/testeranto/reports/{allTests/src/lib/BaseSuite.test/node.test/node → core/src/lib/baseBuilder.test/baseBuilder.test.web/web}/bdd_errors.txt +0 -0
@@ -5,7 +5,7 @@ export const implementation = {
5
5
  Default: "BaseBuilder test suite",
6
6
  },
7
7
  givens: {
8
- Default: () => {
8
+ "the default BaseBuilder": () => {
9
9
  return new MockBaseBuilder({}, // input
10
10
  {}, // suitesOverrides
11
11
  {}, // givenOverrides
@@ -15,11 +15,11 @@ export const implementation = {
15
15
  () => [] // testSpecification
16
16
  );
17
17
  },
18
- WithCustomInput: (input) => {
19
- return new MockBaseBuilder(input, {}, {}, {}, {}, {}, { ports: [] });
18
+ "a BaseBuilder with TestInput": (input) => {
19
+ return new MockBaseBuilder(input, {}, {}, {}, {}, { ports: [] }, () => []);
20
20
  },
21
- WithResourceRequirements: (requirements) => {
22
- return new MockBaseBuilder({}, {}, {}, {}, {}, {}, requirements);
21
+ "a BaseBuilder with Test Resource Requirements": (requirements) => {
22
+ return new MockBaseBuilder({}, {}, {}, {}, {}, requirements, () => []);
23
23
  },
24
24
  },
25
25
  whens: {
@@ -33,8 +33,9 @@ export const implementation = {
33
33
  },
34
34
  },
35
35
  thens: {
36
- initializedProperly: () => (builder) => {
36
+ "it is initialized": () => (builder, utils) => {
37
37
  var _a;
38
+ utils.writeFileSync("hello.txt", "world");
38
39
  if (!(builder instanceof BaseBuilder)) {
39
40
  console.error("Builder instance:", builder);
40
41
  throw new Error(`Builder was not properly initialized - expected BaseBuilder instance but got ${(_a = builder === null || builder === void 0 ? void 0 : builder.constructor) === null || _a === void 0 ? void 0 : _a.name}`);
@@ -55,19 +56,19 @@ export const implementation = {
55
56
  });
56
57
  return builder;
57
58
  },
58
- specsGenerated: () => (builder) => {
59
+ "it generates TestSpecifications": () => (builder) => {
59
60
  if (!Array.isArray(builder.specs)) {
60
61
  throw new Error("Specs were not generated");
61
62
  }
62
63
  return builder;
63
64
  },
64
- jobsCreated: () => (builder) => {
65
+ "it creates jobs": () => (builder) => {
65
66
  if (!Array.isArray(builder.testJobs)) {
66
67
  throw new Error("Test jobs were not created");
67
68
  }
68
69
  return builder;
69
70
  },
70
- artifactsTracked: () => (builder) => {
71
+ "it tracks artifacts": () => (builder) => {
71
72
  if (!Array.isArray(builder.artifacts)) {
72
73
  throw new Error("Artifacts array not initialized");
73
74
  }
@@ -1,14 +1,14 @@
1
1
  export const specification = (Suite, Given, When, Then) => {
2
2
  return [
3
3
  Suite.Default("Testing BaseBuilder functionality", {
4
- testInitialization: Given.Default(["BaseBuilder should initialize correctly"], [], [
5
- Then.initializedProperly(),
6
- Then.artifactsTracked(),
7
- Then.jobsCreated(),
8
- Then.specsGenerated(),
4
+ testInitialization: Given["the default BaseBuilder"](["BaseBuilder should initialize correctly"], [], [
5
+ Then["it is initialized"](),
6
+ Then["it tracks artifacts"](),
7
+ // Then["it creates jobs"](),
8
+ // Then["it generates TestSpecifications"](),
9
9
  ]),
10
- testSpecsGeneration: Given.Default(["BaseBuilder should generate specs from test specification"], [], [Then.specsGenerated()]),
11
- testJobsCreation: Given.Default(["BaseBuilder should create test jobs"], [], [Then.jobsCreated()]),
10
+ testSpecsGeneration: Given["the default BaseBuilder"](["BaseBuilder should generate specs from test specification"], [], [Then["it generates TestSpecifications"]()]),
11
+ testJobsCreation: Given["the default BaseBuilder"](["BaseBuilder should create test jobs"], [], [Then["it creates jobs"]()]),
12
12
  }),
13
13
  ];
14
14
  };
@@ -42,8 +42,14 @@ export class BaseBuilder {
42
42
  // res(true);
43
43
  // });
44
44
  const fails = suiteDone.fails;
45
- await puppetMaster.writeFileSync(`bdd_errors.txt`, fails.toString());
46
- await puppetMaster.writeFileSync(`tests.json`, JSON.stringify(this.toObj(), null, 2));
45
+ await puppetMaster.writeFileSync([
46
+ `bdd_errors.txt`,
47
+ fails.toString(),
48
+ ]);
49
+ await puppetMaster.writeFileSync([
50
+ `tests.json`,
51
+ JSON.stringify(this.toObj(), null, 2),
52
+ ]);
47
53
  return {
48
54
  failed: fails > 0,
49
55
  fails,
@@ -19,33 +19,24 @@ export const butThenProxy = (pm, filepath) => {
19
19
  [
20
20
  "screencast",
21
21
  (opts, p) => {
22
- var _a;
22
+ var _a, _b;
23
23
  const path = `${filepath}/butThen/${opts.path}`;
24
- console.log(`[Proxy] Captured artifact path for butThen:`, path);
25
- if ((_a = pm.currentStep) === null || _a === void 0 ? void 0 : _a.addArtifact) {
26
- pm.currentStep.addArtifact(path);
27
- }
28
- else {
29
- console.warn('No currentStep or addArtifact method found');
30
- }
24
+ (_b = (_a = pm.currentStep) === null || _a === void 0 ? void 0 : _a.artifacts) === null || _b === void 0 ? void 0 : _b.push(path);
31
25
  return [
32
26
  Object.assign(Object.assign({}, opts), { path }),
33
27
  p,
34
28
  ];
35
29
  },
36
30
  ],
37
- ["createWriteStream", (fp) => {
38
- var _a;
31
+ [
32
+ "createWriteStream",
33
+ (fp) => {
34
+ var _a, _b;
39
35
  const path = `${filepath}/butThen/${fp}`;
40
- console.log(`[Proxy] Captured artifact path for butThen:`, path);
41
- if ((_a = pm.currentStep) === null || _a === void 0 ? void 0 : _a.addArtifact) {
42
- pm.currentStep.addArtifact(path);
43
- }
44
- else {
45
- console.warn('No currentStep or addArtifact method found');
46
- }
36
+ (_b = (_a = pm.currentStep) === null || _a === void 0 ? void 0 : _a.artifacts) === null || _b === void 0 ? void 0 : _b.push(path);
47
37
  return [path];
48
- }],
38
+ },
39
+ ],
49
40
  [
50
41
  "writeFileSync",
51
42
  (fp, contents) => {
@@ -72,178 +63,91 @@ export const butThenProxy = (pm, filepath) => {
72
63
  export const andWhenProxy = (pm, filepath) => baseProxy(pm, [
73
64
  [
74
65
  "screencast",
75
- (opts, p) => {
76
- var _a, _b;
77
- const path = `${filepath}/andWhen/${opts.path}`;
78
- (_b = (_a = pm.currentStep) === null || _a === void 0 ? void 0 : _a.artifacts) === null || _b === void 0 ? void 0 : _b.push(path);
79
- return [
80
- Object.assign(Object.assign({}, opts), { path }),
81
- p,
82
- ];
83
- },
66
+ (opts, p) => [
67
+ Object.assign(Object.assign({}, opts), { path: `${filepath}/andWhen/${opts.path}` }),
68
+ p,
69
+ ],
84
70
  ],
85
- ["createWriteStream", (fp) => {
86
- var _a, _b;
87
- const path = `${filepath}/andWhen/${fp}`;
88
- (_b = (_a = pm.currentStep) === null || _a === void 0 ? void 0 : _a.artifacts) === null || _b === void 0 ? void 0 : _b.push(path);
89
- return [path];
90
- }],
91
- ["writeFileSync", (fp, contents) => {
92
- var _a, _b;
93
- const path = `${filepath}/andWhen/${fp}`;
94
- (_b = (_a = pm.currentStep) === null || _a === void 0 ? void 0 : _a.artifacts) === null || _b === void 0 ? void 0 : _b.push(path);
95
- return [path, contents];
96
- }],
71
+ ["createWriteStream", (fp) => [`${filepath}/andWhen/${fp}`]],
72
+ ["writeFileSync", (fp, contents) => [`${filepath}/andWhen${fp}`, contents]],
97
73
  [
98
74
  "customScreenShot",
99
- (opts, p) => {
100
- var _a, _b;
101
- const path = `${filepath}/andWhen/${opts.path}`;
102
- (_b = (_a = pm.currentStep) === null || _a === void 0 ? void 0 : _a.artifacts) === null || _b === void 0 ? void 0 : _b.push(path);
103
- return [
104
- Object.assign(Object.assign({}, opts), { path }),
105
- p,
106
- ];
107
- },
75
+ (opts, p) => [
76
+ Object.assign(Object.assign({}, opts), { path: `${filepath}/andWhen${opts.path}` }),
77
+ p,
78
+ ],
108
79
  ],
109
80
  ]);
110
81
  export const afterEachProxy = (pm, suite, given) => baseProxy(pm, [
111
82
  [
112
83
  "screencast",
113
- (opts, p) => {
114
- var _a, _b;
115
- const path = `suite-${suite}/given-${given}/afterEach/${opts.path}`;
116
- (_b = (_a = pm.currentStep) === null || _a === void 0 ? void 0 : _a.artifacts) === null || _b === void 0 ? void 0 : _b.push(path);
117
- return [
118
- Object.assign(Object.assign({}, opts), { path }),
119
- p,
120
- ];
121
- },
84
+ (opts, p) => [
85
+ Object.assign(Object.assign({}, opts), { path: `suite-${suite}/given-${given}/afterEach/${opts.path}` }),
86
+ p,
87
+ ],
122
88
  ],
123
- ["createWriteStream", (fp) => {
124
- var _a, _b;
125
- const path = `suite-${suite}/afterEach/${fp}`;
126
- (_b = (_a = pm.currentStep) === null || _a === void 0 ? void 0 : _a.artifacts) === null || _b === void 0 ? void 0 : _b.push(path);
127
- return [path];
128
- }],
89
+ ["createWriteStream", (fp) => [`suite-${suite}/afterEach/${fp}`]],
129
90
  [
130
91
  "writeFileSync",
131
- (fp, contents) => {
132
- var _a, _b;
133
- const path = `suite-${suite}/given-${given}/afterEach/${fp}`;
134
- (_b = (_a = pm.currentStep) === null || _a === void 0 ? void 0 : _a.artifacts) === null || _b === void 0 ? void 0 : _b.push(path);
135
- return [path, contents];
136
- },
92
+ (fp, contents) => [
93
+ `suite-${suite}/given-${given}/afterEach/${fp}`,
94
+ contents,
95
+ ],
137
96
  ],
138
97
  [
139
98
  "customScreenShot",
140
- (opts, p) => {
141
- var _a, _b;
142
- const path = `suite-${suite}/given-${given}/afterEach/${opts.path}`;
143
- (_b = (_a = pm.currentStep) === null || _a === void 0 ? void 0 : _a.artifacts) === null || _b === void 0 ? void 0 : _b.push(path);
144
- return [
145
- Object.assign(Object.assign({}, opts), { path }),
146
- p,
147
- ];
148
- },
99
+ (opts, p) => [
100
+ Object.assign(Object.assign({}, opts), { path: `suite-${suite}/given-${given}/afterEach/${opts.path}` }),
101
+ p,
102
+ ],
149
103
  ],
150
104
  ]);
151
105
  export const beforeEachProxy = (pm, suite) => baseProxy(pm, [
152
106
  [
153
107
  "screencast",
154
- (opts, p) => {
155
- var _a, _b;
156
- const path = `suite-${suite}/beforeEach/${opts.path}`;
157
- (_b = (_a = pm.currentStep) === null || _a === void 0 ? void 0 : _a.artifacts) === null || _b === void 0 ? void 0 : _b.push(path);
158
- return [
159
- Object.assign(Object.assign({}, opts), { path }),
160
- p,
161
- ];
162
- },
108
+ (opts, p) => [
109
+ Object.assign(Object.assign({}, opts), { path: `suite-${suite}/beforeEach/${opts.path}` }),
110
+ p,
111
+ ],
163
112
  ],
164
113
  [
165
114
  "writeFileSync",
166
- (fp, contents) => {
167
- var _a, _b;
168
- const path = `suite-${suite}/beforeEach/${fp}`;
169
- (_b = (_a = pm.currentStep) === null || _a === void 0 ? void 0 : _a.artifacts) === null || _b === void 0 ? void 0 : _b.push(path);
170
- return [path, contents];
171
- },
115
+ (fp, contents) => [`suite-${suite}/beforeEach/${fp}`, contents],
172
116
  ],
173
117
  [
174
118
  "customScreenShot",
175
- (opts, p) => {
176
- var _a, _b;
177
- const path = `suite-${suite}/beforeEach/${opts.path}`;
178
- (_b = (_a = pm.currentStep) === null || _a === void 0 ? void 0 : _a.artifacts) === null || _b === void 0 ? void 0 : _b.push(path);
179
- return [
180
- Object.assign(Object.assign({}, opts), { path }),
181
- p,
182
- ];
183
- },
119
+ (opts, p) => [
120
+ Object.assign(Object.assign({}, opts), { path: `suite-${suite}/beforeEach/${opts.path}` }),
121
+ p,
122
+ ],
184
123
  ],
185
- ["createWriteStream", (fp) => {
186
- var _a, _b;
187
- const path = `suite-${suite}/beforeEach/${fp}`;
188
- (_b = (_a = pm.currentStep) === null || _a === void 0 ? void 0 : _a.artifacts) === null || _b === void 0 ? void 0 : _b.push(path);
189
- return [path];
190
- }],
124
+ ["createWriteStream", (fp) => [`suite-${suite}/beforeEach/${fp}`]],
191
125
  ]);
192
126
  export const beforeAllProxy = (pm, suite) => baseProxy(pm, [
193
127
  [
194
128
  "writeFileSync",
195
- (fp, contents) => {
196
- var _a, _b;
197
- const path = `suite-${suite}/beforeAll/${fp}`;
198
- (_b = (_a = pm.currentStep) === null || _a === void 0 ? void 0 : _a.artifacts) === null || _b === void 0 ? void 0 : _b.push(path);
199
- return [path, contents];
200
- },
129
+ (fp, contents) => [`suite-${suite}/beforeAll/${fp}`, contents],
201
130
  ],
202
131
  [
203
132
  "customScreenShot",
204
- (opts, p) => {
205
- var _a, _b;
206
- const path = `suite-${suite}/beforeAll/${opts.path}`;
207
- (_b = (_a = pm.currentStep) === null || _a === void 0 ? void 0 : _a.artifacts) === null || _b === void 0 ? void 0 : _b.push(path);
208
- return [
209
- Object.assign(Object.assign({}, opts), { path }),
210
- p,
211
- ];
212
- },
133
+ (opts, p) => [
134
+ Object.assign(Object.assign({}, opts), { path: `suite-${suite}/beforeAll/${opts.path}` }),
135
+ p,
136
+ ],
213
137
  ],
214
- ["createWriteStream", (fp) => {
215
- var _a, _b;
216
- const path = `suite-${suite}/beforeAll/${fp}`;
217
- (_b = (_a = pm.currentStep) === null || _a === void 0 ? void 0 : _a.artifacts) === null || _b === void 0 ? void 0 : _b.push(path);
218
- return [path];
219
- }],
138
+ ["createWriteStream", (fp) => [`suite-${suite}/beforeAll/${fp}`]],
220
139
  ]);
221
140
  export const afterAllProxy = (pm, suite) => baseProxy(pm, [
222
- ["createWriteStream", (fp) => {
223
- var _a, _b;
224
- const path = `suite-${suite}/afterAll/${fp}`;
225
- (_b = (_a = pm.currentStep) === null || _a === void 0 ? void 0 : _a.artifacts) === null || _b === void 0 ? void 0 : _b.push(path);
226
- return [path];
227
- }],
141
+ ["createWriteStream", (fp) => [`suite-${suite}/afterAll/${fp}`]],
228
142
  [
229
143
  "writeFileSync",
230
- (fp, contents) => {
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, contents];
235
- },
144
+ (fp, contents) => [`suite-${suite}/afterAll/${fp}`, contents],
236
145
  ],
237
146
  [
238
147
  "customScreenShot",
239
- (opts, p) => {
240
- var _a, _b;
241
- const path = `suite-${suite}/afterAll/${opts.path}`;
242
- (_b = (_a = pm.currentStep) === null || _a === void 0 ? void 0 : _a.artifacts) === null || _b === void 0 ? void 0 : _b.push(path);
243
- return [
244
- Object.assign(Object.assign({}, opts), { path }),
245
- p,
246
- ];
247
- },
148
+ (opts, p) => [
149
+ Object.assign(Object.assign({}, opts), { path: `suite-${suite}/afterAll/${opts.path}` }),
150
+ p,
151
+ ],
248
152
  ],
249
153
  ]);
@@ -1,25 +1,41 @@
1
+ // TODO- this config file is horrible. I need to redo how config files are handled.
1
2
  const config = {
2
3
  projects: {
3
- allTests: {
4
+ staticSite: {
5
+ tests: [["src/ReportServer.test.ts/index.ts", "node", { ports: 1 }, []]],
6
+ clearScreen: false,
7
+ debugger: false,
8
+ externals: [],
9
+ featureIngestor: function (s) {
10
+ throw new Error("Function not implemented.");
11
+ },
12
+ importPlugins: [],
13
+ minify: false,
14
+ nodePlugins: [],
15
+ ports: ["3334"],
16
+ src: "",
17
+ webPlugins: [],
18
+ },
19
+ core: {
4
20
  tests: [
5
- [
6
- "src/components/pure/ProjectPageView.test/index.ts",
7
- "web",
8
- { ports: 0 },
9
- [],
10
- ],
11
- ["src/lib/BaseSuite.test/node.test.ts", "node", { ports: 0 }, []],
12
- ["src/lib/BaseSuite.test/pure.test.ts", "pure", { ports: 0 }, []],
13
- ["src/lib/BaseSuite.test/web.test.ts", "web", { ports: 0 }, []],
14
- ["src/Pure.test.ts", "pure", { ports: 0 }, []],
15
- ["src/lib/pmProxy.test/index.ts", "node", { ports: 0 }, []],
16
- ["src/lib/core.test/core.test.ts", "node", { ports: 0 }, []],
17
- [
18
- "src/lib/classBuilder.test/classBuilder.test.ts",
19
- "node",
20
- { ports: 0 },
21
- [],
22
- ],
21
+ // [
22
+ // "src/components/pure/ProjectPageView.test/index.ts",
23
+ // "web",
24
+ // { ports: 0 },
25
+ // [],
26
+ // ],
27
+ // ["src/lib/BaseSuite.test/node.test.ts", "node", { ports: 0 }, []],
28
+ // ["src/lib/BaseSuite.test/pure.test.ts", "pure", { ports: 0 }, []],
29
+ // ["src/lib/BaseSuite.test/web.test.ts", "web", { ports: 0 }, []],
30
+ // ["src/Pure.test.ts", "pure", { ports: 0 }, []],
31
+ // ["src/lib/pmProxy.test/index.ts", "node", { ports: 0 }, []],
32
+ // ["src/lib/core.test/core.test.ts", "node", { ports: 0 }, []],
33
+ // [
34
+ // "src/lib/classBuilder.test/classBuilder.test.ts",
35
+ // "node",
36
+ // { ports: 0 },
37
+ // [],
38
+ // ],
23
39
  [
24
40
  "src/lib/baseBuilder.test/baseBuilder.test.node.ts",
25
41
  "node",
@@ -68,6 +84,5 @@ const config = {
68
84
  webPlugins: [],
69
85
  },
70
86
  },
71
- reportDomain: "https://adamwong246.github.io/testeranto",
72
87
  };
73
88
  export default config;