testeranto 0.129.0 → 0.135.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 (403) hide show
  1. package/.aider.chat.history.md +137798 -0
  2. package/.aider.input.history +370 -0
  3. package/.aider.tags.cache.v3/{ec/c0/161c249c35be853cc40cf11f9267.val → 62/f5/8af72140d93c58db2f6aa5bf3f1f.val} +0 -0
  4. package/.aider.tags.cache.v3/8e/ec/2d4659a1589a0187a757ab1cbefa.val +0 -0
  5. package/.aider.tags.cache.v3/{b7/e6/5be87b62aeaf2bc244ff41c1b61a.val → a7/97/6d37fce350ad2d588f36729db0cd.val} +0 -0
  6. package/.aider.tags.cache.v3/{e3/e6/3501625caf5d5eb171f0d248462e.val → ad/3c/10f2ab1397f6d544e613d2a6acaf.val} +0 -0
  7. package/.aider.tags.cache.v3/cache.db +0 -0
  8. package/.aider.tags.cache.v3/d8/b0/a8966fcd65890fd9f70d7afe8141.val +0 -0
  9. package/.aider.tags.cache.v3/dd/5b/0ade824b0841c7c11e9352c5d2ca.val +0 -0
  10. package/README.md +194 -182
  11. package/bundle.js +8 -75
  12. package/dist/common/src/Init.js +6 -1
  13. package/dist/common/src/Node.js +6 -4
  14. package/dist/common/src/NodeSidecar.js +15 -0
  15. package/dist/common/src/PM/PM_WithEslintAndTsc.js +189 -0
  16. package/dist/common/src/PM/__tests__/nodeSidecar.testeranto.js +109 -0
  17. package/dist/common/src/PM/__tests__/pureSidecar.testeranto.js +94 -0
  18. package/dist/common/src/PM/__tests__/webSidecar.testeranto.js +94 -0
  19. package/dist/common/src/PM/base.js +33 -16
  20. package/dist/common/src/PM/main.js +492 -428
  21. package/dist/common/src/PM/node.js +54 -22
  22. package/dist/common/src/PM/nodeSidecar.js +65 -0
  23. package/dist/common/src/PM/pure.js +55 -47
  24. package/dist/common/src/PM/pureSidecar.js +48 -0
  25. package/dist/common/src/PM/sidecar.js +11 -0
  26. package/dist/common/src/PM/web.js +24 -6
  27. package/dist/common/src/PM/webSidecar.js +47 -0
  28. package/dist/common/src/PureSidecar.js +13 -0
  29. package/dist/common/src/SP__Polygon.test.js +10 -0
  30. package/dist/common/src/WebSidecar.js +14 -0
  31. package/dist/common/src/build.js +66 -12
  32. package/dist/common/src/defaultConfig.js +1 -0
  33. package/dist/common/src/esbuildConfigs/consoleDetectorPlugin.js +27 -0
  34. package/dist/common/src/esbuildConfigs/eslint-formatter-testeranto.js +16 -1
  35. package/dist/common/src/esbuildConfigs/node.js +2 -16
  36. package/dist/common/src/esbuildConfigs/pure.js +12 -12
  37. package/dist/common/src/esbuildConfigs/rebuildPlugin.js +22 -0
  38. package/dist/common/src/esbuildConfigs/web.js +12 -17
  39. package/dist/common/src/lib/Sidecar.js +6 -0
  40. package/dist/common/src/lib/abstractBase.js +13 -6
  41. package/dist/common/src/lib/basebuilder.js +1 -3
  42. package/dist/common/src/lib/classBuilder.js +6 -20
  43. package/dist/common/src/lib/core.js +11 -6
  44. package/dist/common/src/lib/index.js +13 -4
  45. package/dist/common/src/lib/pmProxy.js +1 -1
  46. package/dist/common/src/mothership/index.js +16 -0
  47. package/dist/common/src/mothership/test.js +65 -0
  48. package/dist/common/src/utils/queue.js +36 -0
  49. package/dist/common/src/utils.js +34 -5
  50. package/dist/common/testeranto.config.js +77 -39
  51. package/dist/common/tsconfig.common.tsbuildinfo +1 -1
  52. package/dist/module/src/Init.js +6 -1
  53. package/dist/module/src/Node.js +6 -4
  54. package/dist/module/src/NodeSidecar.js +11 -0
  55. package/dist/module/src/PM/PM_WithEslintAndTsc.js +182 -0
  56. package/dist/module/src/PM/__tests__/nodeSidecar.testeranto.js +104 -0
  57. package/dist/module/src/PM/__tests__/pureSidecar.testeranto.js +89 -0
  58. package/dist/module/src/PM/__tests__/webSidecar.testeranto.js +89 -0
  59. package/dist/module/src/PM/base.js +33 -16
  60. package/dist/module/src/PM/main.js +493 -429
  61. package/dist/module/src/PM/node.js +54 -22
  62. package/dist/module/src/PM/nodeSidecar.js +58 -0
  63. package/dist/module/src/PM/pure.js +55 -44
  64. package/dist/module/src/PM/pureSidecar.js +41 -0
  65. package/dist/module/src/PM/sidecar.js +7 -0
  66. package/dist/module/src/PM/web.js +24 -6
  67. package/dist/module/src/PM/webSidecar.js +40 -0
  68. package/dist/module/src/Project.js +154 -75
  69. package/dist/module/src/PureSidecar.js +9 -0
  70. package/dist/module/src/ReportClient.js +132 -97
  71. package/dist/module/src/SP__Polygon.test.js +8 -0
  72. package/dist/module/src/TestReport.js +32 -14
  73. package/dist/module/src/WebSidecar.js +10 -0
  74. package/dist/module/src/build.js +66 -12
  75. package/dist/module/src/defaultConfig.js +1 -0
  76. package/dist/module/src/esbuildConfigs/consoleDetectorPlugin.js +24 -0
  77. package/dist/module/src/esbuildConfigs/eslint-formatter-testeranto.js +16 -1
  78. package/dist/module/src/esbuildConfigs/node.js +2 -16
  79. package/dist/module/src/esbuildConfigs/pure.js +12 -12
  80. package/dist/module/src/esbuildConfigs/rebuildPlugin.js +17 -0
  81. package/dist/module/src/esbuildConfigs/web.js +12 -17
  82. package/dist/module/src/lib/Sidecar.js +2 -0
  83. package/dist/module/src/lib/abstractBase.js +13 -6
  84. package/dist/module/src/lib/basebuilder.js +1 -3
  85. package/dist/module/src/lib/classBuilder.js +6 -20
  86. package/dist/module/src/lib/core.js +11 -6
  87. package/dist/module/src/lib/index.js +12 -4
  88. package/dist/module/src/lib/pmProxy.js +1 -1
  89. package/dist/module/src/mothership/index.js +11 -0
  90. package/dist/module/src/mothership/test.js +60 -0
  91. package/dist/module/src/utils/queue.js +32 -0
  92. package/dist/module/src/utils.js +34 -5
  93. package/dist/module/testeranto.config.js +77 -36
  94. package/dist/module/tsconfig.module.tsbuildinfo +1 -1
  95. package/dist/prebuild/Project.js +3287 -385
  96. package/dist/prebuild/ReportClient.js +0 -24638
  97. package/dist/prebuild/TestReport.js +26 -22
  98. package/dist/prebuild/build.mjs +192 -70
  99. package/dist/prebuild/esbuildConfigs/eslint-formatter-testeranto.mjs +14 -1
  100. package/dist/prebuild/init-docs.mjs +2 -5
  101. package/dist/prebuild/mothership/index.mjs +17 -0
  102. package/dist/prebuild/run.mjs +733 -433
  103. package/dist/types/src/CoreTypes.d.ts +51 -0
  104. package/dist/types/src/Node.d.ts +2 -2
  105. package/dist/types/src/NodeSidecar.d.ts +6 -0
  106. package/dist/types/src/PM/PM_WithEslintAndTsc.d.ts +23 -0
  107. package/dist/types/src/PM/__tests__/nodeSidecar.testeranto.d.ts +2 -0
  108. package/dist/types/src/PM/__tests__/pureSidecar.testeranto.d.ts +2 -0
  109. package/dist/types/src/PM/__tests__/webSidecar.testeranto.d.ts +2 -0
  110. package/dist/types/src/PM/base.d.ts +6 -5
  111. package/dist/types/src/PM/index.d.ts +6 -4
  112. package/dist/types/src/PM/main.d.ts +23 -26
  113. package/dist/types/src/PM/node.d.ts +8 -6
  114. package/dist/types/src/PM/nodeSidecar.d.ts +13 -0
  115. package/dist/types/src/PM/pure.d.ts +4 -3
  116. package/dist/types/src/PM/pureSidecar.d.ts +11 -0
  117. package/dist/types/src/PM/sidecar.d.ts +8 -0
  118. package/dist/types/src/PM/web.d.ts +18 -8
  119. package/dist/types/src/PM/webSidecar.d.ts +11 -0
  120. package/dist/types/src/PureSidecar.d.ts +8 -0
  121. package/dist/types/src/SP__Polygon.test.d.ts +1 -0
  122. package/dist/types/src/Types.d.ts +80 -58
  123. package/dist/types/src/Web.d.ts +1 -1
  124. package/dist/types/src/WebSidecar.d.ts +8 -0
  125. package/dist/types/src/esbuildConfigs/consoleDetectorPlugin.d.ts +2 -0
  126. package/dist/types/src/esbuildConfigs/rebuildPlugin.d.ts +6 -0
  127. package/dist/types/src/lib/Sidecar.d.ts +5 -0
  128. package/dist/types/src/lib/abstractBase.d.ts +6 -12
  129. package/dist/types/src/lib/classBuilder.d.ts +7 -1
  130. package/dist/types/src/lib/core.d.ts +8 -2
  131. package/dist/types/src/lib/index.d.ts +10 -4
  132. package/dist/types/src/lib/types.d.ts +12 -2
  133. package/dist/types/src/mothership/index.d.ts +2 -0
  134. package/dist/types/src/mothership/test.d.ts +2 -0
  135. package/dist/types/src/utils/queue.d.ts +11 -0
  136. package/dist/types/src/utils.d.ts +4 -7
  137. package/dist/types/tsconfig.types.tsbuildinfo +1 -1
  138. package/docs/index.md +277 -0
  139. package/package.json +23 -104
  140. package/src/CoreTypes.ts +171 -0
  141. package/src/Init.ts +6 -5
  142. package/src/Node.ts +32 -15
  143. package/src/NodeSidecar.ts +22 -0
  144. package/src/PM/PM_WithEslintAndTsc.ts +315 -0
  145. package/src/PM/__tests__/nodeSidecar.testeranto.ts +173 -0
  146. package/src/PM/__tests__/pureSidecar.testeranto.ts +157 -0
  147. package/src/PM/__tests__/webSidecar.testeranto.ts +157 -0
  148. package/src/PM/base.ts +38 -17
  149. package/src/PM/index.ts +10 -4
  150. package/src/PM/main.ts +616 -589
  151. package/src/PM/node.ts +77 -33
  152. package/src/PM/nodeSidecar.ts +73 -0
  153. package/src/PM/pure.ts +68 -58
  154. package/src/PM/pureSidecar.ts +56 -0
  155. package/src/PM/sidecar.ts +48 -0
  156. package/src/PM/web.ts +42 -11
  157. package/src/PM/webSidecar.ts +55 -0
  158. package/src/Project.tsx +312 -109
  159. package/src/Pure.ts +0 -2
  160. package/src/PureSidecar.ts +14 -0
  161. package/src/ReportClient.tsx +164 -170
  162. package/src/SP__Polygon.test.ts +13 -0
  163. package/src/TestReport.tsx +77 -6
  164. package/src/Types.ts +278 -157
  165. package/src/Web.ts +0 -3
  166. package/src/WebSidecar.ts +14 -0
  167. package/src/build.ts +104 -16
  168. package/src/defaultConfig.ts +1 -0
  169. package/src/esbuildConfigs/README.md +46 -0
  170. package/src/esbuildConfigs/consoleDetectorPlugin.ts +29 -0
  171. package/src/esbuildConfigs/eslint-formatter-testeranto.ts +17 -1
  172. package/src/esbuildConfigs/node.ts +2 -18
  173. package/src/esbuildConfigs/pure.ts +19 -14
  174. package/src/esbuildConfigs/rebuildPlugin.ts +23 -0
  175. package/src/esbuildConfigs/web.ts +15 -18
  176. package/src/lib/Sidecar.ts +6 -0
  177. package/src/lib/TEST_ADAPTER_RENAME.md +48 -0
  178. package/src/lib/abstractBase.ts +18 -10
  179. package/src/lib/basebuilder.ts +5 -4
  180. package/src/lib/classBuilder.ts +19 -21
  181. package/src/lib/core.ts +28 -19
  182. package/src/lib/index.ts +38 -18
  183. package/src/lib/pmProxy.ts +3 -1
  184. package/src/lib/types.ts +15 -2
  185. package/src/mothership/index.ts +15 -0
  186. package/src/mothership/test.ts +137 -0
  187. package/src/run.ts +0 -1
  188. package/src/utils/queue.ts +41 -0
  189. package/src/utils.ts +41 -15
  190. package/testeranto/bundles/node/mothership/chunk-PG6KUKNP.mjs +44 -0
  191. package/testeranto/bundles/node/mothership/chunk-V2EQEXU2.mjs +1032 -0
  192. package/testeranto/bundles/node/mothership/metafile.json +389 -0
  193. package/testeranto/bundles/node/mothership/src/PM/__tests__/nodeSidecar.testeranto.mjs +1219 -0
  194. package/testeranto/bundles/node/mothership/src/PM/__tests__/pureSidecar.testeranto.mjs +156 -0
  195. package/testeranto/bundles/node/mothership/src/PM/__tests__/sidecar.testeranto.mjs +1199 -0
  196. package/testeranto/bundles/node/mothership/src/PM/__tests__/webSidecar.testeranto.mjs +156 -0
  197. package/testeranto/bundles/node/mothership/src/mothership/test.mjs +24411 -0
  198. package/testeranto/bundles/pure/mothership/metafile.json +8 -0
  199. package/testeranto/bundles/web/mothership/metafile.json +8 -0
  200. package/testeranto/index.html +4 -4
  201. package/testeranto/reports/mothership/config.json +25 -0
  202. package/testeranto/reports/{redux → mothership}/index.html +8 -8
  203. package/testeranto/reports/mothership/src/PM/__tests__/nodeSidecar.testeranto/node/console_log.txt +0 -0
  204. package/testeranto/reports/mothership/src/PM/__tests__/nodeSidecar.testeranto/node/index.html +20 -0
  205. package/testeranto/reports/mothership/src/PM/__tests__/nodeSidecar.testeranto/node/lint_errors.json +1564 -0
  206. package/testeranto/reports/mothership/src/PM/__tests__/nodeSidecar.testeranto/node/log.txt +0 -0
  207. package/testeranto/reports/mothership/src/PM/__tests__/nodeSidecar.testeranto/node/prompt.txt +22 -0
  208. package/testeranto/reports/mothership/src/PM/__tests__/nodeSidecar.testeranto/node/type_errors.txt +35 -0
  209. package/testeranto/reports/mothership/src/PM/__tests__/pureSidecar.testeranto/node/index.html +20 -0
  210. package/testeranto/reports/mothership/src/PM/__tests__/pureSidecar.testeranto/node/lint_errors.json +80 -0
  211. package/testeranto/reports/mothership/src/PM/__tests__/pureSidecar.testeranto/node/prompt.txt +12 -0
  212. package/testeranto/reports/mothership/src/PM/__tests__/pureSidecar.testeranto/node/type_errors.txt +26 -0
  213. package/testeranto/reports/mothership/src/PM/__tests__/sidecar.testeranto/node/bdd_errors.txt +1 -0
  214. package/testeranto/reports/mothership/src/PM/__tests__/sidecar.testeranto/node/console_log.txt +0 -0
  215. package/testeranto/reports/mothership/src/PM/__tests__/sidecar.testeranto/node/index.html +20 -0
  216. package/testeranto/reports/mothership/src/PM/__tests__/sidecar.testeranto/node/lint_errors.json +1564 -0
  217. package/testeranto/reports/mothership/src/PM/__tests__/sidecar.testeranto/node/log.txt +0 -0
  218. package/testeranto/reports/mothership/src/PM/__tests__/sidecar.testeranto/node/prompt.txt +22 -0
  219. package/testeranto/reports/mothership/src/PM/__tests__/sidecar.testeranto/node/tests.json +56 -0
  220. package/testeranto/reports/mothership/src/PM/__tests__/sidecar.testeranto/node/type_errors.txt +29 -0
  221. package/testeranto/reports/mothership/src/PM/__tests__/webSidecar.testeranto/node/index.html +20 -0
  222. package/testeranto/reports/mothership/src/PM/__tests__/webSidecar.testeranto/node/lint_errors.json +80 -0
  223. package/testeranto/reports/mothership/src/PM/__tests__/webSidecar.testeranto/node/prompt.txt +12 -0
  224. package/testeranto/reports/mothership/src/PM/__tests__/webSidecar.testeranto/node/type_errors.txt +26 -0
  225. package/testeranto/reports/mothership/src/mothership/test/node/bdd_errors.txt +1 -0
  226. package/testeranto/reports/mothership/src/mothership/test/node/console_log.txt +4 -0
  227. package/testeranto/reports/mothership/src/mothership/test/node/index.html +20 -0
  228. package/testeranto/reports/mothership/src/mothership/test/node/lint_errors.json +1 -0
  229. package/testeranto/reports/mothership/src/mothership/test/node/log.txt +0 -0
  230. package/testeranto/reports/mothership/src/mothership/test/node/prompt.txt +12 -0
  231. package/testeranto/reports/mothership/src/mothership/test/node/tests.json +24 -0
  232. package/testeranto/reports/mothership/src/mothership/test/node/type_errors.txt +18 -0
  233. package/testeranto/reports/mothership/summary.json +9 -0
  234. package/testeranto.config.ts +82 -44
  235. package/tsc.log +78 -81
  236. package/dist/common/src/SubPackages/react/component/index.js +0 -20
  237. package/dist/common/src/SubPackages/react/component/node.js +0 -10
  238. package/dist/common/src/SubPackages/react/component/pure.js +0 -10
  239. package/dist/common/src/SubPackages/react/component/web.js +0 -10
  240. package/dist/common/src/SubPackages/react/jsx/index.js +0 -64
  241. package/dist/common/src/SubPackages/react/jsx/node.js +0 -10
  242. package/dist/common/src/SubPackages/react/jsx/pure.js +0 -10
  243. package/dist/common/src/SubPackages/react/jsx/web.js +0 -10
  244. package/dist/common/src/SubPackages/react-dom/component/dynamic.js +0 -61
  245. package/dist/common/src/SubPackages/react-dom/component/node.js +0 -10
  246. package/dist/common/src/SubPackages/react-dom/component/pure.js +0 -10
  247. package/dist/common/src/SubPackages/react-dom/component/static.js +0 -26
  248. package/dist/common/src/SubPackages/react-dom/component/web.js +0 -16
  249. package/dist/common/src/SubPackages/react-dom/jsx/dynamic.js +0 -31
  250. package/dist/common/src/SubPackages/react-dom/jsx/node.js +0 -10
  251. package/dist/common/src/SubPackages/react-dom/jsx/pure.js +0 -10
  252. package/dist/common/src/SubPackages/react-dom/jsx/static.js +0 -59
  253. package/dist/common/src/SubPackages/react-dom/jsx/web.js +0 -16
  254. package/dist/common/src/SubPackages/react-test-renderer/MemoExoticComponent/node.js +0 -54
  255. package/dist/common/src/SubPackages/react-test-renderer/component/index.js +0 -15
  256. package/dist/common/src/SubPackages/react-test-renderer/component/interface.js +0 -70
  257. package/dist/common/src/SubPackages/react-test-renderer/component/node.js +0 -8
  258. package/dist/common/src/SubPackages/react-test-renderer/component/pure.js +0 -8
  259. package/dist/common/src/SubPackages/react-test-renderer/component/test/implementation.js +0 -57
  260. package/dist/common/src/SubPackages/react-test-renderer/component/test/node.js +0 -10
  261. package/dist/common/src/SubPackages/react-test-renderer/component/test/pure.js +0 -10
  262. package/dist/common/src/SubPackages/react-test-renderer/component/test/web.js +0 -10
  263. package/dist/common/src/SubPackages/react-test-renderer/component/web.js +0 -8
  264. package/dist/common/src/SubPackages/react-test-renderer/fc/node.js +0 -60
  265. package/dist/common/src/SubPackages/react-test-renderer/fc/web.js +0 -60
  266. package/dist/common/src/SubPackages/react-test-renderer/jsx/index.js +0 -67
  267. package/dist/common/src/SubPackages/react-test-renderer/jsx/node.js +0 -10
  268. package/dist/common/src/SubPackages/react-test-renderer/jsx/pure.js +0 -10
  269. package/dist/common/src/SubPackages/react-test-renderer/jsx/web.js +0 -10
  270. package/dist/common/src/SubPackages/react-test-renderer/jsx-promised/index.js +0 -52
  271. package/dist/common/src/SubPackages/react-test-renderer/jsx-promised/node.js +0 -10
  272. package/dist/common/src/SubPackages/react-test-renderer/jsx-promised/web.js +0 -10
  273. package/dist/common/src/examples/react/component/index.js +0 -33
  274. package/dist/common/src/examples/react/component/test.js +0 -36
  275. package/dist/module/src/SubPackages/react/component/index.js +0 -13
  276. package/dist/module/src/SubPackages/react/component/node.js +0 -5
  277. package/dist/module/src/SubPackages/react/component/pure.js +0 -5
  278. package/dist/module/src/SubPackages/react/component/web.js +0 -5
  279. package/dist/module/src/SubPackages/react/jsx/index.js +0 -58
  280. package/dist/module/src/SubPackages/react/jsx/node.js +0 -5
  281. package/dist/module/src/SubPackages/react/jsx/pure.js +0 -5
  282. package/dist/module/src/SubPackages/react/jsx/web.js +0 -5
  283. package/dist/module/src/SubPackages/react-dom/component/dynamic.js +0 -54
  284. package/dist/module/src/SubPackages/react-dom/component/node.js +0 -5
  285. package/dist/module/src/SubPackages/react-dom/component/pure.js +0 -5
  286. package/dist/module/src/SubPackages/react-dom/component/static.js +0 -22
  287. package/dist/module/src/SubPackages/react-dom/component/web.js +0 -11
  288. package/dist/module/src/SubPackages/react-dom/jsx/dynamic.js +0 -27
  289. package/dist/module/src/SubPackages/react-dom/jsx/node.js +0 -5
  290. package/dist/module/src/SubPackages/react-dom/jsx/pure.js +0 -5
  291. package/dist/module/src/SubPackages/react-dom/jsx/static.js +0 -53
  292. package/dist/module/src/SubPackages/react-dom/jsx/web.js +0 -11
  293. package/dist/module/src/SubPackages/react-test-renderer/MemoExoticComponent/node.js +0 -16
  294. package/dist/module/src/SubPackages/react-test-renderer/component/index.js +0 -14
  295. package/dist/module/src/SubPackages/react-test-renderer/component/interface.js +0 -31
  296. package/dist/module/src/SubPackages/react-test-renderer/component/node.js +0 -3
  297. package/dist/module/src/SubPackages/react-test-renderer/component/pure.js +0 -3
  298. package/dist/module/src/SubPackages/react-test-renderer/component/test/implementation.js +0 -54
  299. package/dist/module/src/SubPackages/react-test-renderer/component/test/node.js +0 -5
  300. package/dist/module/src/SubPackages/react-test-renderer/component/test/pure.js +0 -5
  301. package/dist/module/src/SubPackages/react-test-renderer/component/test/web.js +0 -5
  302. package/dist/module/src/SubPackages/react-test-renderer/component/web.js +0 -3
  303. package/dist/module/src/SubPackages/react-test-renderer/fc/node.js +0 -22
  304. package/dist/module/src/SubPackages/react-test-renderer/fc/web.js +0 -22
  305. package/dist/module/src/SubPackages/react-test-renderer/jsx/index.js +0 -28
  306. package/dist/module/src/SubPackages/react-test-renderer/jsx/node.js +0 -5
  307. package/dist/module/src/SubPackages/react-test-renderer/jsx/pure.js +0 -5
  308. package/dist/module/src/SubPackages/react-test-renderer/jsx/web.js +0 -5
  309. package/dist/module/src/SubPackages/react-test-renderer/jsx-promised/index.js +0 -16
  310. package/dist/module/src/SubPackages/react-test-renderer/jsx-promised/node.js +0 -5
  311. package/dist/module/src/SubPackages/react-test-renderer/jsx-promised/web.js +0 -5
  312. package/dist/module/src/examples/react/component/index.js +0 -26
  313. package/dist/module/src/examples/react/component/test.js +0 -32
  314. package/dist/prebuild/ReportClient.css +0 -11342
  315. package/dist/tsconfig.tsbuildinfo +0 -1
  316. package/dist/types/src/SubPackages/react/component/index.d.ts +0 -4
  317. package/dist/types/src/SubPackages/react/component/node.d.ts +0 -4
  318. package/dist/types/src/SubPackages/react/component/pure.d.ts +0 -4
  319. package/dist/types/src/SubPackages/react/component/web.d.ts +0 -4
  320. package/dist/types/src/SubPackages/react/jsx/index.d.ts +0 -5
  321. package/dist/types/src/SubPackages/react/jsx/node.d.ts +0 -4
  322. package/dist/types/src/SubPackages/react/jsx/pure.d.ts +0 -4
  323. package/dist/types/src/SubPackages/react/jsx/web.d.ts +0 -4
  324. package/dist/types/src/SubPackages/react-dom/component/dynamic.d.ts +0 -20
  325. package/dist/types/src/SubPackages/react-dom/component/node.d.ts +0 -4
  326. package/dist/types/src/SubPackages/react-dom/component/pure.d.ts +0 -4
  327. package/dist/types/src/SubPackages/react-dom/component/static.d.ts +0 -9
  328. package/dist/types/src/SubPackages/react-dom/component/web.d.ts +0 -4
  329. package/dist/types/src/SubPackages/react-dom/jsx/dynamic.d.ts +0 -5
  330. package/dist/types/src/SubPackages/react-dom/jsx/index.d.ts +0 -6
  331. package/dist/types/src/SubPackages/react-dom/jsx/node.d.ts +0 -4
  332. package/dist/types/src/SubPackages/react-dom/jsx/pure.d.ts +0 -4
  333. package/dist/types/src/SubPackages/react-dom/jsx/static.d.ts +0 -5
  334. package/dist/types/src/SubPackages/react-dom/jsx/web.d.ts +0 -5
  335. package/dist/types/src/SubPackages/react-test-renderer/MemoExoticComponent/node.d.ts +0 -6
  336. package/dist/types/src/SubPackages/react-test-renderer/component/index.d.ts +0 -5
  337. package/dist/types/src/SubPackages/react-test-renderer/component/interface.d.ts +0 -3
  338. package/dist/types/src/SubPackages/react-test-renderer/component/node.d.ts +0 -4
  339. package/dist/types/src/SubPackages/react-test-renderer/component/pure.d.ts +0 -4
  340. package/dist/types/src/SubPackages/react-test-renderer/component/test/implementation.d.ts +0 -4
  341. package/dist/types/src/SubPackages/react-test-renderer/component/test/node.d.ts +0 -3
  342. package/dist/types/src/SubPackages/react-test-renderer/component/test/pure.d.ts +0 -4
  343. package/dist/types/src/SubPackages/react-test-renderer/component/test/web.d.ts +0 -3
  344. package/dist/types/src/SubPackages/react-test-renderer/component/web.d.ts +0 -4
  345. package/dist/types/src/SubPackages/react-test-renderer/fc/node.d.ts +0 -8
  346. package/dist/types/src/SubPackages/react-test-renderer/fc/web.d.ts +0 -9
  347. package/dist/types/src/SubPackages/react-test-renderer/jsx/index.d.ts +0 -11
  348. package/dist/types/src/SubPackages/react-test-renderer/jsx/node.d.ts +0 -4
  349. package/dist/types/src/SubPackages/react-test-renderer/jsx/pure.d.ts +0 -4
  350. package/dist/types/src/SubPackages/react-test-renderer/jsx/web.d.ts +0 -4
  351. package/dist/types/src/SubPackages/react-test-renderer/jsx-promised/index.d.ts +0 -15
  352. package/dist/types/src/SubPackages/react-test-renderer/jsx-promised/node.d.ts +0 -5
  353. package/dist/types/src/SubPackages/react-test-renderer/jsx-promised/web.d.ts +0 -5
  354. package/dist/types/src/examples/react/component/index.d.ts +0 -13
  355. package/dist/types/src/examples/react/component/test.d.ts +0 -17
  356. package/src/SubPackages/react/component/index.ts +0 -28
  357. package/src/SubPackages/react/component/node.ts +0 -17
  358. package/src/SubPackages/react/component/pure.ts +0 -17
  359. package/src/SubPackages/react/component/web.ts +0 -17
  360. package/src/SubPackages/react/jsx/index.ts +0 -75
  361. package/src/SubPackages/react/jsx/node.ts +0 -23
  362. package/src/SubPackages/react/jsx/pure.ts +0 -23
  363. package/src/SubPackages/react/jsx/web.ts +0 -24
  364. package/src/SubPackages/react-dom/component/dynamic.ts +0 -107
  365. package/src/SubPackages/react-dom/component/node.ts +0 -17
  366. package/src/SubPackages/react-dom/component/pure.ts +0 -17
  367. package/src/SubPackages/react-dom/component/static.ts +0 -41
  368. package/src/SubPackages/react-dom/component/web.ts +0 -32
  369. package/src/SubPackages/react-dom/jsx/dynamic.ts +0 -46
  370. package/src/SubPackages/react-dom/jsx/index.ts +0 -6
  371. package/src/SubPackages/react-dom/jsx/node.ts +0 -18
  372. package/src/SubPackages/react-dom/jsx/pure.ts +0 -18
  373. package/src/SubPackages/react-dom/jsx/static.ts +0 -87
  374. package/src/SubPackages/react-dom/jsx/web.ts +0 -26
  375. package/src/SubPackages/react-test-renderer/MemoExoticComponent/node.ts +0 -54
  376. package/src/SubPackages/react-test-renderer/component/index.ts +0 -32
  377. package/src/SubPackages/react-test-renderer/component/interface.ts +0 -43
  378. package/src/SubPackages/react-test-renderer/component/node.ts +0 -18
  379. package/src/SubPackages/react-test-renderer/component/pure.ts +0 -18
  380. package/src/SubPackages/react-test-renderer/component/test/implementation.ts +0 -63
  381. package/src/SubPackages/react-test-renderer/component/test/node.ts +0 -14
  382. package/src/SubPackages/react-test-renderer/component/test/pure.ts +0 -14
  383. package/src/SubPackages/react-test-renderer/component/test/web.ts +0 -14
  384. package/src/SubPackages/react-test-renderer/component/web.ts +0 -18
  385. package/src/SubPackages/react-test-renderer/fc/node.ts +0 -83
  386. package/src/SubPackages/react-test-renderer/fc/web.ts +0 -80
  387. package/src/SubPackages/react-test-renderer/jsx/index.ts +0 -61
  388. package/src/SubPackages/react-test-renderer/jsx/node.ts +0 -31
  389. package/src/SubPackages/react-test-renderer/jsx/pure.ts +0 -31
  390. package/src/SubPackages/react-test-renderer/jsx/web.ts +0 -32
  391. package/src/SubPackages/react-test-renderer/jsx-promised/index.ts +0 -73
  392. package/src/SubPackages/react-test-renderer/jsx-promised/node.ts +0 -36
  393. package/src/SubPackages/react-test-renderer/jsx-promised/web.ts +0 -36
  394. package/src/examples/react/component/index.tsx +0 -35
  395. package/src/examples/react/component/test.ts +0 -83
  396. package/testeranto/bundles/node/redux/metafile.json +0 -559
  397. package/testeranto/bundles/pure/redux/metafile.json +0 -554
  398. package/testeranto/bundles/web/redux/metafile.json +0 -504
  399. package/testeranto/bundles/web/redux/test/web.html +0 -19
  400. package/testeranto/reports/redux/config.json +0 -38
  401. package/testeranto/reports/redux/summary.json +0 -20
  402. /package/dist/common/src/{SubPackages/react-dom/jsx/index.js → CoreTypes.js} +0 -0
  403. /package/dist/module/src/{SubPackages/react-dom/jsx/index.js → CoreTypes.js} +0 -0
