testeranto 0.197.0 → 0.199.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 (301) hide show
  1. package/.vscode/settings.json +7 -2
  2. package/design-editor/DesignEditor.tsx +9 -5
  3. package/dist/common/design-editor/DesignEditor.js +8 -5
  4. package/dist/common/src/App.js +29 -5
  5. package/dist/common/src/Node.js +3 -2
  6. package/dist/common/src/PM/main.js +1 -1
  7. package/dist/common/src/Pure.js +2 -2
  8. package/dist/common/src/Web.js +2 -2
  9. package/dist/common/src/components/DesignEditorPage.js +55 -19
  10. package/dist/common/src/lib/BaseGiven.js +99 -0
  11. package/dist/common/src/lib/BaseSuite.test/mock.js +9 -5
  12. package/dist/common/src/lib/BaseThen.js +64 -0
  13. package/dist/common/src/lib/BaseWhen.js +45 -0
  14. package/dist/common/src/lib/Tiposkripto.js +149 -0
  15. package/dist/common/src/lib/{core.test/MockCore.js → Tiposkripto.test/MockTiposkripto.js} +5 -8
  16. package/dist/common/src/lib/{core.test/core.test.adapter.js → Tiposkripto.test/Tiposkripto.adapter.js} +10 -8
  17. package/dist/common/src/lib/{classBuilder.test/classBuilder.test.implementation.js → Tiposkripto.test/Tiposkripto.implementation.js} +44 -61
  18. package/dist/common/src/lib/Tiposkripto.test/Tiposkripto.js +11 -0
  19. package/dist/common/src/lib/{classBuilder.test/classBuilder.test.specification.js → Tiposkripto.test/Tiposkripto.specification.js} +13 -9
  20. package/dist/common/src/lib/abstractBase.test/MockGiven.js +10 -3
  21. package/dist/common/src/lib/abstractBase.test/MockThen.js +6 -3
  22. package/dist/common/src/lib/abstractBase.test/MockWhen.js +10 -3
  23. package/dist/common/src/lib/abstractBase.test/adapter.js +18 -6
  24. package/dist/common/src/lib/abstractBase.test/implementation.js +3 -3
  25. package/dist/common/src/lib/mocks.test.js +10 -8
  26. package/dist/common/src/run.js +15 -4
  27. package/dist/common/testeranto.config.js +12 -36
  28. package/dist/common/tsconfig.common.tsbuildinfo +1 -1
  29. package/dist/module/design-editor/DesignEditor.js +8 -5
  30. package/dist/module/src/App.js +29 -5
  31. package/dist/module/src/Node.js +3 -2
  32. package/dist/module/src/PM/main.js +1 -1
  33. package/dist/module/src/Pure.js +2 -2
  34. package/dist/module/src/Web.js +2 -2
  35. package/dist/module/src/components/DesignEditorPage.js +55 -19
  36. package/dist/module/src/lib/BaseGiven.js +95 -0
  37. package/dist/module/src/lib/BaseSuite.test/mock.js +6 -2
  38. package/dist/module/src/lib/BaseThen.js +60 -0
  39. package/dist/module/src/lib/BaseWhen.js +41 -0
  40. package/dist/module/src/lib/Tiposkripto.js +146 -0
  41. package/dist/module/src/lib/{core.test/MockCore.js → Tiposkripto.test/MockTiposkripto.js} +3 -6
  42. package/dist/module/src/lib/{core.test/core.test.adapter.js → Tiposkripto.test/Tiposkripto.adapter.js} +10 -8
  43. package/dist/module/src/lib/{classBuilder.test/classBuilder.test.implementation.js → Tiposkripto.test/Tiposkripto.implementation.js} +44 -58
  44. package/dist/module/src/lib/Tiposkripto.test/Tiposkripto.js +6 -0
  45. package/dist/module/src/lib/{classBuilder.test/classBuilder.test.specification.js → Tiposkripto.test/Tiposkripto.specification.js} +12 -8
  46. package/dist/module/src/lib/abstractBase.test/MockGiven.js +9 -2
  47. package/dist/module/src/lib/abstractBase.test/MockThen.js +5 -2
  48. package/dist/module/src/lib/abstractBase.test/MockWhen.js +9 -2
  49. package/dist/module/src/lib/abstractBase.test/adapter.js +18 -6
  50. package/dist/module/src/lib/abstractBase.test/implementation.js +3 -3
  51. package/dist/module/src/lib/mocks.test.js +11 -5
  52. package/dist/module/src/run.js +15 -4
  53. package/dist/module/testeranto.config.js +12 -36
  54. package/dist/module/tsconfig.module.tsbuildinfo +1 -1
  55. package/dist/prebuild/App.js +1461 -8949
  56. package/dist/prebuild/run.mjs +25 -14
  57. package/dist/tsconfig.tsbuildinfo +1 -0
  58. package/dist/types/src/Node.d.ts +2 -2
  59. package/dist/types/src/PM/__tests__/nodeSidecar.testeranto.d.ts +1 -15
  60. package/dist/types/src/PM/__tests__/pureSidecar.testeranto.d.ts +1 -15
  61. package/dist/types/src/PM/__tests__/webSidecar.testeranto.d.ts +1 -15
  62. package/dist/types/src/Pure.d.ts +2 -2
  63. package/dist/types/src/Pure.test.d.ts +1 -58
  64. package/dist/types/src/ReportServer.test.ts/index.d.ts +1 -28
  65. package/dist/types/src/Types.d.ts +3 -1
  66. package/dist/types/src/Web.d.ts +2 -2
  67. package/dist/types/src/components/pure/AppFrame.test/index.d.ts +1 -3
  68. package/dist/types/src/components/pure/FeaturesReporterView.test/index.d.ts +1 -1
  69. package/dist/types/src/components/pure/ModalContent.test/index.d.ts +1 -2
  70. package/dist/types/src/components/pure/ProjectPageView.test/index.d.ts +1 -1
  71. package/dist/types/src/components/pure/TestPageView.test/index.d.ts +1 -1
  72. package/dist/types/src/lib/BaseGiven.d.ts +44 -0
  73. package/dist/types/src/lib/BaseSuite.d.ts +12 -7
  74. package/dist/types/src/lib/BaseSuite.test/mock.d.ts +3 -1
  75. package/dist/types/src/lib/BaseSuite.test/node.test.d.ts +1 -2
  76. package/dist/types/src/lib/BaseSuite.test/pure.test.d.ts +1 -2
  77. package/dist/types/src/lib/BaseSuite.test/web.test.d.ts +1 -2
  78. package/dist/types/src/lib/BaseThen.d.ts +27 -0
  79. package/dist/types/src/lib/BaseWhen.d.ts +27 -0
  80. package/dist/types/src/lib/Tiposkripto.d.ts +35 -0
  81. package/dist/types/src/lib/{core.test/MockCore.d.ts → Tiposkripto.test/MockTiposkripto.d.ts} +3 -3
  82. package/dist/types/src/lib/{core.test/core.test.adapter.d.ts → Tiposkripto.test/Tiposkripto.adapter.d.ts} +1 -1
  83. package/dist/types/src/lib/Tiposkripto.test/Tiposkripto.d.ts +2 -0
  84. package/dist/types/src/lib/{core.test/core.test.implementation.d.ts → Tiposkripto.test/Tiposkripto.implementation.d.ts} +1 -1
  85. package/dist/types/src/lib/{core.test/core.test.specification.d.ts → Tiposkripto.test/Tiposkripto.specification.d.ts} +1 -1
  86. package/dist/types/src/lib/{classBuilder.test/classBuilder.test.types.d.ts → Tiposkripto.test/Tiposkripto.types.d.ts} +11 -9
  87. package/dist/types/src/lib/abstractBase.test/MockGiven.d.ts +3 -1
  88. package/dist/types/src/lib/abstractBase.test/MockThen.d.ts +1 -1
  89. package/dist/types/src/lib/abstractBase.test/MockWhen.d.ts +1 -1
  90. package/dist/types/src/lib/abstractBase.test/index.d.ts +1 -2
  91. package/dist/types/src/lib/abstractBase.test/types.d.ts +3 -3
  92. package/dist/types/src/lib/index.d.ts +1 -1
  93. package/dist/types/src/lib/mocks.test.d.ts +0 -2
  94. package/dist/types/src/lib/pmProxy.test/index.d.ts +1 -2
  95. package/dist/types/src/lib/types.d.ts +3 -1
  96. package/dist/types/src/mothership/test.d.ts +1 -18
  97. package/dist/types/tsconfig.types.tsbuildinfo +1 -1
  98. package/package.json +14 -14
  99. package/src/App.tsx +27 -5
  100. package/src/Node.ts +3 -2
  101. package/src/PM/main.ts +1 -1
  102. package/src/Pure.ts +3 -2
  103. package/src/Types.ts +5 -3
  104. package/src/Web.ts +2 -2
  105. package/src/components/DesignEditorPage.tsx +54 -21
  106. package/src/lib/BaseGiven.ts +193 -0
  107. package/src/lib/BaseSuite.test/mock.ts +9 -2
  108. package/src/lib/BaseSuite.ts +14 -1
  109. package/src/lib/BaseThen.ts +108 -0
  110. package/src/lib/BaseWhen.ts +91 -0
  111. package/src/lib/{core.test/MockCore.ts → Tiposkripto.test/MockTiposkripto.ts} +4 -7
  112. package/src/lib/{core.test/core.test.adapter.ts → Tiposkripto.test/Tiposkripto.adapter.ts} +12 -11
  113. package/src/lib/{classBuilder.test/classBuilder.test.implementation.ts → Tiposkripto.test/Tiposkripto.implementation.ts} +75 -78
  114. package/src/lib/Tiposkripto.test/Tiposkripto.specification.ts +109 -0
  115. package/src/lib/Tiposkripto.test/Tiposkripto.ts +15 -0
  116. package/src/lib/{classBuilder.test/classBuilder.test.types.ts → Tiposkripto.test/Tiposkripto.types.ts} +12 -9
  117. package/src/lib/Tiposkripto.ts +325 -0
  118. package/src/lib/abstractBase.test/MockGiven.ts +12 -2
  119. package/src/lib/abstractBase.test/MockThen.ts +7 -2
  120. package/src/lib/abstractBase.test/MockWhen.ts +10 -2
  121. package/src/lib/abstractBase.test/adapter.ts +20 -6
  122. package/src/lib/abstractBase.test/implementation.ts +6 -6
  123. package/src/lib/abstractBase.test/types.ts +3 -3
  124. package/src/lib/index.ts +9 -3
  125. package/src/lib/mocks.test.ts +10 -9
  126. package/src/lib/types.ts +3 -1
  127. package/src/run.ts +19 -4
  128. package/testeranto/App.js +1461 -8949
  129. package/testeranto/bundles/node/core/src/lib/BaseSuite.test/node.test.mjs +1121 -9
  130. package/testeranto/bundles/pure/core/src/lib/BaseSuite.test/pure.test.mjs +979 -8
  131. package/testeranto/bundles/{pure/core/chunk-62UVCSQC.mjs → web/core/src/lib/BaseSuite.test/web.test.mjs} +721 -431
  132. package/testeranto/metafiles/node/core.json +264 -2180
  133. package/testeranto/metafiles/pure/core.json +147 -288
  134. package/testeranto/metafiles/web/core.json +16949 -18
  135. package/testeranto/reports/core/config.json +8 -40
  136. package/testeranto/reports/core/src/Pure.test/pure/type_errors.txt +8 -13
  137. package/testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/error.log +66 -2
  138. package/testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/info.log +2 -0
  139. package/testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/prompt.txt +16 -0
  140. package/testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/tests.json +68 -0
  141. package/testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/type_errors.txt +56 -0
  142. package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/error.log +22 -3
  143. package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/info.log +2 -0
  144. package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/lint_errors.txt +13 -0
  145. package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/prompt.txt +16 -0
  146. package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/tests.json +88 -0
  147. package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/type_errors.txt +45 -0
  148. package/testeranto/reports/core/src/components/pure/TestPageView.test/index/web/error.log +0 -3
  149. package/testeranto/reports/core/src/components/pure/TestPageView.test/index/web/info.log +2 -0
  150. package/testeranto/reports/core/src/components/pure/TestPageView.test/index/web/lint_errors.txt +47 -0
  151. package/testeranto/reports/core/src/components/pure/TestPageView.test/index/web/prompt.txt +17 -0
  152. package/testeranto/reports/core/src/components/pure/TestPageView.test/index/web/tests.json +57 -0
  153. package/testeranto/reports/core/src/components/pure/TestPageView.test/index/web/type_errors.txt +99 -0
  154. package/testeranto/reports/core/src/lib/BaseSuite.test/node.test/node/prompt.txt +1 -0
  155. package/testeranto/reports/core/src/lib/BaseSuite.test/node.test/node/tests.json +7 -9
  156. package/testeranto/reports/core/src/lib/BaseSuite.test/node.test/node/type_errors.txt +11 -16
  157. package/testeranto/reports/core/src/lib/BaseSuite.test/pure.test/pure/type_errors.txt +11 -16
  158. package/testeranto/reports/core/src/lib/BaseSuite.test/web.test/web/error.log +0 -2
  159. package/testeranto/reports/core/src/lib/BaseSuite.test/web.test/web/prompt.txt +15 -0
  160. package/testeranto/reports/core/src/lib/BaseSuite.test/web.test/web/tests.json +29 -0
  161. package/testeranto/reports/core/src/lib/BaseSuite.test/web.test/web/type_errors.txt +56 -0
  162. package/testeranto/reports/core/src/lib/TipoSkripto.test/TipoSkripto/node/exit.log +1 -0
  163. package/testeranto/reports/core/src/lib/TipoSkripto.test/TipoSkripto/node/message.txt +17 -0
  164. package/testeranto/reports/core/src/lib/TipoSkripto.test/TipoSkripto/node/prompt.txt +17 -0
  165. package/testeranto/reports/core/src/lib/TipoSkripto.test/TipoSkripto/node/stderr.log +18 -0
  166. package/testeranto/reports/core/src/lib/TipoSkripto.test/TipoSkripto/node/type_errors.txt +32 -0
  167. package/testeranto/reports/core/src/lib/pmProxy.test/index/node/exit.log +1 -1
  168. package/testeranto/reports/core/src/lib/pmProxy.test/index/node/stderr.log +60 -82
  169. package/testeranto/reports/core/src/lib/pmProxy.test/index/node/type_errors.txt +8 -13
  170. package/testeranto/reports/core/summary.json +23 -36
  171. package/testeranto.config.ts +14 -41
  172. package/tsc.log +274 -455
  173. package/dist/common/src/lib/abstractBase.js +0 -196
  174. package/dist/common/src/lib/baseBuilder.test/baseBuilder.test.adapter.js +0 -25
  175. package/dist/common/src/lib/baseBuilder.test/baseBuilder.test.implementation.js +0 -113
  176. package/dist/common/src/lib/baseBuilder.test/baseBuilder.test.mock.js +0 -46
  177. package/dist/common/src/lib/baseBuilder.test/baseBuilder.test.node.js +0 -12
  178. package/dist/common/src/lib/baseBuilder.test/baseBuilder.test.pure.js +0 -12
  179. package/dist/common/src/lib/baseBuilder.test/baseBuilder.test.specification.js +0 -18
  180. package/dist/common/src/lib/baseBuilder.test/baseBuilder.test.web.js +0 -12
  181. package/dist/common/src/lib/basebuilder.js +0 -88
  182. package/dist/common/src/lib/classBuilder.js +0 -36
  183. package/dist/common/src/lib/classBuilder.test/classBuilder.test.adapter.js +0 -23
  184. package/dist/common/src/lib/classBuilder.test/classBuilder.test.js +0 -12
  185. package/dist/common/src/lib/classBuilder.test/classBuilder.test.types.js +0 -2
  186. package/dist/common/src/lib/classBuilder.test/mock.js +0 -17
  187. package/dist/common/src/lib/core.js +0 -45
  188. package/dist/common/src/lib/core.test/core.test.implementation.js +0 -121
  189. package/dist/common/src/lib/core.test/core.test.js +0 -63
  190. package/dist/common/src/lib/core.test/core.test.specification.js +0 -53
  191. package/dist/common/src/lib/core.test/core.test.types.js +0 -2
  192. package/dist/module/src/lib/abstractBase.js +0 -190
  193. package/dist/module/src/lib/baseBuilder.test/baseBuilder.test.adapter.js +0 -22
  194. package/dist/module/src/lib/baseBuilder.test/baseBuilder.test.implementation.js +0 -110
  195. package/dist/module/src/lib/baseBuilder.test/baseBuilder.test.mock.js +0 -42
  196. package/dist/module/src/lib/baseBuilder.test/baseBuilder.test.node.js +0 -7
  197. package/dist/module/src/lib/baseBuilder.test/baseBuilder.test.pure.js +0 -7
  198. package/dist/module/src/lib/baseBuilder.test/baseBuilder.test.specification.js +0 -14
  199. package/dist/module/src/lib/baseBuilder.test/baseBuilder.test.web.js +0 -7
  200. package/dist/module/src/lib/basebuilder.js +0 -84
  201. package/dist/module/src/lib/classBuilder.js +0 -32
  202. package/dist/module/src/lib/classBuilder.test/classBuilder.test.adapter.js +0 -20
  203. package/dist/module/src/lib/classBuilder.test/classBuilder.test.js +0 -7
  204. package/dist/module/src/lib/classBuilder.test/classBuilder.test.types.js +0 -1
  205. package/dist/module/src/lib/classBuilder.test/mock.js +0 -14
  206. package/dist/module/src/lib/core.js +0 -42
  207. package/dist/module/src/lib/core.test/core.test.implementation.js +0 -118
  208. package/dist/module/src/lib/core.test/core.test.js +0 -58
  209. package/dist/module/src/lib/core.test/core.test.specification.js +0 -49
  210. package/dist/module/src/lib/core.test/core.test.types.js +0 -1
  211. package/dist/types/src/lib/abstractBase.d.ts +0 -70
  212. package/dist/types/src/lib/baseBuilder.test/baseBuilder.test.adapter.d.ts +0 -3
  213. package/dist/types/src/lib/baseBuilder.test/baseBuilder.test.implementation.d.ts +0 -3
  214. package/dist/types/src/lib/baseBuilder.test/baseBuilder.test.mock.d.ts +0 -15
  215. package/dist/types/src/lib/baseBuilder.test/baseBuilder.test.node.d.ts +0 -3
  216. package/dist/types/src/lib/baseBuilder.test/baseBuilder.test.pure.d.ts +0 -3
  217. package/dist/types/src/lib/baseBuilder.test/baseBuilder.test.specification.d.ts +0 -3
  218. package/dist/types/src/lib/baseBuilder.test/baseBuilder.test.types.d.ts +0 -22
  219. package/dist/types/src/lib/baseBuilder.test/baseBuilder.test.web.d.ts +0 -3
  220. package/dist/types/src/lib/basebuilder.d.ts +0 -23
  221. package/dist/types/src/lib/classBuilder.d.ts +0 -15
  222. package/dist/types/src/lib/classBuilder.test/classBuilder.test.adapter.d.ts +0 -3
  223. package/dist/types/src/lib/classBuilder.test/classBuilder.test.d.ts +0 -3
  224. package/dist/types/src/lib/classBuilder.test/classBuilder.test.implementation.d.ts +0 -3
  225. package/dist/types/src/lib/classBuilder.test/classBuilder.test.specification.d.ts +0 -3
  226. package/dist/types/src/lib/classBuilder.test/mock.d.ts +0 -14
  227. package/dist/types/src/lib/core.d.ts +0 -12
  228. package/dist/types/src/lib/core.test/core.test.d.ts +0 -3
  229. package/dist/types/src/lib/core.test/core.test.types.d.ts +0 -46
  230. package/src/lib/abstractBase.ts +0 -351
  231. package/src/lib/baseBuilder.test/baseBuilder.test.adapter.ts +0 -29
  232. package/src/lib/baseBuilder.test/baseBuilder.test.implementation.ts +0 -139
  233. package/src/lib/baseBuilder.test/baseBuilder.test.mock.ts +0 -90
  234. package/src/lib/baseBuilder.test/baseBuilder.test.node.ts +0 -16
  235. package/src/lib/baseBuilder.test/baseBuilder.test.pure.ts +0 -16
  236. package/src/lib/baseBuilder.test/baseBuilder.test.specification.ts +0 -35
  237. package/src/lib/baseBuilder.test/baseBuilder.test.types.ts +0 -36
  238. package/src/lib/baseBuilder.test/baseBuilder.test.web.ts +0 -16
  239. package/src/lib/basebuilder.ts +0 -187
  240. package/src/lib/classBuilder.test/classBuilder.test.adapter.ts +0 -25
  241. package/src/lib/classBuilder.test/classBuilder.test.specification.ts +0 -104
  242. package/src/lib/classBuilder.test/classBuilder.test.ts +0 -14
  243. package/src/lib/classBuilder.test/mock.ts +0 -83
  244. package/src/lib/classBuilder.ts +0 -120
  245. package/src/lib/core.test/core.test.implementation.ts +0 -155
  246. package/src/lib/core.test/core.test.specification.ts +0 -113
  247. package/src/lib/core.test/core.test.ts +0 -72
  248. package/src/lib/core.test/core.test.types.ts +0 -68
  249. package/src/lib/core.ts +0 -125
  250. package/testeranto/bundles/node/core/chunk-4CSH4UJE.mjs +0 -872
  251. package/testeranto/bundles/node/core/chunk-4JTDLQVA.mjs +0 -253
  252. package/testeranto/bundles/node/core/chunk-C3APFDUV.mjs +0 -70
  253. package/testeranto/bundles/node/core/src/lib/baseBuilder.test/baseBuilder.test.node.mjs +0 -243
  254. package/testeranto/bundles/node/core/src/lib/classBuilder.test/classBuilder.test.mjs +0 -411
  255. package/testeranto/bundles/node/core/src/lib/core.test/core.test.mjs +0 -494
  256. package/testeranto/bundles/node/core/src/lib/pmProxy.test/index.mjs +0 -4755
  257. package/testeranto/bundles/pure/core/src/Pure.test.mjs +0 -410
  258. package/testeranto/bundles/pure/core/src/lib/baseBuilder.test/baseBuilder.test.pure.mjs +0 -241
  259. package/testeranto/bundles/web/core/src/components/pure/FeaturesReporterView.test/index.html +0 -15
  260. package/testeranto/bundles/web/core/src/components/pure/ProjectPageView.test/index.html +0 -15
  261. package/testeranto/bundles/web/core/src/components/pure/TestPageView.test/index.html +0 -15
  262. package/testeranto/bundles/web/core/src/lib/baseBuilder.test/baseBuilder.test.web.html +0 -15
  263. package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.node/node/exit.log +0 -1
  264. package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.node/node/lint_errors.txt +0 -10
  265. package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.node/node/prompt.txt +0 -17
  266. package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.node/node/stdout.log +0 -6
  267. package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.node/node/suite-0/given-testInitialization/then-0/butThen/hello.txt +0 -1
  268. package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.node/node/suite-0/given-testInitialization/then-1/butThen/artifact_test.txt +0 -1
  269. package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.node/node/tests.json +0 -71
  270. package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.node/node/type_errors.txt +0 -42
  271. package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.pure/pure/lint_errors.txt +0 -10
  272. package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.pure/pure/prompt.txt +0 -17
  273. package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.pure/pure/type_errors.txt +0 -42
  274. package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.web/web/debug.log +0 -0
  275. package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.web/web/error.log +0 -3
  276. package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.web/web/exit.log +0 -1
  277. package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.web/web/info.log +0 -0
  278. package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.web/web/warn.log +0 -0
  279. package/testeranto/reports/core/src/lib/classBuilder.test/classBuilder.test/node/exit.log +0 -1
  280. package/testeranto/reports/core/src/lib/classBuilder.test/classBuilder.test/node/prompt.txt +0 -17
  281. package/testeranto/reports/core/src/lib/classBuilder.test/classBuilder.test/node/stderr.log +0 -0
  282. package/testeranto/reports/core/src/lib/classBuilder.test/classBuilder.test/node/stdout.log +0 -619
  283. package/testeranto/reports/core/src/lib/classBuilder.test/classBuilder.test/node/tests.json +0 -165
  284. package/testeranto/reports/core/src/lib/classBuilder.test/classBuilder.test/node/type_errors.txt +0 -88
  285. package/testeranto/reports/core/src/lib/core.test/core.test/node/exit.log +0 -1
  286. package/testeranto/reports/core/src/lib/core.test/core.test/node/lint_errors.txt +0 -21
  287. package/testeranto/reports/core/src/lib/core.test/core.test/node/prompt.txt +0 -19
  288. package/testeranto/reports/core/src/lib/core.test/core.test/node/stderr.log +0 -0
  289. package/testeranto/reports/core/src/lib/core.test/core.test/node/type_errors.txt +0 -45
  290. package/testeranto/reports/core/src/lib/pmProxy.test/index/node/tests.json +0 -152
  291. package/testeranto/reportsweb_build_errors +0 -546
  292. /package/dist/common/src/lib/{baseBuilder.test/baseBuilder.test.types.js → Tiposkripto.test/Tiposkripto.types.js} +0 -0
  293. /package/dist/module/src/lib/{baseBuilder.test/baseBuilder.test.types.js → Tiposkripto.test/Tiposkripto.types.js} +0 -0
  294. /package/testeranto/reports/core/src/{lib/classBuilder.test/classBuilder.test/node → components/pure/FeaturesReporterView.test/index/web}/lint_errors.txt +0 -0
  295. /package/testeranto/reports/core/src/{lib/baseBuilder.test/baseBuilder.test.node/node → components/pure/FeaturesReporterView.test/index/web}/message.txt +0 -0
  296. /package/testeranto/reports/core/src/{lib/baseBuilder.test/baseBuilder.test.pure/pure → components/pure/ProjectPageView.test/index/web}/message.txt +0 -0
  297. /package/testeranto/reports/core/src/{lib/classBuilder.test/classBuilder.test/node → components/pure/TestPageView.test/index/web}/message.txt +0 -0
  298. /package/testeranto/reports/core/src/lib/{baseBuilder.test/baseBuilder.test.node/node/stderr.log → BaseSuite.test/web.test/web/lint_errors.txt} +0 -0
  299. /package/testeranto/reports/core/src/lib/{core.test/core.test/node → BaseSuite.test/web.test/web}/message.txt +0 -0
  300. /package/testeranto/reports/core/src/lib/{baseBuilder.test/baseBuilder.test.pure/pure/exit.log → TipoSkripto.test/TipoSkripto/node/lint_errors.txt} +0 -0
  301. /package/testeranto/reports/core/src/lib/{core.test/core.test → TipoSkripto.test/TipoSkripto}/node/stdout.log +0 -0