@@ -0,0 +1,51 @@
1
+ import { ITTestResourceConfiguration } from "./lib";
2
+ import { IPM, ITestCheckCallback } from "./lib/types";
3
+ import { GivenSpecification, WhenSpecification, ThenSpecification, TestWhenImplementation, Modify, TestSuiteImplementation, TestGivenImplementation, TestThenImplementation, TestCheckImplementation, TestSuiteShape, TestGivenShape, TestWhenShape, TestThenShape, TestCheckShape, SuiteSpecification } from "./Types";
4
+ export type ITestInterface<I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>> = {
5
+ assertThis: (x: I["then"]) => any;
6
+ andWhen: (store: I["istore"], whenCB: I["when"], testResource: ITTestResourceConfiguration, pm: IPM) => Promise<I["istore"]>;
7
+ butThen: (store: I["istore"], thenCB: I["then"], testResource: ITTestResourceConfiguration, pm: IPM) => Promise<I["iselection"]>;
8
+ afterAll: (store: I["istore"], pm: IPM) => any;
9
+ afterEach: (store: I["istore"], key: string, pm: IPM) => Promise<unknown>;
10
+ beforeAll: (input: I["iinput"], testResource: ITTestResourceConfiguration, pm: IPM) => Promise<I["isubject"]>;
11
+ beforeEach: (subject: I["isubject"], initializer: (c?: any) => I["given"], testResource: ITTestResourceConfiguration, initialValues: any, pm: IPM) => Promise<I["istore"]>;
12
+ };
13
+ export type ITestSpecification<I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>, O extends Ibdd_out<TestSuiteShape, TestGivenShape, TestWhenShape, TestThenShape, TestCheckShape>> = (Suite: SuiteSpecification<I, O>, Given: GivenSpecification<I, O>, When: WhenSpecification<I, O>, Then: ThenSpecification<I, O>, Check: ITestCheckCallback<I, O>) => any[];
14
+ export type ITestImplementation<I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>, O extends Ibdd_out<TestSuiteShape, TestGivenShape, TestWhenShape, TestThenShape, TestCheckShape>, modifier = {
15
+ whens: TestWhenImplementation<I, O>;
16
+ }> = Modify<{
17
+ suites: TestSuiteImplementation<O>;
18
+ givens: TestGivenImplementation<I, O>;
19
+ whens: TestWhenImplementation<I, O>;
20
+ thens: TestThenImplementation<I, O>;
21
+ checks: TestCheckImplementation<I, O>;
22
+ }, modifier>;
23
+ export type Ibdd_out<ISuites extends TestSuiteShape = TestSuiteShape, IGivens extends TestGivenShape = TestGivenShape, IWhens extends TestWhenShape = TestWhenShape, IThens extends TestThenShape = TestThenShape, IChecks extends TestCheckShape = TestCheckShape> = {
24
+ suites: ISuites;
25
+ givens: IGivens;
26
+ whens: IWhens;
27
+ thens: IThens;
28
+ checks: IChecks;
29
+ };
30
+ export type Ibdd_in<IInput, // Type of initial test input
31
+ ISubject, // Type of object being tested
32
+ IStore, // Type for storing test state between steps
33
+ ISelection, // Type for selecting state for assertions
34
+ IGiven, // Type for Given step functions
35
+ IWhen, // Type for When step functions
36
+ IThen> = {
37
+ /** Initial input required to start tests */
38
+ iinput: IInput;
39
+ /** The subject being tested (class, function, etc) */
40
+ isubject: ISubject;
41
+ /** Complete test state storage */
42
+ istore: IStore;
43
+ /** Selected portion of state for assertions */
44
+ iselection: ISelection;
45
+ /** Function type for Given steps */
46
+ given: IGiven;
47
+ /** Function type for When steps */
48
+ when: IWhen;
49
+ /** Function type for Then steps */
50
+ then: IThen;
51
+ };
@@ -1,7 +1,7 @@
1
1
  import Testeranto from "./lib/core.js";
2
2
  import { ITTestResourceRequest } from "./lib/index.js";
3
- import type { INodeTestInterface, IT, ITestImplementation, ITestInterface, ITestSpecification, OT } from "./Types.js";
4
- export declare class NodeTesteranto<I extends IT, O extends OT, M> extends Testeranto<I, O, M> {
3
+ import { ITestSpecification, ITestImplementation, ITestInterface, Ibdd_in, Ibdd_out } from "./CoreTypes.js";
4
+ export declare class NodeTesteranto<I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>, O extends Ibdd_out, M> extends Testeranto<I, O, M> {
5
5
  constructor(input: I["iinput"], testSpecification: ITestSpecification<I, O>, testImplementation: ITestImplementation<I, O, M>, testResourceRequirement: ITTestResourceRequest, testInterface: Partial<ITestInterface<I>>);
6
6
  receiveTestResourceConfig(partialTestResource: string): Promise<import("./lib/index.js").IFinalResults>;
7
7
  }
@@ -0,0 +1,6 @@
1
+ import { Sidecar } from "./lib/Sidecar";
2
+ import { PM_Node_Sidecar } from "./PM/nodeSidecar";
3
+ export declare abstract class NodeSidecar extends Sidecar {
4
+ pm: PM_Node_Sidecar;
5
+ constructor(t: any);
6
+ }
@@ -0,0 +1,23 @@
1
+ import { IBuiltConfig, IRunTime, ISummary } from "../Types.js";
2
+ import { PM_Base } from "./base.js";
3
+ export declare abstract class PM_WithEslintAndTsc extends PM_Base {
4
+ name: string;
5
+ mode: "once" | "dev";
6
+ summary: ISummary;
7
+ constructor(configs: IBuiltConfig, name: string, mode: "once" | "dev");
8
+ tscCheck: ({ entrypoint, addableFiles, platform, }: {
9
+ platform: IRunTime;
10
+ entrypoint: string;
11
+ addableFiles: string[];
12
+ }) => Promise<void>;
13
+ eslintCheck: (entrypoint: string, platform: IRunTime, addableFiles: string[]) => Promise<void>;
14
+ makePrompt: (entryPoint: string, addableFiles: string[], platform: IRunTime) => Promise<void>;
15
+ typeCheckIsRunning: (src: string) => void;
16
+ typeCheckIsNowDone: (src: string, failures: number) => void;
17
+ lintIsRunning: (src: string) => void;
18
+ lintIsNowDone: (src: string, failures: number) => void;
19
+ bddTestIsRunning: (src: string) => void;
20
+ bddTestIsNowDone: (src: string, failures: number) => void;
21
+ writeBigBoard: () => void;
22
+ checkForShutdown: () => void;
23
+ }
@@ -0,0 +1,2 @@
1
+ declare const _default: Promise<import("../../lib/core").default<IT, OT, any>>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: Promise<import("../../lib/core").default<IT, OT, any>>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: Promise<import("../../lib/core").default<IT, OT, any>>;
2
+ export default _default;
@@ -6,15 +6,16 @@ export declare abstract class PM_Base {
6
6
  browser: Browser;
7
7
  configs: IBuiltConfig;
8
8
  constructor(configs: IBuiltConfig);
9
+ abstract launchSideCar(n: number, testName: string, projectName: string): any;
9
10
  customclose(): void;
10
11
  waitForSelector(p: string, s: string): any;
11
12
  closePage(p: any): any;
12
- newPage(): Promise<Page>;
13
+ newPage(): Promise<string>;
13
14
  goto(p: any, url: string): any;
14
- $(selector: string, p: string): Promise<boolean>;
15
+ $(selector: string, p: string): Promise<any>;
15
16
  pages(): Promise<string[]>;
16
17
  screencast(ssOpts: ScreenshotOptions, testName: string, page: Page): Promise<Uint8Array<ArrayBufferLike>>;
17
- customScreenShot(ssOpts: ScreenshotOptions, testName: string, page: Page): Promise<Uint8Array<ArrayBufferLike>>;
18
+ customScreenShot(ssOpts: ScreenshotOptions, testName: string, pageUid: any): Promise<Uint8Array<ArrayBufferLike>>;
18
19
  end(uid: number): Promise<boolean>;
19
20
  existsSync(destFolder: string): boolean;
20
21
  mkdirSync(fp: string): Promise<string | false | undefined>;
@@ -22,12 +23,12 @@ export declare abstract class PM_Base {
22
23
  createWriteStream(filepath: string, testName: string): Promise<number>;
23
24
  testArtiFactoryfileWriter(tLog: ITLog, callback: (Promise: any) => void): (fPath: any, value: string | Buffer | PassThrough) => void;
24
25
  write(uid: number, contents: string): Promise<boolean>;
25
- page(): string | undefined;
26
+ page(p: any): string | undefined;
26
27
  click(selector: string, page: Page): Promise<void>;
27
28
  focusOn(selector: string, p: string): Promise<void>;
28
29
  typeInto(value: string, p: string): Promise<void>;
29
- getValue(value: string, p: string): void;
30
30
  getAttribute(selector: string, attribute: string, p: string): void;
31
+ getInnerHtml(selector: string, p: string): Promise<unknown>;
31
32
  isDisabled(selector: string, p: string): void;
32
33
  screencastStop(s: string): Promise<void>;
33
34
  doInPage(p: string, cb: (p: Page) => unknown): Promise<void>;
@@ -7,7 +7,7 @@ export declare abstract class PM {
7
7
  abstract start(): Promise<void>;
8
8
  abstract stop(): Promise<void>;
9
9
  abstract testArtiFactoryfileWriter(tLog: ITLog, callback: (Promise: any) => void): any;
10
- abstract $(selector: string): any;
10
+ abstract $(selector: string, page: string): any;
11
11
  abstract click(selector: string): any;
12
12
  abstract closePage(p: any): any;
13
13
  abstract createWriteStream(filepath: string, testName: string): Promise<string>;
@@ -16,8 +16,8 @@ export declare abstract class PM {
16
16
  abstract end(uid: number): Promise<boolean>;
17
17
  abstract existsSync(fp: string): Promise<boolean>;
18
18
  abstract focusOn(selector: string): any;
19
- abstract getAttribute(selector: string, attribute: string): any;
20
- abstract getValue(value: string): any;
19
+ abstract getAttribute(selector: string, attribute: string, page: string): any;
20
+ abstract getInnerHtml(selector: string, page: string): any;
21
21
  abstract goto(p: any, url: string): any;
22
22
  abstract isDisabled(selector: string): Promise<boolean>;
23
23
  abstract mkdirSync(a: string): any;
@@ -29,5 +29,7 @@ export declare abstract class PM {
29
29
  abstract typeInto(selector: string, value: string): any;
30
30
  abstract waitForSelector(p: any, sel: string): any;
31
31
  abstract write(uid: number, contents: string): Promise<boolean>;
32
- abstract writeFileSync(f: string, c: string, t: string): Promise<boolean>;
32
+ abstract writeFileSync(f: string, c: string): Promise<boolean>;
33
+ abstract launchSideCar(n: number): Promise<[number, ITTestResourceConfiguration]>;
34
+ abstract stopSideCar(n: number): Promise<any>;
33
35
  }
@@ -1,47 +1,44 @@
1
+ import { ChildProcess } from "node:child_process";
1
2
  import { Page } from "puppeteer-core/lib/esm/puppeteer";
2
3
  import fs from "fs";
3
- import { IRunnables } from "../lib/index.js";
4
- import { ISummary } from "../utils";
4
+ import { IRunnables, ITTestResourceConfiguration } from "../lib/index.js";
5
5
  import { IBuiltConfig, IRunTime, ITestTypes } from "../Types.js";
6
- import { PM_Base } from "./base.js";
7
- export declare class PM_Main extends PM_Base {
8
- name: string;
6
+ import { Sidecar } from "../lib/Sidecar.js";
7
+ import { PM_WithEslintAndTsc } from "./PM_WithEslintAndTsc.js";
8
+ export declare class PM_Main extends PM_WithEslintAndTsc {
9
9
  ports: Record<number, boolean>;
10
10
  queue: any[];
11
- mode: "once" | "dev";
12
- bigBoard: ISummary;
13
11
  webMetafileWatcher: fs.FSWatcher;
14
12
  nodeMetafileWatcher: fs.FSWatcher;
15
13
  importMetafileWatcher: fs.FSWatcher;
14
+ pureSidecars: Record<number, Sidecar>;
15
+ nodeSidecars: Record<number, ChildProcess>;
16
+ webSidecars: Record<number, Page>;
16
17
  constructor(configs: IBuiltConfig, name: string, mode: "once" | "dev");
18
+ stopSideCar(uid: number): Promise<any>;
19
+ launchSideCar(n: number, name: string): Promise<[number, ITTestResourceConfiguration]>;
17
20
  mapping(): [string, (...a: any[]) => any][];
18
21
  start(): Promise<void>;
22
+ launchExternalTest(externalTestName: string, externalTest: {
23
+ watch: string[];
24
+ exec: string;
25
+ }): Promise<void>;
19
26
  stop(): Promise<void>;
20
27
  getRunnables: (tests: ITestTypes[], testName: string, payload?: {
21
28
  nodeEntryPoints: {};
29
+ nodeEntryPointSidecars: {};
22
30
  webEntryPoints: {};
23
- importEntryPoints: {};
31
+ webEntryPointSidecars: {};
32
+ pureEntryPoints: {};
33
+ pureEntryPointSidecars: {};
24
34
  }) => IRunnables;
25
35
  metafileOutputs(platform: IRunTime): Promise<void>;
26
- tscCheck: ({ entrypoint, addableFiles, platform, }: {
27
- platform: IRunTime;
28
- entrypoint: string;
29
- addableFiles: string[];
30
- }) => Promise<void>;
31
- eslintCheck: (entrypoint: string, platform: IRunTime, addableFiles: string[]) => Promise<void>;
32
- makePrompt: (entryPoint: string, addableFiles: string[], platform: IRunTime) => Promise<void>;
33
- checkForShutdown: () => void;
34
- typeCheckIsRunning: (src: string) => void;
35
- typeCheckIsNowDone: (src: string, failures: number) => void;
36
- lintIsRunning: (src: string) => void;
37
- lintIsNowDone: (src: string, failures: number) => void;
38
- bddTestIsRunning: (src: string) => void;
39
- bddTestIsNowDone: (src: string, failures: number) => void;
40
36
  launchPure: (src: string, dest: string) => Promise<void>;
41
37
  launchNode: (src: string, dest: string) => Promise<void>;
42
- launchWebSideCar: (src: string, dest: string, testConfig: ITestTypes) => Promise<Page>;
43
- launchNodeSideCar: (src: string, dest: string, testConfig: ITestTypes) => Promise<void>;
38
+ launchWebSideCar: (testConfig: ITestTypes) => Promise<[number, ITTestResourceConfiguration]>;
39
+ launchNodeSideCar: (sidecar: ITestTypes) => Promise<[number, ITTestResourceConfiguration]>;
40
+ stopPureSideCar: (uid: number) => Promise<void>;
41
+ launchPureSideCar: (sidecar: ITestTypes) => Promise<[number, ITTestResourceConfiguration]>;
44
42
  launchWeb: (src: string, dest: string) => Promise<void>;
45
- receiveFeatures: (features: string[], destFolder: string, srcTest: string, platform: IRunTime) => void;
46
- writeBigBoard: () => void;
43
+ receiveFeaturesV2: (reportDest: string, srcTest: string, platform: IRunTime) => void;
47
44
  }
@@ -6,26 +6,28 @@ import { PM } from ".";
6
6
  export declare class PM_Node extends PM {
7
7
  testResourceConfiguration: ITTestResourceConfiguration;
8
8
  client: net.Socket;
9
- constructor(t: ITTestResourceConfiguration);
9
+ constructor(t: ITTestResourceConfiguration, ipcFile: string);
10
10
  start(): Promise<void>;
11
11
  stop(): Promise<void>;
12
12
  send<I>(command: string, ...argz: any[]): Promise<I>;
13
+ launchSideCar(n: number): Promise<[number, ITTestResourceConfiguration]>;
14
+ stopSideCar(n: number): Promise<any>;
13
15
  pages(): Promise<string[]>;
14
16
  waitForSelector(p: string, s: string): any;
15
17
  closePage(p: any): Promise<unknown>;
16
18
  goto(page: string, url: string): Promise<unknown>;
17
19
  newPage(): Promise<string>;
18
- $(selector: string): Promise<unknown>;
20
+ $(selector: string, page: string): Promise<unknown>;
19
21
  isDisabled(selector: string): Promise<boolean>;
20
- getAttribute(selector: string, attribute: string): Promise<unknown>;
21
- getValue(selector: string): Promise<unknown>;
22
+ getAttribute(selector: string, attribute: string, p: string): Promise<unknown>;
23
+ getInnerHtml(selector: string, p: string): Promise<unknown>;
22
24
  focusOn(selector: string): Promise<unknown>;
23
25
  typeInto(selector: string): Promise<unknown>;
24
26
  page(): Promise<string | undefined>;
25
27
  click(selector: string): Promise<unknown>;
26
28
  screencast(opts: ScreencastOptions, page: string): Promise<unknown>;
27
29
  screencastStop(p: string): Promise<unknown>;
28
- customScreenShot(opts: ScreencastOptions, page?: string): Promise<unknown>;
30
+ customScreenShot(x: ScreencastOptions, y?: string): Promise<unknown>;
29
31
  existsSync(destFolder: string): Promise<boolean>;
30
32
  mkdirSync(): Promise<unknown>;
31
33
  write(uid: number, contents: string): Promise<boolean>;
@@ -33,6 +35,6 @@ export declare class PM_Node extends PM {
33
35
  createWriteStream(filepath: string): Promise<string>;
34
36
  end(uid: any): Promise<boolean>;
35
37
  customclose(): Promise<unknown>;
36
- testArtiFactoryfileWriter(tLog: ITLog, callback: (Promise: any) => void): (fPath: any, value: string | Buffer | PassThrough) => void;
38
+ testArtiFactoryfileWriter(tLog: ITLog, callback: (p: Promise<void>) => void): (fPath: string, value: string | Buffer | PassThrough) => void;
37
39
  startPuppeteer(options?: any): any;
38
40
  }
@@ -0,0 +1,13 @@
1
+ import net from "net";
2
+ import { ITTestResourceConfiguration } from "../lib";
3
+ import { PM_sidecar } from "./sidecar";
4
+ export declare class PM_Node_Sidecar extends PM_sidecar {
5
+ testResourceConfiguration: ITTestResourceConfiguration;
6
+ client: net.Socket;
7
+ mockListener?: jest.Mock;
8
+ constructor(t: ITTestResourceConfiguration);
9
+ start(stopper: () => any): Promise<void>;
10
+ stop(): Promise<void>;
11
+ testArtiFactoryfileWriter(tLog: ITLog, callback: (p: Promise<void>) => void): (fPath: string, value: string | Buffer | PassThrough) => void;
12
+ send<I>(command: string, ...argz: any[]): Promise<I>;
13
+ }
@@ -1,15 +1,17 @@
1
1
  import { ScreencastOptions } from "puppeteer-core";
2
2
  import { CdpPage } from "puppeteer-core/lib/esm/puppeteer";
3
- import { PassThrough } from "stream";
4
3
  import { ITLog, ITTestResourceConfiguration } from "../lib";
5
4
  import { PM } from ".";
6
5
  type PuppetMasterServer = Record<string, Promise<any>>;
7
6
  export declare class PM_Pure extends PM {
7
+ getInnerHtml(selector: string, page: string): Promise<string>;
8
+ stopSideCar(uid: number): Promise<boolean>;
8
9
  server: PuppetMasterServer;
9
10
  testResourceConfiguration: ITTestResourceConfiguration;
10
11
  constructor(t: ITTestResourceConfiguration);
11
12
  start(): Promise<void>;
12
13
  stop(): Promise<void>;
14
+ launchSideCar(n: number): Promise<[number, ITTestResourceConfiguration]>;
13
15
  pages(): any;
14
16
  waitForSelector(p: string, s: string): any;
15
17
  closePage(p: any): string;
@@ -33,7 +35,6 @@ export declare class PM_Pure extends PM {
33
35
  createWriteStream(filepath: string): any;
34
36
  end(uid: number): any;
35
37
  customclose(): void;
36
- testArtiFactoryfileWriter(tLog: ITLog, callback: (Promise: any) => void): (fPath: any, value: string | Buffer | PassThrough) => void;
37
- startPuppeteer(options?: any): any;
38
+ testArtiFactoryfileWriter(tLog: ITLog, callback: (Promise: any) => void): void;
38
39
  }
39
40
  export {};
@@ -0,0 +1,11 @@
1
+ import net from "net";
2
+ import { ITTestResourceConfiguration } from "../lib";
3
+ import { PM_sidecar } from "./sidecar";
4
+ export declare class PM_Pure_Sidecar extends PM_sidecar {
5
+ testResourceConfiguration: ITTestResourceConfiguration;
6
+ client: net.Socket;
7
+ constructor(t: ITTestResourceConfiguration);
8
+ start(): Promise<void>;
9
+ stop(): Promise<void>;
10
+ send<I>(command: string, ...argz: any[]): Promise<I>;
11
+ }
@@ -0,0 +1,8 @@
1
+ import { ITTestResourceConfiguration } from "../lib";
2
+ import { ITLog } from "../lib";
3
+ export declare abstract class PM_sidecar {
4
+ testResourceConfiguration: ITTestResourceConfiguration;
5
+ abstract start(stopper: () => any): Promise<void>;
6
+ abstract stop(): Promise<void>;
7
+ testArtiFactoryfileWriter(tLog: ITLog, callback: (p: Promise<void>) => void): (fPath: string, value: unknown) => void;
8
+ }
@@ -1,33 +1,43 @@
1
1
  import { PassThrough } from "stream";
2
2
  import { ScreencastOptions, ScreenshotOptions } from "puppeteer-core";
3
- import { CdpPage, Page } from "puppeteer-core/lib/esm/puppeteer";
3
+ declare module "puppeteer-core" {
4
+ interface Frame {
5
+ _id: string;
6
+ }
7
+ }
8
+ import { Page } from "puppeteer-core";
4
9
  import { ITLog, ITTestResourceConfiguration } from "../lib";
5
- export declare class PM_Web {
10
+ import { PM } from ".";
11
+ export declare class PM_Web extends PM {
6
12
  testResourceConfiguration: ITTestResourceConfiguration;
7
13
  constructor(t: ITTestResourceConfiguration);
8
14
  start(): Promise<void>;
9
15
  stop(): Promise<void>;
16
+ getInnerHtml(selector: string, page: string): void;
17
+ pages(): Promise<string[]>;
18
+ stopSideCar(n: number): Promise<any>;
19
+ launchSideCar(n: number): Promise<[number, ITTestResourceConfiguration]>;
10
20
  waitForSelector(p: string, s: string): any;
11
- screencast(opts: ScreencastOptions, page: Page): any;
21
+ screencast(o: ScreencastOptions, p: string | Page): Promise<string>;
12
22
  screencastStop(recorder: string): any;
13
23
  closePage(p: any): string;
14
24
  goto(p: any, url: string): any;
15
- newPage(): CdpPage;
25
+ newPage(): any;
16
26
  $(selector: string): boolean;
17
27
  isDisabled(selector: string): Promise<boolean>;
18
28
  getAttribute(selector: string, attribute: string): any;
19
29
  getValue(selector: number): any;
20
30
  focusOn(selector: string): any;
21
31
  typeInto(value: string): any;
22
- page(): string | undefined;
32
+ page(x?: any): Promise<string | undefined>;
23
33
  click(selector: string): any;
24
- customScreenShot(opts: ScreenshotOptions, page: Page): any;
25
- existsSync(destFolder: string): boolean;
34
+ customScreenShot(x: ScreenshotOptions, y: any): any;
35
+ existsSync(destFolder: string): Promise<boolean>;
26
36
  mkdirSync(x: any): any;
27
37
  write(uid: number, contents: string): Promise<boolean>;
28
38
  writeFileSync(filepath: string, contents: string): any;
29
39
  createWriteStream(filepath: string): any;
30
- end(uid: number): boolean;
40
+ end(uid: number): Promise<boolean>;
31
41
  customclose(): void;
32
42
  testArtiFactoryfileWriter(tLog: ITLog, callback: (Promise: any) => void): (fPath: any, value: string | Buffer | PassThrough) => void;
33
43
  }
@@ -0,0 +1,11 @@
1
+ import net from "net";
2
+ import { ITTestResourceConfiguration } from "../lib";
3
+ import { PM_sidecar } from "./sidecar";
4
+ export declare class PM_Web_Sidecar extends PM_sidecar {
5
+ testResourceConfiguration: ITTestResourceConfiguration;
6
+ client: net.Socket;
7
+ constructor(t: ITTestResourceConfiguration);
8
+ start(): Promise<void>;
9
+ stop(): Promise<void>;
10
+ send<I>(command: string, ...argz: any[]): Promise<I>;
11
+ }
@@ -0,0 +1,8 @@
1
+ import { ITTestResourceConfiguration } from "./lib";
2
+ import { Sidecar } from "./lib/Sidecar";
3
+ import { PM_Pure_Sidecar } from "./PM/pureSidecar";
4
+ export declare class PureSideCar extends Sidecar {
5
+ pm: PM_Pure_Sidecar;
6
+ start(t: ITTestResourceConfiguration): void;
7
+ stop(): void;
8
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -1,69 +1,88 @@
1
1
  import { Plugin } from "esbuild";
2
2
  import { ITTestResourceConfiguration } from "./lib/index.js";
3
- import { IGivens, BaseCheck, BaseSuite, BaseWhen, BaseThen, BaseGiven } from "./lib/abstractBase.js";
4
- import { IPM, ITestCheckCallback } from "./lib/types.js";
5
3
  import { PM } from "./PM/index.js";
6
- export type ITestInterface<I extends IT = IT> = {
7
- assertThis: (x: I["then"]) => any;
8
- andWhen: (store: I["istore"], whenCB: I["when"], testResource: ITTestResourceConfiguration, pm: IPM) => Promise<I["istore"]>;
9
- butThen: (store: I["istore"], thenCB: I["then"], testResource: ITTestResourceConfiguration, pm: IPM) => Promise<I["iselection"]>;
10
- afterAll: (store: I["istore"], pm: IPM) => any;
11
- afterEach: (store: I["istore"], key: string, pm: IPM) => Promise<unknown>;
12
- beforeAll: (input: I["iinput"], testResource: ITTestResourceConfiguration, pm: IPM) => Promise<I["isubject"]>;
13
- beforeEach: (subject: I["isubject"], initializer: (c?: any) => I["given"], testResource: ITTestResourceConfiguration, initialValues: any, pm: IPM) => Promise<I["istore"]>;
14
- };
15
- export type IWebTestInterface<I extends IT> = ITestInterface<I>;
16
- export type INodeTestInterface<I extends IT> = ITestInterface<I>;
17
- export type IPartialInterface<I extends IT> = Partial<ITestInterface<I>>;
18
- export type IPartialNodeInterface<I extends IT> = Partial<INodeTestInterface<I>>;
19
- export type IPartialWebInterface<I extends IT> = Partial<IWebTestInterface<I>>;
20
- export type IT = Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>;
21
- export type OT = Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>;
22
- export type ITestSpecification<I extends IT, O extends OT> = (Suite: {
4
+ import { BaseWhen, BaseThen, BaseGiven, BaseCheck, BaseSuite, IGivens } from "./lib/abstractBase.js";
5
+ import { Ibdd_in, Ibdd_out } from "./CoreTypes.js";
6
+ export type SuiteSpecification<I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>, O extends Ibdd_out<TestSuiteShape, TestGivenShape, TestWhenShape, TestThenShape, TestCheckShape>> = {
23
7
  [K in keyof O["suites"]]: (name: string, givens: IGivens<I>, checks: BaseCheck<I>[]) => BaseSuite<I, O>;
24
- }, Given: {
8
+ };
9
+ export type TestSummary = {
10
+ testName: string;
11
+ errors?: {
12
+ runtime?: number;
13
+ type?: number;
14
+ static?: number;
15
+ };
16
+ prompt?: string;
17
+ failedFeatures: string[];
18
+ };
19
+ export type TestLifecycle<Subject, State, Selection> = {
20
+ beforeAll?: (input: any) => Promise<Subject>;
21
+ beforeEach?: (subject: Subject) => Promise<State>;
22
+ executeStep?: (state: State) => Promise<State>;
23
+ verifyStep?: (state: State) => Promise<Selection>;
24
+ afterEach?: (state: State) => Promise<void>;
25
+ afterAll?: (state: State) => Promise<void>;
26
+ assert?: (result: Selection) => void;
27
+ };
28
+ export type TestDefinition<Subject, State, Selection> = {
29
+ subject: Subject;
30
+ given?: (input: any) => State;
31
+ when?: (state: State) => State | Promise<State>;
32
+ then?: (state: State) => Selection | Promise<Selection>;
33
+ resources?: ITTestResourceConfiguration;
34
+ pm?: typeof PM;
35
+ };
36
+ export type TestSuite = {
37
+ name: string;
38
+ tests: TestDefinition<any, any, any>[];
39
+ features?: string[];
40
+ };
41
+ export type RuntimeConfig = {
42
+ type: "node" | "web" | "pure" | "spawn";
43
+ ports?: number[];
44
+ plugins?: Plugin[];
45
+ };
46
+ export type ProjectConfig = {
47
+ name: string;
48
+ sourceDir: string;
49
+ testSuites: TestSuite[];
50
+ runtime: RuntimeConfig;
51
+ minify?: boolean;
52
+ debug?: boolean;
53
+ };
54
+ export type GivenSpecification<I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>, O extends Ibdd_out<TestSuiteShape, TestGivenShape, TestWhenShape, TestThenShape, TestCheckShape>> = {
25
55
  [K in keyof O["givens"]]: (features: string[], whens: BaseWhen<I>[], thens: BaseThen<I>[], ...xtrasB: O["givens"][K]) => BaseGiven<I>;
26
- }, When: {
56
+ };
57
+ export type WhenSpecification<I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>, O extends Ibdd_out<TestSuiteShape, TestGivenShape, TestWhenShape, TestThenShape, TestCheckShape>> = {
27
58
  [K in keyof O["whens"]]: (...xtrasC: O["whens"][K]) => BaseWhen<I>;
28
- }, Then: {
59
+ };
60
+ export type ThenSpecification<I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>, O extends Ibdd_out<TestSuiteShape, TestGivenShape, TestWhenShape, TestThenShape, TestCheckShape>> = {
29
61
  [K in keyof O["thens"]]: (...xtrasD: O["thens"][K]) => BaseThen<I>;
30
- }, Check: ITestCheckCallback<I, O>) => any[];
31
- export type ITestImplementation<I extends IT, O extends OT, modifier = {}> = Modify<{
32
- suites: {
33
- [K in keyof O["suites"]]: string;
34
- };
35
- givens: {
36
- [K in keyof O["givens"]]: (...Ig: O["givens"][K]) => I["given"];
37
- };
38
- whens: {
39
- [K in keyof O["whens"]]: (...Iw: O["whens"][K]) => (zel: I["iselection"], utils: PM) => Promise<I["when"]>;
40
- };
41
- thens: {
42
- [K in keyof O["thens"]]: (...It: O["thens"][K]) => (ssel: I["iselection"], utils: PM) => I["then"];
43
- };
44
- checks: {
45
- [K in keyof O["checks"]]: (...Ic: O["checks"][K]) => I["given"];
46
- };
47
- }, modifier>;
48
- export type Modify<T, R> = Omit<T, keyof R> & R;
49
- export type Ibdd_out<ISuites extends Record<string, any> = Record<string, any>, IGivens extends Record<string, any> = Record<string, any>, IWhens extends Record<string, any> = Record<string, any>, IThens extends Record<string, any> = Record<string, any>, IChecks extends Record<string, any> = Record<string, any>> = {
50
- suites: ISuites;
51
- givens: IGivens;
52
- whens: IWhens;
53
- thens: IThens;
54
- checks: IChecks;
55
- };
56
- export type Ibdd_in<IInput, ISubject, IStore, ISelection, IGiven, IWhen, IThen> = {
57
- iinput: IInput;
58
- isubject: ISubject;
59
- istore: IStore;
60
- iselection: ISelection;
61
- given: IGiven;
62
- when: IWhen;
63
- then: IThen;
64
62
  };
63
+ export type TestSuiteImplementation<O extends Ibdd_out<TestSuiteShape, TestGivenShape, TestWhenShape, TestThenShape, TestCheckShape>> = {
64
+ [K in keyof O["suites"]]: string;
65
+ };
66
+ export type TestGivenImplementation<I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>, O extends Ibdd_out<TestSuiteShape, TestGivenShape, TestWhenShape, TestThenShape, TestCheckShape>> = {
67
+ [K in keyof O["givens"]]: (...Ig: O["givens"][K]) => I["given"];
68
+ };
69
+ export type TestWhenImplementation<I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>, O extends Ibdd_out<TestSuiteShape, TestGivenShape, TestWhenShape, TestThenShape, TestCheckShape>> = {
70
+ [K in keyof O["whens"]]: (...Iw: O["whens"][K]) => (zel: I["iselection"], tr: ITTestResourceConfiguration, utils: PM) => Promise<I["when"]>;
71
+ };
72
+ export type TestThenImplementation<I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>, O extends Ibdd_out<TestSuiteShape, TestGivenShape, TestWhenShape, TestThenShape, TestCheckShape>> = {
73
+ [K in keyof O["thens"]]: (...It: O["thens"][K]) => (ssel: I["iselection"], utils: PM) => I["then"];
74
+ };
75
+ export type TestCheckImplementation<I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>, O extends Ibdd_out<TestSuiteShape, TestGivenShape, TestWhenShape, TestThenShape, TestCheckShape>> = {
76
+ [K in keyof O["checks"]]: (...Ic: O["checks"][K]) => I["given"];
77
+ };
78
+ export type Modify<T, R> = Omit<T, keyof R> & R;
79
+ export type TestSuiteShape = Record<string, any>;
80
+ export type TestGivenShape = Record<string, any>;
81
+ export type TestWhenShape = Record<string, any>;
82
+ export type TestThenShape = Record<string, any>;
83
+ export type TestCheckShape = Record<string, any>;
65
84
  export type IPluginFactory = (register?: (entrypoint: string, sources: string[]) => any, entrypoints?: string[]) => Plugin;
66
- export type IRunTime = `node` | `web` | "pure";
85
+ export type IRunTime = `node` | `web` | "pure" | `spawn`;
67
86
  export type ITestTypes = [string, IRunTime, {
68
87
  ports: number;
69
88
  }, ITestTypes[]];
@@ -71,6 +90,10 @@ export type ITestconfig = {
71
90
  clearScreen: boolean;
72
91
  debugger: boolean;
73
92
  externals: string[];
93
+ externalTests: Record<string, {
94
+ watch: string[];
95
+ exec: string;
96
+ }>;
74
97
  featureIngestor: (s: string) => Promise<string>;
75
98
  importPlugins: IPluginFactory[];
76
99
  minify: boolean;
@@ -79,7 +102,6 @@ export type ITestconfig = {
79
102
  src: string;
80
103
  tests: ITestTypes[];
81
104
  webPlugins: IPluginFactory[];
82
- reportDomain: string;
83
105
  };
84
106
  export type IBuiltConfig = {
85
107
  buildDir: string;
@@ -1,4 +1,4 @@
1
- import type { IT, ITestImplementation, ITestInterface, ITestSpecification, IWebTestInterface, OT } from "./Types";
1
+ import type { ITestImplementation, ITestInterface, ITestSpecification } from "./Types";
2
2
  import Testeranto from "./lib/core.js";
3
3
  import { ITTestResourceRequest } from "./lib/index.js";
4
4
  export declare class WebTesteranto<I extends IT, O extends OT, M> extends Testeranto<I, O, M> {
@@ -0,0 +1,8 @@
1
+ import { ITTestResourceConfiguration } from "./lib";
2
+ import { Sidecar } from "./lib/Sidecar";
3
+ import { PM_Web_Sidecar } from "./PM/webSidecar";
4
+ export declare class WebSideCar extends Sidecar {
5
+ start(t: ITTestResourceConfiguration): void;
6
+ stop(): void;
7
+ pm: PM_Web_Sidecar;
8
+ }
@@ -0,0 +1,2 @@
1
+ import type { Plugin } from 'esbuild';
2
+ export declare const consoleDetectorPlugin: Plugin;
@@ -0,0 +1,6 @@
1
+ import { IRunTime } from "../lib";
2
+ declare const _default: (r: IRunTime) => {
3
+ name: string;
4
+ setup: (build: any) => void;
5
+ };
6
+ export default _default;
@@ -0,0 +1,5 @@
1
+ import { ITTestResourceConfiguration } from ".";
2
+ export declare abstract class Sidecar {
3
+ abstract start(t: ITTestResourceConfiguration): any;
4
+ abstract stop(): any;
5
+ }