@@ -1,196 +0,0 @@
1
- "use strict";
2
- /* eslint-disable @typescript-eslint/no-unused-vars */
3
- /* eslint-disable @typescript-eslint/no-explicit-any */
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.BaseThen = exports.BaseWhen = exports.BaseGiven = void 0;
6
- const pmProxy_js_1 = require("./pmProxy.js");
7
- class BaseGiven {
8
- addArtifact(path) {
9
- const normalizedPath = path.replace(/\\/g, "/"); // Normalize path separators
10
- this.artifacts.push(normalizedPath);
11
- }
12
- constructor(name, features, whens, thens, givenCB, initialValues) {
13
- this.artifacts = [];
14
- this.name = name;
15
- this.features = features;
16
- this.whens = whens;
17
- this.thens = thens;
18
- this.givenCB = givenCB;
19
- this.initialValues = initialValues;
20
- }
21
- beforeAll(store) {
22
- return store;
23
- }
24
- toObj() {
25
- return {
26
- key: this.key,
27
- name: this.name,
28
- whens: this.whens.map((w) => {
29
- if (w && w.toObj)
30
- return w.toObj();
31
- console.error("w is not as expected!", JSON.stringify(w));
32
- return {};
33
- }),
34
- thens: this.thens.map((t) => t.toObj()),
35
- error: this.error ? [this.error, this.error.stack] : null,
36
- failed: this.failed,
37
- features: this.features,
38
- artifacts: this.artifacts,
39
- };
40
- }
41
- async afterEach(store, key, artifactory, pm) {
42
- return store;
43
- }
44
- async give(subject, key, testResourceConfiguration, tester, artifactory, tLog, pm, suiteNdx) {
45
- this.key = key;
46
- tLog(`\n ${this.key}`);
47
- tLog(`\n Given: ${this.name}`);
48
- const givenArtifactory = (fPath, value) => artifactory(`given-${key}/${fPath}`, value);
49
- this.uberCatcher((e) => {
50
- console.error(e.toString());
51
- this.error = e.error;
52
- tLog(e.stack);
53
- });
54
- try {
55
- // Ensure addArtifact is properly bound to 'this'
56
- const addArtifact = this.addArtifact.bind(this);
57
- const proxiedPm = (0, pmProxy_js_1.beforeEachProxy)(pm, suiteNdx.toString(), addArtifact);
58
- this.store = await this.givenThat(subject, testResourceConfiguration, givenArtifactory, this.givenCB, this.initialValues, proxiedPm);
59
- }
60
- catch (e) {
61
- // console.error("Given failure: ", e.stack);
62
- this.failed = true;
63
- this.error = e.stack;
64
- // throw e;
65
- }
66
- try {
67
- // tLog(`\n Given this.store`, this.store);
68
- for (const [whenNdx, whenStep] of this.whens.entries()) {
69
- await whenStep.test(this.store, testResourceConfiguration, tLog, pm, `suite-${suiteNdx}/given-${key}/when/${whenNdx}`);
70
- }
71
- for (const [thenNdx, thenStep] of this.thens.entries()) {
72
- const t = await thenStep.test(this.store, testResourceConfiguration, tLog, pm, `suite-${suiteNdx}/given-${key}/then-${thenNdx}`);
73
- tester(t);
74
- }
75
- }
76
- catch (e) {
77
- this.error = e.stack;
78
- this.failed = true;
79
- // tLog(e.stack);
80
- // throw e;
81
- }
82
- finally {
83
- try {
84
- // Ensure addArtifact is properly bound to 'this'
85
- const addArtifact = this.addArtifact.bind(this);
86
- const proxiedPm = (0, pmProxy_js_1.afterEachProxy)(pm, suiteNdx.toString(), key, addArtifact);
87
- // (proxiedPm as any).currentStep = this;
88
- await this.afterEach(this.store, this.key, givenArtifactory, proxiedPm);
89
- }
90
- catch (e) {
91
- this.failed = e;
92
- throw e;
93
- // this.error = e.message;
94
- }
95
- }
96
- return this.store;
97
- }
98
- }
99
- exports.BaseGiven = BaseGiven;
100
- class BaseWhen {
101
- addArtifact(path) {
102
- const normalizedPath = path.replace(/\\/g, "/"); // Normalize path separators
103
- this.artifacts.push(normalizedPath);
104
- }
105
- constructor(name, whenCB) {
106
- this.artifacts = [];
107
- this.name = name;
108
- this.whenCB = whenCB;
109
- }
110
- toObj() {
111
- const obj = {
112
- name: this.name,
113
- error: this.error
114
- ? `${this.error.name}: ${this.error.message}\n${this.error.stack}`
115
- : null,
116
- artifacts: this.artifacts || [],
117
- };
118
- console.log(`[TOOBJ] Serializing ${this.constructor.name} with artifacts:`, obj.artifacts);
119
- return obj;
120
- }
121
- async test(store, testResourceConfiguration, tLog, pm, filepath) {
122
- try {
123
- // tLog(" When:", this.name);
124
- // Ensure addArtifact is properly bound to 'this'
125
- const addArtifact = this.addArtifact.bind(this);
126
- const proxiedPm = (0, pmProxy_js_1.andWhenProxy)(pm, filepath, addArtifact);
127
- // (proxiedPm as any).currentStep = this;
128
- const result = await this.andWhen(store, this.whenCB, testResourceConfiguration, proxiedPm);
129
- return result;
130
- }
131
- catch (e) {
132
- console.error("[ERROR] When step failed:", this.name.toString(), e.toString());
133
- this.error = e;
134
- throw e;
135
- }
136
- }
137
- }
138
- exports.BaseWhen = BaseWhen;
139
- class BaseThen {
140
- constructor(name, thenCB) {
141
- this.artifacts = [];
142
- this.name = name;
143
- this.thenCB = thenCB;
144
- this.error = false;
145
- this.artifacts = [];
146
- }
147
- addArtifact(path) {
148
- const normalizedPath = path.replace(/\\/g, "/"); // Normalize path separators
149
- this.artifacts.push(normalizedPath);
150
- }
151
- toObj() {
152
- const obj = {
153
- name: this.name,
154
- error: this.error,
155
- artifacts: this.artifacts,
156
- };
157
- return obj;
158
- }
159
- async test(store, testResourceConfiguration, tLog, pm, filepath) {
160
- // Ensure addArtifact is properly bound to 'this'
161
- const addArtifact = this.addArtifact.bind(this);
162
- const proxiedPm = (0, pmProxy_js_1.butThenProxy)(pm, filepath, addArtifact);
163
- return this.butThen(store, async (s) => {
164
- try {
165
- if (typeof this.thenCB === "function") {
166
- // Add debug logging to see what's being passed to thenCB
167
- // Check if the thenCB is spreading the arguments incorrectly
168
- // Wrap the proxy to see what's happening when writeFileSync is called
169
- const wrappedPm = new Proxy(proxiedPm, {
170
- get: (target, prop, receiver) => {
171
- if (prop === "writeFileSync") {
172
- return (...args) => {
173
- console.log(`[DEBUG] writeFileSync called with args:`, args);
174
- return target[prop](...args);
175
- };
176
- }
177
- return target[prop];
178
- },
179
- });
180
- const result = await this.thenCB(s, wrappedPm);
181
- return result;
182
- }
183
- else {
184
- return this.thenCB;
185
- }
186
- }
187
- catch (e) {
188
- console.error(e.stack);
189
- }
190
- }, testResourceConfiguration, proxiedPm).catch((e) => {
191
- this.error = e.stack;
192
- // throw e;
193
- });
194
- }
195
- }
196
- exports.BaseThen = BaseThen;
@@ -1,25 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.testAdapter = void 0;
4
- exports.testAdapter = {
5
- beforeAll: async (input, testResource, pm) => {
6
- return input;
7
- },
8
- beforeEach: async (subject, initializer, testResource, initialValues, pm) => {
9
- const result = initializer()();
10
- return result;
11
- },
12
- andWhen: async (store, whenCB, testResource, utils) => {
13
- const result = whenCB(store, utils);
14
- return result;
15
- },
16
- butThen: async (store, thenCB, testResource, pm) => {
17
- const result = thenCB(store, pm);
18
- return result;
19
- },
20
- afterEach: async (store, key, pm) => {
21
- return store;
22
- },
23
- afterAll: (store, pm) => { },
24
- assertThis: (x) => x,
25
- };
@@ -1,113 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.implementation = void 0;
4
- const baseBuilder_test_mock_1 = require("./baseBuilder.test.mock");
5
- const basebuilder_1 = require("../basebuilder");
6
- exports.implementation = {
7
- suites: {
8
- Default: "BaseBuilder test suite",
9
- },
10
- givens: {
11
- "the default BaseBuilder": () => () => {
12
- return new baseBuilder_test_mock_1.MockBaseBuilder({}, // input
13
- {}, // suitesOverrides
14
- {}, // givenOverrides
15
- {}, // whenOverrides
16
- {}, // thenOverrides
17
- { ports: 0 }, // testResourceRequirement
18
- () => [] // testSpecification
19
- );
20
- },
21
- "a BaseBuilder with TestInput": (input) => () => {
22
- return new baseBuilder_test_mock_1.MockBaseBuilder(input, {}, {}, {}, {}, { ports: [] }, () => []);
23
- },
24
- "a BaseBuilder with Test Resource Requirements": (requirements) => () => {
25
- return new baseBuilder_test_mock_1.MockBaseBuilder({}, {}, {}, {}, {}, requirements, () => []);
26
- },
27
- },
28
- whens: {
29
- addArtifact: (artifact) => (builder, utils) => {
30
- builder.artifacts.push(artifact);
31
- return builder;
32
- },
33
- setTestJobs: (jobs) => (builder, utils) => {
34
- builder.testJobs = jobs;
35
- return builder;
36
- },
37
- },
38
- thens: {
39
- "it is initialized": () => (builder, utils) => {
40
- var _a;
41
- utils.writeFileSync("hello.txt", "world");
42
- if (!(builder instanceof basebuilder_1.BaseBuilder)) {
43
- console.error("Builder instance:", builder);
44
- 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}`);
45
- }
46
- // Verify required properties exist
47
- [
48
- "artifacts",
49
- "testJobs",
50
- "specs",
51
- "suitesOverrides",
52
- "givenOverides",
53
- "whenOverides",
54
- "thenOverides",
55
- ].forEach((prop) => {
56
- if (!(prop in builder)) {
57
- throw new Error(`Builder missing required property: ${prop}`);
58
- }
59
- });
60
- return builder;
61
- },
62
- "it generates TestSpecifications": () => (builder, utils) => {
63
- if (!Array.isArray(builder.specs)) {
64
- throw new Error("Specs were not generated");
65
- }
66
- return builder;
67
- },
68
- "it creates jobs": () => (builder, utils) => {
69
- if (!Array.isArray(builder.testJobs)) {
70
- throw new Error("Test jobs were not created");
71
- }
72
- return builder;
73
- },
74
- "it tracks artifacts": () => (builder, utils) => {
75
- if (!Array.isArray(builder.artifacts)) {
76
- throw new Error("Artifacts array not initialized");
77
- }
78
- // Verify we can write artifacts
79
- utils.writeFileSync("artifact_test.txt", "test");
80
- return builder;
81
- },
82
- resourceRequirementsSet: () => (builder, utils) => {
83
- if (!builder.testResourceRequirement) {
84
- throw new Error("Resource requirements not set");
85
- }
86
- return builder;
87
- },
88
- suitesOverridesConfigured: () => (builder, utils) => {
89
- if (!builder.suitesOverrides) {
90
- throw new Error("Suites overrides not configured");
91
- }
92
- return builder;
93
- },
94
- givensOverridesConfigured: () => (builder, utils) => {
95
- if (!builder.givenOverides) {
96
- throw new Error("Givens overrides not configured");
97
- }
98
- return builder;
99
- },
100
- whensOverridesConfigured: () => (builder, utils) => {
101
- if (!builder.whenOverides) {
102
- throw new Error("Whens overrides not configured");
103
- }
104
- return builder;
105
- },
106
- thensOverridesConfigured: () => (builder, utils) => {
107
- if (!builder.thenOverides) {
108
- throw new Error("Thens overrides not configured");
109
- }
110
- return builder;
111
- },
112
- },
113
- };
@@ -1,46 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MockBaseBuilder = void 0;
4
- const basebuilder_1 = require("../basebuilder");
5
- /**
6
- * Concrete implementation of BaseBuilder for testing purposes only
7
- */
8
- class MockBaseBuilder extends basebuilder_1.BaseBuilder {
9
- constructor(input, suitesOverrides = {}, givenOverrides = {}, whenOverrides = {}, thenOverrides = {}, testResourceRequirement = { ports: 0 }, testSpecification = () => []) {
10
- super(input, suitesOverrides, givenOverrides, whenOverrides, thenOverrides, testResourceRequirement, testSpecification);
11
- this.summary = {};
12
- }
13
- /**
14
- * Simplified version for testing that doesn't actually run tests
15
- */
16
- async testRun(puppetMaster) {
17
- try {
18
- this.summary = {
19
- [puppetMaster.testResourceConfiguration.name]: {
20
- typeErrors: 0,
21
- staticErrors: 0,
22
- runTimeError: "",
23
- prompt: "",
24
- failingFeatures: {},
25
- },
26
- };
27
- return {
28
- failed: false,
29
- fails: 0,
30
- artifacts: this.artifacts,
31
- features: [],
32
- };
33
- }
34
- catch (error) {
35
- console.error("Test run failed:", error);
36
- return {
37
- failed: true,
38
- fails: 1,
39
- artifacts: this.artifacts,
40
- features: [],
41
- error: error.message
42
- };
43
- }
44
- }
45
- }
46
- exports.MockBaseBuilder = MockBaseBuilder;
@@ -1,12 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- /* eslint-disable @typescript-eslint/no-empty-object-type */
7
- const Node_1 = __importDefault(require("../../Node"));
8
- const baseBuilder_test_specification_1 = require("./baseBuilder.test.specification");
9
- const baseBuilder_test_implementation_1 = require("./baseBuilder.test.implementation");
10
- const baseBuilder_test_adapter_1 = require("./baseBuilder.test.adapter");
11
- const baseBuilder_test_mock_1 = require("./baseBuilder.test.mock");
12
- exports.default = (0, Node_1.default)(baseBuilder_test_mock_1.MockBaseBuilder.prototype, baseBuilder_test_specification_1.specification, baseBuilder_test_implementation_1.implementation, baseBuilder_test_adapter_1.testAdapter);
@@ -1,12 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- /* eslint-disable @typescript-eslint/no-empty-object-type */
7
- const Pure_1 = __importDefault(require("../../Pure"));
8
- const baseBuilder_test_specification_1 = require("./baseBuilder.test.specification");
9
- const baseBuilder_test_implementation_1 = require("./baseBuilder.test.implementation");
10
- const baseBuilder_test_adapter_1 = require("./baseBuilder.test.adapter");
11
- const baseBuilder_test_mock_1 = require("./baseBuilder.test.mock");
12
- exports.default = (0, Pure_1.default)(baseBuilder_test_mock_1.MockBaseBuilder.prototype, baseBuilder_test_specification_1.specification, baseBuilder_test_implementation_1.implementation, baseBuilder_test_adapter_1.testAdapter);
@@ -1,18 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.specification = void 0;
4
- const specification = (Suite, Given, When, Then) => {
5
- return [
6
- Suite.Default("Testing BaseBuilder functionality", {
7
- testInitialization: Given["the default BaseBuilder"](["BaseBuilder should initialize correctly"], [], [
8
- Then["it is initialized"](),
9
- Then["it tracks artifacts"](),
10
- // Then["it creates jobs"](),
11
- // Then["it generates TestSpecifications"](),
12
- ]),
13
- testSpecsGeneration: Given["the default BaseBuilder"](["BaseBuilder should generate specs from test specification"], [], [Then["it generates TestSpecifications"]()]),
14
- testJobsCreation: Given["the default BaseBuilder"](["BaseBuilder should create test jobs"], [], [Then["it creates jobs"]()]),
15
- }),
16
- ];
17
- };
18
- exports.specification = specification;
@@ -1,12 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- /* eslint-disable @typescript-eslint/no-empty-object-type */
7
- const Web_1 = __importDefault(require("../../Web"));
8
- const baseBuilder_test_specification_1 = require("./baseBuilder.test.specification");
9
- const baseBuilder_test_implementation_1 = require("./baseBuilder.test.implementation");
10
- const baseBuilder_test_adapter_1 = require("./baseBuilder.test.adapter");
11
- const baseBuilder_test_mock_1 = require("./baseBuilder.test.mock");
12
- exports.default = (0, Web_1.default)(baseBuilder_test_mock_1.MockBaseBuilder.prototype, baseBuilder_test_specification_1.specification, baseBuilder_test_implementation_1.implementation, baseBuilder_test_adapter_1.testAdapter);
@@ -1,88 +0,0 @@
1
- "use strict";
2
- /* eslint-disable @typescript-eslint/no-unused-vars */
3
- /* eslint-disable @typescript-eslint/no-empty-object-type */
4
- /* eslint-disable no-async-promise-executor */
5
- /* eslint-disable @typescript-eslint/no-explicit-any */
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.BaseBuilder = void 0;
8
- class BaseBuilder {
9
- constructor(input, suitesOverrides, givenOverides, whenOverides, thenOverides, testResourceRequirement, testSpecification) {
10
- this.artifacts = [];
11
- this.artifacts = [];
12
- this.testResourceRequirement = testResourceRequirement;
13
- this.suitesOverrides = suitesOverrides;
14
- this.givenOverides = givenOverides;
15
- this.whenOverides = whenOverides;
16
- this.thenOverides = thenOverides;
17
- this.testSpecification = testSpecification;
18
- this.specs = testSpecification(this.Suites(), this.Given(), this.When(), this.Then());
19
- this.testJobs = this.specs.map((suite) => {
20
- const suiteRunner = (suite) => async (puppetMaster, tLog) => {
21
- try {
22
- const x = await suite.run(input, puppetMaster.testResourceConfiguration, (fPath, value) => puppetMaster.testArtiFactoryfileWriter(tLog, (p) => {
23
- this.artifacts.push(p);
24
- })(puppetMaster.testResourceConfiguration.fs + "/" + fPath, value), tLog, puppetMaster);
25
- return x;
26
- }
27
- catch (e) {
28
- console.error(e.stack);
29
- }
30
- };
31
- const runner = suiteRunner(suite);
32
- return {
33
- test: suite,
34
- toObj: () => {
35
- return suite.toObj();
36
- },
37
- runner,
38
- receiveTestResourceConfig: async function (puppetMaster) {
39
- const tLog = async (...l) => {
40
- //
41
- };
42
- try {
43
- const suiteDone = await runner(puppetMaster, tLog);
44
- const fails = suiteDone.fails;
45
- await puppetMaster.writeFileSync(`tests.json`, JSON.stringify(this.toObj(), null, 2), "test");
46
- return {
47
- failed: fails > 0,
48
- fails,
49
- artifacts: this.artifacts || [],
50
- features: suiteDone.features(),
51
- };
52
- }
53
- catch (e) {
54
- console.error(e.stack);
55
- return {
56
- failed: true,
57
- fails: -1,
58
- artifacts: this.artifacts || [],
59
- features: [],
60
- };
61
- }
62
- },
63
- };
64
- });
65
- }
66
- // testsJson() {
67
- // puppetMaster.writeFileSync(
68
- // `tests.json`,
69
- // JSON.stringify({ features: suiteDone.features() }, null, 2)
70
- // );
71
- // }
72
- Specs() {
73
- return this.specs;
74
- }
75
- Suites() {
76
- return this.suitesOverrides;
77
- }
78
- Given() {
79
- return this.givenOverides;
80
- }
81
- When() {
82
- return this.whenOverides;
83
- }
84
- Then() {
85
- return this.thenOverides;
86
- }
87
- }
88
- exports.BaseBuilder = BaseBuilder;
@@ -1,36 +0,0 @@
1
- "use strict";
2
- /* eslint-disable @typescript-eslint/no-unused-vars */
3
- /* eslint-disable @typescript-eslint/no-explicit-any */
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.ClassBuilder = void 0;
6
- const basebuilder_js_1 = require("./basebuilder.js");
7
- class ClassBuilder extends basebuilder_js_1.BaseBuilder {
8
- constructor(testImplementation, testSpecification, input, suiteKlasser, givenKlasser, whenKlasser, thenKlasser, testResourceRequirement) {
9
- const classySuites = Object.entries(testImplementation.suites).reduce((a, [key], index) => {
10
- a[key] = (somestring, givens) => {
11
- return new suiteKlasser.prototype.constructor(somestring, index, givens);
12
- };
13
- return a;
14
- }, {});
15
- const classyGivens = Object.entries(testImplementation.givens).reduce((a, [key, g]) => {
16
- a[key] = (features, whens, thens, ...initialValues) => {
17
- return new givenKlasser.prototype.constructor(key, features, whens, thens, testImplementation.givens[key], initialValues);
18
- };
19
- return a;
20
- }, {});
21
- const classyWhens = Object.entries(testImplementation.whens).reduce((a, [key, whEn]) => {
22
- a[key] = (...payload) => {
23
- return new whenKlasser.prototype.constructor(`${key}: ${payload && payload.toString()}`, whEn(...payload));
24
- };
25
- return a;
26
- }, {});
27
- const classyThens = Object.entries(testImplementation.thens).reduce((a, [key, thEn]) => {
28
- a[key] = (...args) => {
29
- return new thenKlasser.prototype.constructor(`${key}: ${args && args.toString()}`, thEn(...args));
30
- };
31
- return a;
32
- }, {});
33
- super(input, classySuites, classyGivens, classyWhens, classyThens, testResourceRequirement, testSpecification);
34
- }
35
- }
36
- exports.ClassBuilder = ClassBuilder;
@@ -1,23 +0,0 @@
1
- "use strict";
2
- /* eslint-disable @typescript-eslint/no-unused-vars */
3
- /* eslint-disable @typescript-eslint/no-explicit-any */
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.testAdapter = void 0;
6
- exports.testAdapter = {
7
- beforeAll: async () => { },
8
- beforeEach: async (subject, initializer) => {
9
- console.log("Running beforeEach with initializer:", initializer);
10
- const result = await initializer();
11
- console.log("Initializer returned:", result);
12
- return result;
13
- },
14
- andWhen: async (store, whenCB, testResource, utils) => {
15
- return whenCB(store, utils);
16
- },
17
- butThen: async (store, thenCB, testResource, pm) => {
18
- return thenCB(store, pm);
19
- },
20
- afterEach: (store) => store,
21
- afterAll: () => { },
22
- assertThis: (x) => { },
23
- };
@@ -1,12 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const Node_1 = __importDefault(require("../../Node"));
7
- const classBuilder_1 = require("../classBuilder");
8
- const classBuilder_test_specification_1 = require("./classBuilder.test.specification");
9
- const classBuilder_test_implementation_1 = require("./classBuilder.test.implementation");
10
- const classBuilder_test_adapter_1 = require("./classBuilder.test.adapter");
11
- exports.default = (0, Node_1.default)(classBuilder_1.ClassBuilder.prototype, classBuilder_test_specification_1.specification, classBuilder_test_implementation_1.implementation, classBuilder_test_adapter_1.testAdapter, { ports: 1 } // Add resource requirements
12
- );
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,17 +0,0 @@
1
- "use strict";
2
- /* eslint-disable @typescript-eslint/no-explicit-any */
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- const classBuilder_1 = require("../classBuilder");
5
- /**
6
- * Concrete testable implementation of ClassBuilder for testing
7
- */
8
- class TestClassBuilderMock extends classBuilder_1.ClassBuilder {
9
- constructor(testImplementation, testSpecification, input, suiteKlasser, givenKlasser, whenKlasser, thenKlasser, testResourceRequirement) {
10
- super(testImplementation, testSpecification, input, suiteKlasser, givenKlasser, whenKlasser, thenKlasser, testResourceRequirement);
11
- this.testJobs = [];
12
- this.specs = [];
13
- this.artifacts = [];
14
- this.summary = {};
15
- }
16
- }
17
- exports.default = TestClassBuilderMock;