testeranto 0.94.0 → 0.110.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 (308) hide show
  1. package/README.md +1 -0
  2. package/bundle.js +80 -33
  3. package/dist/common/{src/Init.js → Init.js} +28 -0
  4. package/dist/common/{src/PM → PM}/main.js +272 -111
  5. package/dist/common/{src/PM → PM}/node.js +20 -5
  6. package/dist/common/{src/PM → PM}/web.js +19 -4
  7. package/dist/common/ReportServer.js +22 -0
  8. package/dist/common/{src/SubPackages → SubPackages}/react/jsx/index.js +0 -12
  9. package/dist/common/{src/SubPackages → SubPackages}/react/jsx/node.js +1 -6
  10. package/dist/common/{src/SubPackages → SubPackages}/react-dom/component/node.js +3 -16
  11. package/dist/common/{src/SubPackages → SubPackages}/react-dom/component/web.js +3 -3
  12. package/dist/common/{src/SubPackages → SubPackages}/react-dom/jsx/node.js +1 -1
  13. package/dist/common/{src/SubPackages → SubPackages}/react-dom/jsx/web.js +41 -30
  14. package/dist/common/{src/SubPackages → SubPackages}/react-test-renderer/MemoExoticComponent/node.js +17 -7
  15. package/dist/common/{src/SubPackages → SubPackages}/react-test-renderer/component/interface.js +17 -7
  16. package/dist/common/{src/SubPackages → SubPackages}/react-test-renderer/fc/node.js +17 -7
  17. package/dist/common/{src/SubPackages → SubPackages}/react-test-renderer/fc/web.js +17 -7
  18. package/dist/common/{src/SubPackages → SubPackages}/react-test-renderer/jsx/index.js +18 -14
  19. package/dist/common/{src/SubPackages → SubPackages}/react-test-renderer/jsx-promised/index.js +17 -7
  20. package/dist/common/build.js +222 -0
  21. package/dist/common/{src/defaultConfig.js → defaultConfig.js} +1 -0
  22. package/dist/common/esbuildConfigs/eslint-formatter-testeranto.js +6 -0
  23. package/dist/common/esbuildConfigs/inputFilesPlugin.js +27 -0
  24. package/dist/common/{src/esbuildConfigs → esbuildConfigs}/node.js +3 -14
  25. package/dist/common/{src/esbuildConfigs → esbuildConfigs}/web.js +3 -14
  26. package/dist/common/{src/init-docs.js → init-docs.js} +20 -10
  27. package/dist/common/{src/lib → lib}/abstractBase.js +20 -92
  28. package/dist/common/{src/lib → lib}/basebuilder.js +23 -10
  29. package/dist/common/{src/lib → lib}/classBuilder.js +1 -3
  30. package/dist/common/{src/lib → lib}/core.js +26 -10
  31. package/dist/common/{src/lib → lib}/index.js +0 -1
  32. package/dist/common/run.js +297 -0
  33. package/dist/common/tsconfig.common.tsbuildinfo +1 -1
  34. package/dist/common/utils.js +43 -0
  35. package/dist/module/Footer.js +4 -0
  36. package/dist/module/Init.js +63 -0
  37. package/dist/module/{src/PM → PM}/main.js +253 -102
  38. package/dist/module/{src/PM → PM}/node.js +20 -5
  39. package/dist/module/{src/PM → PM}/web.js +19 -4
  40. package/dist/module/ReportClient.js +97 -0
  41. package/dist/module/ReportServer.js +17 -0
  42. package/dist/module/SubPackages/react/jsx/index.js +15 -0
  43. package/dist/module/{src/SubPackages → SubPackages}/react/jsx/node.js +1 -6
  44. package/dist/module/{src/SubPackages → SubPackages}/react-dom/component/node.js +3 -16
  45. package/dist/module/{src/SubPackages → SubPackages}/react-dom/component/web.js +3 -3
  46. package/dist/module/{src/SubPackages → SubPackages}/react-dom/jsx/node.js +3 -3
  47. package/dist/module/{src/SubPackages → SubPackages}/react-dom/jsx/web.js +24 -23
  48. package/dist/module/{src/SubPackages → SubPackages}/react-test-renderer/jsx/index.js +1 -7
  49. package/dist/module/TestReport.js +91 -0
  50. package/dist/module/build.js +184 -0
  51. package/dist/module/{src/defaultConfig.js → defaultConfig.js} +1 -0
  52. package/dist/module/esbuildConfigs/eslint-formatter-testeranto.js +3 -0
  53. package/dist/module/esbuildConfigs/inputFilesPlugin.js +22 -0
  54. package/dist/module/{src/esbuildConfigs → esbuildConfigs}/node.js +3 -14
  55. package/dist/module/{src/esbuildConfigs → esbuildConfigs}/web.js +3 -14
  56. package/dist/module/{src/init-docs.js → init-docs.js} +1 -1
  57. package/dist/module/{src/lib → lib}/abstractBase.js +20 -92
  58. package/dist/module/{src/lib → lib}/basebuilder.js +23 -10
  59. package/dist/module/{src/lib → lib}/classBuilder.js +1 -3
  60. package/dist/module/{src/lib → lib}/core.js +26 -10
  61. package/dist/module/{src/lib → lib}/index.js +0 -1
  62. package/dist/module/run.js +259 -0
  63. package/dist/module/tsconfig.module.tsbuildinfo +1 -1
  64. package/dist/module/utils.js +29 -0
  65. package/dist/prebuild/ReportClient.css +11367 -0
  66. package/dist/prebuild/ReportClient.js +23641 -0
  67. package/dist/prebuild/ReportServer.mjs +16 -0
  68. package/dist/prebuild/TestReport.css +11367 -0
  69. package/dist/prebuild/TestReport.js +27484 -0
  70. package/dist/prebuild/build.mjs +376 -0
  71. package/dist/prebuild/esbuildConfigs/eslint-formatter-testeranto.mjs +9 -0
  72. package/dist/prebuild/init-docs.mjs +64 -8
  73. package/dist/prebuild/{run-tests.mjs → run.mjs} +501 -182
  74. package/dist/tsconfig.tsbuildinfo +1 -0
  75. package/dist/types/Node.d.ts +12 -0
  76. package/dist/types/{src/PM → PM}/index.d.ts +11 -3
  77. package/dist/types/{src/PM → PM}/main.d.ts +24 -15
  78. package/dist/types/{src/PM → PM}/node.d.ts +11 -6
  79. package/dist/types/{src/PM → PM}/web.d.ts +11 -7
  80. package/dist/types/SubPackages/react/component/node.d.ts +7 -0
  81. package/dist/types/SubPackages/react/component/web.d.ts +7 -0
  82. package/dist/types/SubPackages/react/jsx/index.d.ts +12 -0
  83. package/dist/types/SubPackages/react/jsx/node.d.ts +4 -0
  84. package/dist/types/SubPackages/react/jsx/web.d.ts +4 -0
  85. package/dist/types/SubPackages/react-dom/component/node.d.ts +11 -0
  86. package/dist/types/SubPackages/react-dom/component/web.d.ts +20 -0
  87. package/dist/types/SubPackages/react-dom/jsx/index.d.ts +6 -0
  88. package/dist/types/SubPackages/react-dom/jsx/node.d.ts +7 -0
  89. package/dist/types/SubPackages/react-dom/jsx/web.d.ts +5 -0
  90. package/dist/types/SubPackages/react-test-renderer/MemoExoticComponent/node.d.ts +6 -0
  91. package/dist/types/SubPackages/react-test-renderer/component/index.d.ts +13 -0
  92. package/dist/types/SubPackages/react-test-renderer/component/node.d.ts +4 -0
  93. package/dist/types/SubPackages/react-test-renderer/component/web.d.ts +4 -0
  94. package/dist/types/SubPackages/react-test-renderer/fc/node.d.ts +8 -0
  95. package/dist/types/SubPackages/react-test-renderer/fc/web.d.ts +9 -0
  96. package/dist/types/SubPackages/react-test-renderer/jsx/index.d.ts +16 -0
  97. package/dist/types/SubPackages/react-test-renderer/jsx/node.d.ts +9 -0
  98. package/dist/types/SubPackages/react-test-renderer/jsx/web.d.ts +9 -0
  99. package/dist/types/SubPackages/react-test-renderer/jsx-promised/index.d.ts +15 -0
  100. package/dist/types/SubPackages/react-test-renderer/jsx-promised/node.d.ts +5 -0
  101. package/dist/types/SubPackages/react-test-renderer/jsx-promised/web.d.ts +5 -0
  102. package/dist/types/Types.d.ts +61 -0
  103. package/dist/types/Web.d.ts +9 -0
  104. package/dist/types/defaultConfig.d.ts +3 -0
  105. package/dist/types/esbuildConfigs/eslint-formatter-testeranto.d.ts +2 -0
  106. package/dist/types/{src/esbuildConfigs → esbuildConfigs}/index.d.ts +1 -1
  107. package/dist/types/{src/esbuildConfigs → esbuildConfigs}/inputFilesPlugin.d.ts +0 -1
  108. package/dist/types/{src/esbuildConfigs → esbuildConfigs}/node.d.ts +1 -1
  109. package/dist/types/{src/esbuildConfigs → esbuildConfigs}/web.d.ts +1 -1
  110. package/dist/types/lib/abstractBase.d.ts +110 -0
  111. package/dist/types/lib/basebuilder.d.ts +27 -0
  112. package/dist/types/lib/classBuilder.d.ts +7 -0
  113. package/dist/types/lib/core.d.ts +7 -0
  114. package/dist/types/lib/index.d.ts +83 -0
  115. package/dist/types/lib/types.d.ts +14 -0
  116. package/dist/types/run.d.ts +1 -0
  117. package/dist/types/tsconfig.types.tsbuildinfo +1 -1
  118. package/dist/types/utils.d.ts +9 -0
  119. package/package.json +50 -39
  120. package/src/Footer.tsx +4 -0
  121. package/src/Init.ts +48 -0
  122. package/src/Node.ts +23 -17
  123. package/src/PM/index.ts +13 -9
  124. package/src/PM/main.ts +337 -139
  125. package/src/PM/node.ts +43 -8
  126. package/src/PM/web.ts +34 -6
  127. package/src/ReportClient.tsx +155 -0
  128. package/src/ReportServer.ts +21 -0
  129. package/src/SubPackages/react/component/node.ts +68 -24
  130. package/src/SubPackages/react/component/web.ts +68 -25
  131. package/src/SubPackages/react/jsx/index.ts +39 -18
  132. package/src/SubPackages/react/jsx/node.ts +23 -10
  133. package/src/SubPackages/react/jsx/web.ts +27 -14
  134. package/src/SubPackages/react-dom/component/node.ts +42 -50
  135. package/src/SubPackages/react-dom/component/web.ts +28 -10
  136. package/src/SubPackages/react-dom/jsx/node.ts +54 -56
  137. package/src/SubPackages/react-dom/jsx/web.ts +55 -42
  138. package/src/SubPackages/react-test-renderer/MemoExoticComponent/node.ts +23 -7
  139. package/src/SubPackages/react-test-renderer/component/index.ts +38 -5
  140. package/src/SubPackages/react-test-renderer/component/node.ts +24 -5
  141. package/src/SubPackages/react-test-renderer/component/web.ts +22 -5
  142. package/src/SubPackages/react-test-renderer/fc/node.ts +41 -7
  143. package/src/SubPackages/react-test-renderer/fc/web.ts +43 -11
  144. package/src/SubPackages/react-test-renderer/jsx/index.ts +39 -16
  145. package/src/SubPackages/react-test-renderer/jsx/node.ts +22 -5
  146. package/src/SubPackages/react-test-renderer/jsx/web.ts +22 -5
  147. package/src/SubPackages/react-test-renderer/jsx-promised/index.ts +39 -6
  148. package/src/SubPackages/react-test-renderer/jsx-promised/node.ts +27 -10
  149. package/src/SubPackages/react-test-renderer/jsx-promised/web.ts +26 -12
  150. package/src/TestReport.tsx +176 -0
  151. package/src/Types.ts +131 -129
  152. package/src/Web.ts +24 -18
  153. package/src/build.ts +240 -0
  154. package/src/defaultConfig.ts +2 -1
  155. package/src/esbuildConfigs/eslint-formatter-testeranto.ts +5 -0
  156. package/src/esbuildConfigs/featuresPlugin.ts +0 -1
  157. package/src/esbuildConfigs/index.ts +1 -1
  158. package/src/esbuildConfigs/inputFilesPlugin.ts +2 -114
  159. package/src/esbuildConfigs/node.ts +7 -19
  160. package/src/esbuildConfigs/web.ts +6 -21
  161. package/src/init-docs.ts +2 -1
  162. package/src/lib/abstractBase.ts +140 -195
  163. package/src/lib/basebuilder.ts +57 -45
  164. package/src/lib/classBuilder.ts +15 -15
  165. package/src/lib/core.ts +44 -35
  166. package/src/lib/index.ts +47 -98
  167. package/src/lib/readme.md +12 -0
  168. package/src/lib/types.ts +40 -231
  169. package/src/run.ts +398 -0
  170. package/src/style.css +8 -0
  171. package/src/utils.ts +74 -2
  172. package/tsc.log +106 -0
  173. package/Bundle.Dockerfile +0 -52
  174. package/bin/init-docs.js +0 -24
  175. package/dist/common/dist/module/src/Init.js +0 -40
  176. package/dist/common/src/Aider.js +0 -143
  177. package/dist/common/src/Project.js +0 -227
  178. package/dist/common/src/Puppeteer.js +0 -111
  179. package/dist/common/src/SubPackages/puppeteer.js +0 -21
  180. package/dist/common/src/build-tests.js +0 -39
  181. package/dist/common/src/esbuildConfigs/features.js +0 -14
  182. package/dist/common/src/esbuildConfigs/inputFilesPlugin.js +0 -87
  183. package/dist/common/src/esbuildConfigs/report.js +0 -14
  184. package/dist/common/src/esbuildConfigs/tests.js +0 -13
  185. package/dist/common/src/run-tests.js +0 -39
  186. package/dist/common/src/utils.js +0 -16
  187. package/dist/common/testeranto.js +0 -15
  188. package/dist/module/src/Aider.js +0 -136
  189. package/dist/module/src/Init.js +0 -35
  190. package/dist/module/src/Project.js +0 -220
  191. package/dist/module/src/Puppeteer.js +0 -106
  192. package/dist/module/src/SubPackages/puppeteer.js +0 -16
  193. package/dist/module/src/SubPackages/react/jsx/index.js +0 -27
  194. package/dist/module/src/build-tests.js +0 -11
  195. package/dist/module/src/esbuildConfigs/features.js +0 -12
  196. package/dist/module/src/esbuildConfigs/inputFilesPlugin.js +0 -82
  197. package/dist/module/src/esbuildConfigs/report.js +0 -14
  198. package/dist/module/src/esbuildConfigs/tests.js +0 -11
  199. package/dist/module/src/run-tests.js +0 -11
  200. package/dist/module/src/utils.js +0 -9
  201. package/dist/module/testeranto.js +0 -13
  202. package/dist/prebuild/build-tests.mjs +0 -553
  203. package/dist/types/dist/module/src/Init.d.ts +0 -2
  204. package/dist/types/src/Aider.d.ts +0 -1
  205. package/dist/types/src/Node.d.ts +0 -13
  206. package/dist/types/src/Project.d.ts +0 -12
  207. package/dist/types/src/Puppeteer.d.ts +0 -2
  208. package/dist/types/src/SubPackages/puppeteer.d.ts +0 -6
  209. package/dist/types/src/SubPackages/react/component/node.d.ts +0 -7
  210. package/dist/types/src/SubPackages/react/component/web.d.ts +0 -7
  211. package/dist/types/src/SubPackages/react/jsx/index.d.ts +0 -12
  212. package/dist/types/src/SubPackages/react/jsx/node.d.ts +0 -4
  213. package/dist/types/src/SubPackages/react/jsx/web.d.ts +0 -4
  214. package/dist/types/src/SubPackages/react-dom/component/node.d.ts +0 -12
  215. package/dist/types/src/SubPackages/react-dom/component/web.d.ts +0 -11
  216. package/dist/types/src/SubPackages/react-dom/jsx/index.d.ts +0 -7
  217. package/dist/types/src/SubPackages/react-dom/jsx/node.d.ts +0 -6
  218. package/dist/types/src/SubPackages/react-dom/jsx/web.d.ts +0 -5
  219. package/dist/types/src/SubPackages/react-test-renderer/MemoExoticComponent/node.d.ts +0 -5
  220. package/dist/types/src/SubPackages/react-test-renderer/component/index.d.ts +0 -13
  221. package/dist/types/src/SubPackages/react-test-renderer/component/node.d.ts +0 -8
  222. package/dist/types/src/SubPackages/react-test-renderer/component/web.d.ts +0 -3
  223. package/dist/types/src/SubPackages/react-test-renderer/fc/node.d.ts +0 -8
  224. package/dist/types/src/SubPackages/react-test-renderer/fc/web.d.ts +0 -8
  225. package/dist/types/src/SubPackages/react-test-renderer/jsx/index.d.ts +0 -17
  226. package/dist/types/src/SubPackages/react-test-renderer/jsx/node.d.ts +0 -8
  227. package/dist/types/src/SubPackages/react-test-renderer/jsx/web.d.ts +0 -8
  228. package/dist/types/src/SubPackages/react-test-renderer/jsx-promised/index.d.ts +0 -16
  229. package/dist/types/src/SubPackages/react-test-renderer/jsx-promised/node.d.ts +0 -4
  230. package/dist/types/src/SubPackages/react-test-renderer/jsx-promised/web.d.ts +0 -4
  231. package/dist/types/src/Types.d.ts +0 -51
  232. package/dist/types/src/Web.d.ts +0 -10
  233. package/dist/types/src/defaultConfig.d.ts +0 -3
  234. package/dist/types/src/esbuildConfigs/features.d.ts +0 -4
  235. package/dist/types/src/esbuildConfigs/report.d.ts +0 -0
  236. package/dist/types/src/esbuildConfigs/tests.d.ts +0 -4
  237. package/dist/types/src/lib/abstractBase.d.ts +0 -110
  238. package/dist/types/src/lib/basebuilder.d.ts +0 -27
  239. package/dist/types/src/lib/classBuilder.d.ts +0 -7
  240. package/dist/types/src/lib/core.d.ts +0 -8
  241. package/dist/types/src/lib/index.d.ts +0 -60
  242. package/dist/types/src/lib/types.d.ts +0 -68
  243. package/dist/types/src/utils.d.ts +0 -2
  244. package/dist/types/testeranto.d.ts +0 -16
  245. package/docker-compose.yml +0 -37
  246. package/src/Aider.ts +0 -168
  247. package/src/Project.ts +0 -292
  248. package/src/Puppeteer.ts +0 -143
  249. package/src/SubPackages/puppeteer.ts +0 -51
  250. package/src/build-tests.ts +0 -12
  251. package/src/esbuildConfigs/features.ts +0 -17
  252. package/src/esbuildConfigs/report.ts +0 -15
  253. package/src/esbuildConfigs/tests.ts +0 -14
  254. package/src/run-tests.ts +0 -12
  255. package/testeranto.ts +0 -13
  256. package/dist/common/{src/Node.js → Node.js} +0 -0
  257. package/dist/common/{src/PM → PM}/index.js +0 -0
  258. package/dist/common/{src/SubPackages → SubPackages}/react/component/node.js +0 -0
  259. package/dist/common/{src/SubPackages → SubPackages}/react/component/web.js +0 -0
  260. package/dist/common/{src/SubPackages → SubPackages}/react/jsx/web.js +0 -0
  261. package/dist/common/{src/SubPackages → SubPackages}/react-dom/jsx/index.js +0 -0
  262. package/dist/common/{src/SubPackages → SubPackages}/react-test-renderer/component/index.js +0 -0
  263. package/dist/common/{src/SubPackages → SubPackages}/react-test-renderer/component/node.js +0 -0
  264. package/dist/common/{src/SubPackages → SubPackages}/react-test-renderer/component/web.js +0 -0
  265. package/dist/common/{src/SubPackages → SubPackages}/react-test-renderer/jsx/node.js +0 -0
  266. package/dist/common/{src/SubPackages → SubPackages}/react-test-renderer/jsx/web.js +0 -0
  267. package/dist/common/{src/SubPackages → SubPackages}/react-test-renderer/jsx-promised/node.js +1 -1
  268. package/dist/common/{src/SubPackages → SubPackages}/react-test-renderer/jsx-promised/web.js +0 -0
  269. package/dist/common/{src/Types.js → Types.js} +0 -0
  270. package/dist/common/{src/Web.js → Web.js} +0 -0
  271. package/dist/common/{src/esbuildConfigs → esbuildConfigs}/featuresPlugin.js +0 -0
  272. package/dist/common/{src/esbuildConfigs → esbuildConfigs}/index.js +0 -0
  273. package/dist/common/{src/lib → lib}/types.js +0 -0
  274. package/dist/common/{src/puppeteerConfiger.js → puppeteerConfiger.js} +0 -0
  275. package/dist/common/{src/web.html.js → web.html.js} +0 -0
  276. package/dist/module/{src/Node.js → Node.js} +0 -0
  277. package/dist/module/{src/PM → PM}/index.js +0 -0
  278. package/dist/module/{src/SubPackages → SubPackages}/react/component/node.js +0 -0
  279. package/dist/module/{src/SubPackages → SubPackages}/react/component/web.js +0 -0
  280. package/dist/module/{src/SubPackages → SubPackages}/react/jsx/web.js +0 -0
  281. package/dist/module/{src/SubPackages → SubPackages}/react-dom/jsx/index.js +0 -0
  282. package/dist/module/{src/SubPackages → SubPackages}/react-test-renderer/MemoExoticComponent/node.js +0 -0
  283. package/dist/module/{src/SubPackages → SubPackages}/react-test-renderer/component/index.js +0 -0
  284. package/dist/module/{src/SubPackages → SubPackages}/react-test-renderer/component/interface.js +0 -0
  285. package/dist/module/{src/SubPackages → SubPackages}/react-test-renderer/component/node.js +0 -0
  286. package/dist/module/{src/SubPackages → SubPackages}/react-test-renderer/component/web.js +0 -0
  287. package/dist/module/{src/SubPackages → SubPackages}/react-test-renderer/fc/node.js +0 -0
  288. package/dist/module/{src/SubPackages → SubPackages}/react-test-renderer/fc/web.js +0 -0
  289. package/dist/module/{src/SubPackages → SubPackages}/react-test-renderer/jsx/node.js +0 -0
  290. package/dist/module/{src/SubPackages → SubPackages}/react-test-renderer/jsx/web.js +0 -0
  291. package/dist/module/{src/SubPackages → SubPackages}/react-test-renderer/jsx-promised/index.js +0 -0
  292. package/dist/module/{src/SubPackages → SubPackages}/react-test-renderer/jsx-promised/node.js +1 -1
  293. /package/dist/module/{src/SubPackages → SubPackages}/react-test-renderer/jsx-promised/web.js +0 -0
  294. /package/dist/module/{src/Types.js → Types.js} +0 -0
  295. /package/dist/module/{src/Web.js → Web.js} +0 -0
  296. /package/dist/module/{src/esbuildConfigs → esbuildConfigs}/featuresPlugin.js +0 -0
  297. /package/dist/module/{src/esbuildConfigs → esbuildConfigs}/index.js +0 -0
  298. /package/dist/module/{src/lib → lib}/types.js +0 -0
  299. /package/dist/module/{src/puppeteerConfiger.js → puppeteerConfiger.js} +0 -0
  300. /package/dist/module/{src/web.html.js → web.html.js} +0 -0
  301. /package/dist/types/{src/Init.d.ts → Init.d.ts} +0 -0
  302. /package/dist/types/{src/build-tests.d.ts → ReportServer.d.ts} +0 -0
  303. /package/dist/types/{src/SubPackages → SubPackages}/react-test-renderer/component/interface.d.ts +0 -0
  304. /package/dist/types/{src/init-docs.d.ts → build.d.ts} +0 -0
  305. /package/dist/types/{src/esbuildConfigs → esbuildConfigs}/featuresPlugin.d.ts +0 -0
  306. /package/dist/types/{src/run-tests.d.ts → init-docs.d.ts} +0 -0
  307. /package/dist/types/{src/puppeteerConfiger.d.ts → puppeteerConfiger.d.ts} +0 -0
  308. /package/dist/types/{src/web.html.d.ts → web.html.d.ts} +0 -0
@@ -1,23 +1,28 @@
1
- /// <reference types="node" />
2
- /// <reference types="node" />
1
+ import { ScreencastOptions } from "puppeteer-core";
3
2
  import { PassThrough } from "stream";
4
3
  import { ITLog, ITTestResourceConfiguration } from "../lib";
5
4
  import { PM } from "./index.js";
6
- declare type PuppetMasterServer = Record<string, Promise<any>>;
5
+ import { CdpPage } from "puppeteer-core/lib/esm/puppeteer";
6
+ type PuppetMasterServer = Record<string, Promise<any>>;
7
7
  export declare class PM_Node extends PM {
8
8
  server: PuppetMasterServer;
9
9
  testResourceConfiguration: ITTestResourceConfiguration;
10
10
  constructor(t: ITTestResourceConfiguration);
11
+ waitForSelector(p: string, s: string): any;
12
+ closePage(p: any): string;
13
+ goto(cdpPage: CdpPage, url: string): any;
14
+ newPage(): CdpPage;
11
15
  $(selector: string): boolean;
12
- screencast(opts: object): void;
13
- isDisabled(selector: string): boolean;
16
+ isDisabled(selector: string): Promise<boolean>;
14
17
  getAttribute(selector: string, attribute: string): void;
15
18
  getValue(selector: string): void;
16
19
  focusOn(selector: string): void;
17
20
  typeInto(value: string): void;
18
21
  page(): any;
19
22
  click(selector: string): string | undefined;
20
- customScreenShot(opts: object): any;
23
+ screencast(opts: ScreencastOptions, page: CdpPage): any;
24
+ screencastStop(p: string): any;
25
+ customScreenShot(opts: ScreencastOptions, cdpPage: CdpPage): any;
21
26
  existsSync(destFolder: string): boolean;
22
27
  mkdirSync(): any;
23
28
  write(writeObject: {
@@ -1,16 +1,20 @@
1
- /// <reference types="node" />
2
- /// <reference types="node" />
3
1
  import { PassThrough } from "stream";
4
2
  import { ITLog, ITTestResourceConfiguration } from "../lib";
5
3
  import { PM } from "./index.js";
6
- import { ScreenshotOptions } from "puppeteer-core";
7
- declare type PuppetMasterServer = Record<string, Promise<any>>;
4
+ import { ScreencastOptions, ScreenshotOptions } from "puppeteer-core";
5
+ import { CdpPage } from "puppeteer-core/lib/esm/puppeteer";
6
+ type PuppetMasterServer = Record<string, Promise<any>>;
8
7
  export declare class PM_Web extends PM {
9
8
  server: PuppetMasterServer;
10
9
  constructor(t: ITTestResourceConfiguration);
10
+ waitForSelector(p: string, s: string): any;
11
+ screencast(opts: ScreencastOptions): any;
12
+ screencastStop(recorder: string): any;
13
+ closePage(p: any): string;
14
+ goto(p: any, url: string): any;
15
+ newPage(): CdpPage;
11
16
  $(selector: string): boolean;
12
- screencast(opts: object): void;
13
- isDisabled(selector: string): boolean;
17
+ isDisabled(selector: string): Promise<boolean>;
14
18
  getAttribute(selector: string, attribute: string): any;
15
19
  getValue(selector: string): any;
16
20
  focusOn(selector: string): any;
@@ -19,7 +23,7 @@ export declare class PM_Web extends PM {
19
23
  click(selector: string): any;
20
24
  customScreenShot(opts: ScreenshotOptions): any;
21
25
  existsSync(destFolder: string): boolean;
22
- mkdirSync(): any;
26
+ mkdirSync(x: any): any;
23
27
  write(writeObject: {
24
28
  uid: number;
25
29
  }, contents: string): any;
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ import { Ibdd_in, Ibdd_out, ITestImplementation, ITestSpecification } from "../../../Types";
3
+ type IInput = typeof React.Component;
4
+ export type IImpl<I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>, O extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>> = ITestImplementation<I, O>;
5
+ export type ISpec<I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>, O extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>> = ITestSpecification<I, O>;
6
+ declare const _default: <I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>, O extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>>(testImplementations: ITestImplementation<I, O>, testSpecifications: ISpec<I, O>, testInput: IInput) => Promise<import("../../../lib/core.js").default<I, O>>;
7
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ import { Ibdd_in, Ibdd_out, ITestImplementation, ITestSpecification } from "../../../Types";
3
+ type IInput = typeof React.Component;
4
+ export type IImpl<I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>, O extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>> = ITestImplementation<I, O>;
5
+ export type ISpec<I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>, O extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>> = ITestSpecification<I, O>;
6
+ declare const _default: <I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>, O extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>>(testImplementations: ITestImplementation<I, O>, testSpecifications: ISpec<I, O>, testInput: IInput) => Promise<import("../../../lib/core.js").default<I, O>>;
7
+ export default _default;
@@ -0,0 +1,12 @@
1
+ import { CElement } from "react";
2
+ import { Ibdd_in, Ibdd_out, IPartialInterface, ITestImplementation, ITestSpecification } from "../../../Types";
3
+ export type IWhenShape = any;
4
+ export type IThenShape = any;
5
+ export type InitialState = unknown;
6
+ export type IInput = () => JSX.Element;
7
+ export type ISelection = CElement<any, any>;
8
+ export type IStore = CElement<any, any>;
9
+ export type ISubject = CElement<any, any>;
10
+ export type ITestImpl<I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>, O extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>> = ITestImplementation<I, O>;
11
+ export type ITestSpec<I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>, O extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>> = ITestSpecification<I, O>;
12
+ export declare const testInterface: IPartialInterface<any>;
@@ -0,0 +1,4 @@
1
+ import { Ibdd_in, Ibdd_out, IPartialInterface } from "../../../Types";
2
+ import { ITestImpl, ITestSpec, IInput } from "./index.js";
3
+ declare const _default: <I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>, O extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>>(testImplementations: ITestImpl<I, O>, testSpecifications: ITestSpec<I, O>, testInput: IInput, testInterface?: IPartialInterface<I>) => Promise<import("../../../lib/core.js").default<I, O>>;
4
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import { Ibdd_in, Ibdd_out, IPartialWebInterface } from "../../../Types";
2
+ import { ITestImpl, ITestSpec, IInput } from "./index.js";
3
+ declare const _default: <I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>, O extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>>(testImplementations: ITestImpl<I, O>, testSpecifications: ITestSpec<I, O>, testInput: IInput, testInterface: IPartialWebInterface<I>) => Promise<import("../../../lib/core").default<I, O>>;
4
+ export default _default;
@@ -0,0 +1,11 @@
1
+ import React, { ReactNode } from "react";
2
+ import { renderToStaticMarkup, renderToStaticNodeStream } from "react-dom/server";
3
+ import Stream from "stream";
4
+ import { Ibdd_in, Ibdd_out, ITestImplementation, ITestSpecification } from "../../../Types";
5
+ type IInput = typeof React.Component;
6
+ export type ISelection = ReactNode;
7
+ export type IStore = ReactNode;
8
+ export type ISubject = ReactNode;
9
+ export { renderToStaticMarkup, renderToStaticNodeStream, Stream };
10
+ declare const _default: <I extends Ibdd_in<IInput, ISubject, IStore, ISelection, unknown, (s: IStore) => IStore, unknown>, O extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>>(testImplementations: ITestImplementation<I, O>, testSpecifications: ITestSpecification<I, O>, testInput: IInput) => Promise<import("../../../lib/core.js").default<I, O>>;
11
+ export default _default;
@@ -0,0 +1,20 @@
1
+ import React from "react";
2
+ import ReactDom from "react-dom/client";
3
+ import { Ibdd_in, Ibdd_out, IPartialWebInterface, ITestImplementation, ITestSpecification } from "../../../Types";
4
+ type IInput = typeof React.Component;
5
+ type ISelection = {
6
+ htmlElement: HTMLElement;
7
+ reactElement: any;
8
+ domRoot: ReactDom.Root;
9
+ };
10
+ export type IStore = {
11
+ htmlElement: HTMLElement;
12
+ reactElement: any;
13
+ domRoot: ReactDom.Root;
14
+ };
15
+ type ISubject = {
16
+ htmlElement: HTMLElement;
17
+ domRoot: ReactDom.Root;
18
+ };
19
+ declare const _default: <I extends Ibdd_in<IInput, ISubject, ISelection, IStore, (s: IStore) => IStore, (s: IStore) => IStore, (s: IStore) => IStore>, O extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>>(testInput: IInput, testSpecifications: ITestSpecification<I, O>, testImplementations: ITestImplementation<I, O>, testInterface?: IPartialWebInterface<any>) => Promise<import("../../../lib/core.js").default<I, O>>;
20
+ export default _default;
@@ -0,0 +1,6 @@
1
+ export type IInput = (props?: any) => JSX.Element;
2
+ export type IState = unknown;
3
+ export type ISelection = HTMLElement;
4
+ export type IStore = HTMLElement;
5
+ export type IWhenShape = any;
6
+ export type IThenShape = any;
@@ -0,0 +1,7 @@
1
+ import { renderToStaticMarkup, renderToStaticNodeStream } from "react-dom/server";
2
+ import Stream from "stream";
3
+ import { Ibdd_in, Ibdd_out, ITestImplementation, ITestSpecification } from "../../../Types";
4
+ import { IInput, ISelection, IStore } from "./index.js";
5
+ export { renderToStaticMarkup, renderToStaticNodeStream, Stream };
6
+ declare const _default: <I extends Ibdd_in<IInput, unknown, ISelection, IStore, unknown, unknown, unknown>, O extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>>(testImplementations: ITestImplementation<I, O>, testSpecifications: ITestSpecification<I, O>, testInput: I["iinput"]) => Promise<import("../../../lib/core.js").default<I, O>>;
7
+ export default _default;
@@ -0,0 +1,5 @@
1
+ import { Ibdd_in, Ibdd_out, ITestImplementation, ITestSpecification } from "../../../Types";
2
+ import type { IInput, ISelection, IStore, IThenShape, IWhenShape } from "./index";
3
+ export type ISubject = HTMLElement;
4
+ declare const _default: <I extends Ibdd_in<IInput, ISubject, ISelection, IStore, unknown, IWhenShape, IThenShape>, O extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>>(testImplementations: ITestImplementation<I, O>, testSpecifications: ITestSpecification<I, O>, testInput: IInput) => Promise<import("../../../lib/core.js").default<I, O>>;
5
+ export default _default;
@@ -0,0 +1,6 @@
1
+ import React from "react";
2
+ import renderer from "react-test-renderer";
3
+ import { Ibdd_in, Ibdd_out, ITestImplementation, ITestSpecification } from "../../../Types";
4
+ type IInput = React.MemoExoticComponent<() => JSX.Element>;
5
+ declare const _default: <I extends Ibdd_in<IInput, renderer.ReactTestRenderer, renderer.ReactTestRenderer, renderer.ReactTestRenderer, unknown, unknown, unknown>, O extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>>(testImplementations: ITestImplementation<I, O>, testSpecifications: ITestSpecification<I, O>, testInput: IInput) => Promise<import("../../../lib/core").default<I, O>>;
6
+ export default _default;
@@ -0,0 +1,13 @@
1
+ import React from "react";
2
+ import renderer from "react-test-renderer";
3
+ import type { Ibdd_in, Ibdd_out, ITestImplementation, ITestSpecification } from "../../../Types";
4
+ export type ISuper<T> = T extends infer U ? U : object;
5
+ export type IInput<P, S> = typeof React.Component<P, S>;
6
+ export type InitialState = unknown;
7
+ export type IWhenShape = any;
8
+ export type IThenShape = any;
9
+ export type ISelection = renderer.ReactTestRenderer;
10
+ export type IStore = renderer.ReactTestRenderer;
11
+ export type ISubject = renderer.ReactTestRenderer;
12
+ export type IImpl<I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>, O extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>> = ITestImplementation<I, O>;
13
+ export type ISpec<I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>, O extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>> = ITestSpecification<I, O>;
@@ -0,0 +1,4 @@
1
+ import { Ibdd_in, Ibdd_out } from "../../../Types.js";
2
+ import { IImpl, ISpec, IInput } from "./index.js";
3
+ declare const _default: <I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>, O extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>, IProps, IState>(testImplementations: IImpl<I, O>, testSpecifications: ISpec<I, O>, testInput: IInput<IProps, IState>) => Promise<import("../../../lib/core.js").default<I, O>>;
4
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import { Ibdd_in, Ibdd_out } from "../../../Types.js";
2
+ import { IImpl, ISpec, IInput } from "./index.js";
3
+ declare const _default: <I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>, O extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>>(testImplementations: IImpl<I, O>, testSpecifications: ISpec<I, O>, testInput: IInput<any, any>) => Promise<import("../../../lib/core.js").default<I, O>>;
4
+ export default _default;
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ import { ITestSpecification, ITestImplementation, Ibdd_in, Ibdd_out } from "../../../Types";
3
+ export type IInput = React.FC;
4
+ export type IWhenShape = unknown;
5
+ export type IThenShape = unknown;
6
+ export type ISpec<I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>, O extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>> = ITestSpecification<I, O>;
7
+ declare const _default: <I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>, O extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>>(testImplementations: ITestImplementation<I, O>, testSpecifications: ISpec<I, O>, testInput: IInput) => Promise<import("../../../lib/core.js").default<I, O>>;
8
+ export default _default;
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ import renderer from "react-test-renderer";
3
+ import { ITestSpecification, ITestImplementation, Ibdd_in, Ibdd_out } from "../../../Types";
4
+ export type IInput = React.FC;
5
+ export type IWhenShape = unknown;
6
+ export type IThenShape = unknown;
7
+ export type ISpec<I extends Ibdd_in<unknown, unknown, renderer.ReactTestRenderer, unknown, unknown, unknown, unknown>, O extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>> = ITestSpecification<I, O>;
8
+ declare const _default: <I extends Ibdd_in<unknown, unknown, renderer.ReactTestRenderer, unknown, unknown, unknown, unknown>, O extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>>(testImplementations: ITestImplementation<I, O>, testSpecifications: ISpec<I, O>, testInput: IInput) => Promise<import("../../../lib/core").default<I, O>>;
9
+ export default _default;
@@ -0,0 +1,16 @@
1
+ import renderer from "react-test-renderer";
2
+ import { Ibdd_in, Ibdd_out, ITestImplementation, ITestSpecification } from "../../../Types";
3
+ export type IWhenShape = any;
4
+ export type IThenShape = any;
5
+ export type InitialState = unknown;
6
+ export type IInput = (props?: any) => JSX.Element;
7
+ export type ISelection = renderer.ReactTestRenderer;
8
+ export type IStore = renderer.ReactTestRenderer;
9
+ export type ISubject = renderer.ReactTestRenderer;
10
+ export type ITestImpl<I extends Ibdd_in<unknown, unknown, renderer.ReactTestRenderer, unknown, unknown, unknown, unknown>, O extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>> = ITestImplementation<I, O>;
11
+ export type ITestSpec<I extends Ibdd_in<unknown, unknown, renderer.ReactTestRenderer, unknown, unknown, unknown, unknown>, O extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>> = ITestSpecification<I, O>;
12
+ export declare const testInterface: {
13
+ butThen: (s: IStore, thenCB: any) => Promise<ISelection>;
14
+ beforeEach: (CComponent: any, props: any) => Promise<renderer.ReactTestRenderer>;
15
+ andWhen: (renderer: renderer.ReactTestRenderer, whenCB: (any: any) => any) => Promise<renderer.ReactTestRenderer>;
16
+ };
@@ -0,0 +1,9 @@
1
+ import { Ibdd_in, Ibdd_out } from "../../../Types.js";
2
+ import type { ITestImpl, ITestSpec } from "../jsx-promised";
3
+ import { IInput } from "./index.js";
4
+ declare const _default: <I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>, O extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>>(testImplementations: ITestImpl<I, O>, testSpecifications: ITestSpec<I, O>, testInput: IInput, testInterface2?: {
5
+ butThen: (s: import("./index.js").IStore, thenCB: any) => Promise<import("./index.js").ISelection>;
6
+ beforeEach: (CComponent: any, props: any) => Promise<import("react-test-renderer").ReactTestRenderer>;
7
+ andWhen: (renderer: import("react-test-renderer").ReactTestRenderer, whenCB: (any: any) => any) => Promise<import("react-test-renderer").ReactTestRenderer>;
8
+ }) => Promise<import("../../../lib/core.js").default<I, O>>;
9
+ export default _default;
@@ -0,0 +1,9 @@
1
+ import { Ibdd_in, Ibdd_out } from "../../../Types.js";
2
+ import { ITestImpl, ITestSpec } from "../jsx-promised";
3
+ import { IInput } from "./index.js";
4
+ declare const _default: <I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>, O extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>>(testImplementations: ITestImpl<I, O>, testSpecifications: ITestSpec<I, O>, testInput: IInput, testInterface2?: {
5
+ butThen: (s: import("./index.js").IStore, thenCB: any) => Promise<import("./index.js").ISelection>;
6
+ beforeEach: (CComponent: any, props: any) => Promise<import("react-test-renderer").ReactTestRenderer>;
7
+ andWhen: (renderer: import("react-test-renderer").ReactTestRenderer, whenCB: (any: any) => any) => Promise<import("react-test-renderer").ReactTestRenderer>;
8
+ }) => Promise<import("../../../lib/core.js").default<I, O>>;
9
+ export default _default;
@@ -0,0 +1,15 @@
1
+ import renderer from "react-test-renderer";
2
+ import { Ibdd_in, Ibdd_out, ITestImplementation, ITestSpecification } from "../../../Types";
3
+ export type IWhenShape = any;
4
+ export type IThenShape = any;
5
+ export type InitialState = unknown;
6
+ export type IInput = Promise<JSX.Element>;
7
+ export type ISelection = renderer.ReactTestRenderer;
8
+ export type IStore = renderer.ReactTestRenderer;
9
+ export type ISubject = renderer.ReactTestRenderer;
10
+ export type ITestImpl<I extends Ibdd_in<renderer.ReactTestRenderer, renderer.ReactTestRenderer, renderer.ReactTestRenderer, renderer.ReactTestRenderer, unknown, unknown, unknown>, O extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>> = ITestImplementation<I, O>;
11
+ export type ITestSpec<I extends Ibdd_in<renderer.ReactTestRenderer, renderer.ReactTestRenderer, renderer.ReactTestRenderer, renderer.ReactTestRenderer, unknown, unknown, unknown>, O extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>> = ITestSpecification<I, O>;
12
+ export declare const testInterface: {
13
+ beforeEach: (CComponent: any) => Promise<unknown>;
14
+ andWhen: (renderer: renderer.ReactTestRenderer, whenCB: () => (any: any) => any) => Promise<renderer.ReactTestRenderer>;
15
+ };
@@ -0,0 +1,5 @@
1
+ import { Ibdd_in, Ibdd_out } from "../../../Types";
2
+ import { ITestImpl, ITestSpec } from "../../react/jsx";
3
+ import { IInput } from ".";
4
+ declare const _default: <I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>, O extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>>(testImplementations: ITestImpl<I, O>, testSpecifications: ITestSpec<I, O>, testInput: IInput) => Promise<import("../../../lib/core").default<I, O>>;
5
+ export default _default;
@@ -0,0 +1,5 @@
1
+ import { Ibdd_in, Ibdd_out } from "../../../Types";
2
+ import { ITestImpl, ITestSpec } from "../../react/jsx";
3
+ import { IInput } from "./index";
4
+ declare const _default: <I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>, O extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>>(testImplementations: ITestImpl<I, O>, testSpecifications: ITestSpec<I, O>, testInput: IInput) => Promise<import("../../../lib/core").default<I, O>>;
5
+ export default _default;
@@ -0,0 +1,61 @@
1
+ import { ITTestResourceConfiguration } from "./lib/index.js";
2
+ import { IGivens, BaseCheck, BaseSuite, BaseWhen, BaseThen, BaseGiven } from "./lib/abstractBase.js";
3
+ import { PM } from "./PM/index.js";
4
+ import { ITestCheckCallback } from "./lib/types.js";
5
+ export type ITestInterface<I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>> = {
6
+ assertThis: (x: I["then"]) => void;
7
+ andWhen: (store: I["istore"], whenCB: I["when"], testResource: ITTestResourceConfiguration, pm: PM) => Promise<I["istore"]>;
8
+ butThen: (store: I["istore"], thenCB: I["then"], testResource: ITTestResourceConfiguration, pm: PM) => Promise<I["iselection"]>;
9
+ afterAll: (store: I["istore"], pm: PM) => any;
10
+ afterEach: (store: I["istore"], key: string, pm: PM) => Promise<unknown>;
11
+ beforeAll: (input: I["iinput"], testResource: ITTestResourceConfiguration, pm: PM) => Promise<I["isubject"]>;
12
+ beforeEach: (subject: I["isubject"], initializer: (c?: any) => I["given"], testResource: ITTestResourceConfiguration, initialValues: any, pm: PM) => Promise<I["istore"]>;
13
+ };
14
+ export type IWebTestInterface<I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>> = ITestInterface<I>;
15
+ export type INodeTestInterface<I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>> = ITestInterface<I>;
16
+ export type IPartialInterface<I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>> = Partial<ITestInterface<I>>;
17
+ export type IPartialNodeInterface<I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>> = Partial<INodeTestInterface<I>>;
18
+ export type IPartialWebInterface<I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>> = Partial<IWebTestInterface<I>>;
19
+ export type ITestSpecification<I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>, O extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>> = (Suite: {
20
+ [K in keyof O["suites"]]: (name: string, givens: IGivens<I>, checks: BaseCheck<I, O>[]) => BaseSuite<I, O>;
21
+ }, Given: {
22
+ [K in keyof O["givens"]]: (features: string[], whens: BaseWhen<I>[], thens: BaseThen<I>[], ...xtrasB: O["givens"][K]) => BaseGiven<I>;
23
+ }, When: {
24
+ [K in keyof O["whens"]]: (...xtrasC: O["whens"][K]) => BaseWhen<I>;
25
+ }, Then: {
26
+ [K in keyof O["thens"]]: (...xtrasD: O["thens"][K]) => BaseThen<I>;
27
+ }, Check: ITestCheckCallback<I, O>) => any[];
28
+ export type ITestImplementation<I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>, O extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>> = {
29
+ suites: {
30
+ [K in keyof O["suites"]]: string;
31
+ };
32
+ givens: {
33
+ [K in keyof O["givens"]]: (...Ig: O["givens"][K]) => I["given"];
34
+ };
35
+ whens: {
36
+ [K in keyof O["whens"]]: (...Iw: O["whens"][K]) => (zel: I["iselection"], utils: PM) => Promise<I["when"]>;
37
+ };
38
+ thens: {
39
+ [K in keyof O["thens"]]: (...It: O["thens"][K]) => (ssel: I["iselection"], utils: PM) => I["then"];
40
+ };
41
+ checks: {
42
+ [K in keyof O["checks"]]: (...Ic: O["checks"][K]) => I["given"];
43
+ };
44
+ };
45
+ export type Modify<T, R> = Omit<T, keyof R> & R;
46
+ export type Ibdd_out<ISuites extends Record<string, any>, IGivens extends Record<string, any>, IWhens extends Record<string, any>, IThens extends Record<string, any>, IChecks extends Record<string, any>> = {
47
+ suites: ISuites;
48
+ givens: IGivens;
49
+ whens: IWhens;
50
+ thens: IThens;
51
+ checks: IChecks;
52
+ };
53
+ export type Ibdd_in<IInput, ISubject, IStore, ISelection, IGiven, IWhen, IThen> = {
54
+ iinput: IInput;
55
+ isubject: ISubject;
56
+ istore: IStore;
57
+ iselection: ISelection;
58
+ given: IGiven;
59
+ when: IWhen;
60
+ then: IThen;
61
+ };
@@ -0,0 +1,9 @@
1
+ import type { Ibdd_in, Ibdd_out, ITestImplementation, ITestInterface, ITestSpecification, IWebTestInterface } from "./Types";
2
+ import Testeranto from "./lib/core.js";
3
+ import { IFinalResults, ITTestResourceRequest } from "./lib/index.js";
4
+ export declare class WebTesteranto<I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>, O extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>> extends Testeranto<I, O> {
5
+ constructor(input: I["iinput"], testSpecification: ITestSpecification<I, O>, testImplementation: ITestImplementation<I, O>, testResourceRequirement: ITTestResourceRequest, testInterface: Partial<ITestInterface<I>>);
6
+ receiveTestResourceConfig(partialTestResource: any): Promise<IFinalResults>;
7
+ }
8
+ declare const _default: <I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>, O extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>>(input: I["iinput"], testSpecification: ITestSpecification<I, O>, testImplementation: ITestImplementation<I, O>, testInterface: Partial<IWebTestInterface<I>>, testResourceRequirement?: ITTestResourceRequest) => Promise<Testeranto<I, O>>;
9
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { IBaseConfig } from "./lib";
2
+ declare const config: IBaseConfig;
3
+ export default config;
@@ -0,0 +1,2 @@
1
+ import { LintResult } from "eslint/lib/linter";
2
+ export default function (results: LintResult[]): string;
@@ -1,4 +1,4 @@
1
1
  import { BuildOptions } from "esbuild";
2
- import { IBaseConfig } from "../lib/types";
2
+ import { IBaseConfig } from "../lib";
3
3
  declare const _default: (config: IBaseConfig) => BuildOptions;
4
4
  export default _default;
@@ -1,5 +1,4 @@
1
1
  import type { Plugin } from "esbuild";
2
- declare const register: (entrypoint: string, sources: string[]) => void;
3
2
  declare const _default: (platform: "web" | "node", entryPoints: Set<string> | string[]) => {
4
3
  register: (entrypoint: string, sources: string[]) => void;
5
4
  inputFilesPluginFactory: Plugin;
@@ -1,4 +1,4 @@
1
1
  import { BuildOptions } from "esbuild";
2
- import { IBaseConfig } from "../lib/types";
2
+ import { IBaseConfig } from "../lib/index.js";
3
3
  declare const _default: (config: IBaseConfig, entryPoints: Set<string> | string[]) => BuildOptions;
4
4
  export default _default;
@@ -1,4 +1,4 @@
1
1
  import { BuildOptions } from "esbuild";
2
- import { IBaseConfig } from "../lib/types.js";
2
+ import { IBaseConfig } from "../lib/index.js";
3
3
  declare const _default: (config: IBaseConfig, entryPoints: Set<string> | string[]) => BuildOptions;
4
4
  export default _default;
@@ -0,0 +1,110 @@
1
+ import { PM } from "../PM/index.js";
2
+ import { ITTestResourceConfiguration, ITestArtifactory, ITLog } from ".";
3
+ import { Ibdd_in, Ibdd_out } from "../Types.js";
4
+ export type IGivens<I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>> = Record<string, BaseGiven<I>>;
5
+ export declare abstract class BaseSuite<I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>, O extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>> {
6
+ name: string;
7
+ givens: IGivens<I>;
8
+ checks: BaseCheck<I, O>[];
9
+ store: I["istore"];
10
+ fails: BaseGiven<I>[];
11
+ testResourceConfiguration: ITTestResourceConfiguration;
12
+ index: number;
13
+ constructor(name: string, index: number, givens?: IGivens<I>, checks?: BaseCheck<I, O>[]);
14
+ features(): string[];
15
+ toObj(): {
16
+ name: string;
17
+ givens: {
18
+ key: string;
19
+ name: string;
20
+ whens: {
21
+ name: string;
22
+ error: boolean;
23
+ }[];
24
+ thens: {
25
+ name: string;
26
+ error: boolean;
27
+ }[];
28
+ error: (string | Error | undefined)[] | null;
29
+ features: string[];
30
+ }[];
31
+ fails: BaseGiven<I>[];
32
+ features: string[];
33
+ };
34
+ setup(s: I["iinput"], artifactory: ITestArtifactory, tr: ITTestResourceConfiguration, pm: PM): Promise<I["isubject"]>;
35
+ assertThat(t: I["then"]): unknown;
36
+ afterAll(store: I["istore"], artifactory: ITestArtifactory, pm: PM): I["istore"];
37
+ run(input: I["iinput"], testResourceConfiguration: ITTestResourceConfiguration, artifactory: (fPath: string, value: unknown) => void, tLog: (...string: any[]) => void, pm: PM): Promise<BaseSuite<I, O>>;
38
+ }
39
+ export declare abstract class BaseGiven<I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>> {
40
+ name: string;
41
+ features: string[];
42
+ whens: BaseWhen<I>[];
43
+ thens: BaseThen<I>[];
44
+ error: Error;
45
+ fail: any;
46
+ store: I["istore"];
47
+ recommendedFsPath: string;
48
+ givenCB: I["given"];
49
+ initialValues: any;
50
+ key: string;
51
+ constructor(name: string, features: string[], whens: BaseWhen<I>[], thens: BaseThen<I>[], givenCB: I["given"], initialValues: any);
52
+ beforeAll(store: I["istore"], initializer: any, artifactory: any, testResource: any, initialValues: any, pm: any): I["istore"];
53
+ toObj(): {
54
+ key: string;
55
+ name: string;
56
+ whens: {
57
+ name: string;
58
+ error: boolean;
59
+ }[];
60
+ thens: {
61
+ name: string;
62
+ error: boolean;
63
+ }[];
64
+ error: (string | Error | undefined)[] | null;
65
+ features: string[];
66
+ };
67
+ abstract givenThat(subject: I["isubject"], testResourceConfiguration: any, artifactory: ITestArtifactory, givenCB: I["given"], initialValues: any, pm: PM): Promise<I["istore"]>;
68
+ afterEach(store: I["istore"], key: string, artifactory: ITestArtifactory, pm: PM): Promise<unknown>;
69
+ abstract uberCatcher(e: any): any;
70
+ give(subject: I["isubject"], key: string, testResourceConfiguration: ITTestResourceConfiguration, tester: (t: Awaited<I["then"]> | undefined) => boolean, artifactory: ITestArtifactory, tLog: ITLog, pm: PM, suiteNdx: number): Promise<I["istore"]>;
71
+ }
72
+ export declare abstract class BaseWhen<I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>> {
73
+ name: string;
74
+ whenCB: (x: I["iselection"]) => I["then"];
75
+ error: boolean;
76
+ constructor(name: string, whenCB: (xyz: I["iselection"]) => I["then"]);
77
+ abstract andWhen(store: I["istore"], whenCB: (x: I["iselection"]) => I["then"], testResource: any, pm: PM): Promise<any>;
78
+ toObj(): {
79
+ name: string;
80
+ error: boolean;
81
+ };
82
+ test(store: I["istore"], testResourceConfiguration: any, tLog: ITLog, pm: PM, filepath: string): Promise<any>;
83
+ }
84
+ export declare abstract class BaseThen<I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>> {
85
+ name: string;
86
+ thenCB: (storeState: I["iselection"]) => I["then"];
87
+ error: boolean;
88
+ constructor(name: string, thenCB: (val: I["iselection"]) => I["then"]);
89
+ toObj(): {
90
+ name: string;
91
+ error: boolean;
92
+ };
93
+ abstract butThen(store: I["istore"], thenCB: any, testResourceConfiguration: ITTestResourceConfiguration, pm: PM): Promise<I["iselection"]>;
94
+ test(store: I["istore"], testResourceConfiguration: any, tLog: ITLog, pm: PM, filepath: string): Promise<I["then"] | undefined>;
95
+ }
96
+ export declare abstract class BaseCheck<I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>, O extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>> {
97
+ name: string;
98
+ features: string[];
99
+ checkCB: (whens: any, thens: any) => any;
100
+ whens: {
101
+ [K in keyof O["whens"]]: (p: any, tc: any) => BaseWhen<I>;
102
+ };
103
+ thens: {
104
+ [K in keyof O["thens"]]: (p: any, tc: any) => BaseThen<I>;
105
+ };
106
+ constructor(name: string, features: string[], checkCB: (whens: any, thens: any) => any, whens: any, thens: any);
107
+ abstract checkThat(subject: I["isubject"], testResourceConfiguration: any, artifactory: ITestArtifactory, pm: PM): Promise<I["istore"]>;
108
+ afterEach(store: I["istore"], key: string, cb: any, pm: PM): Promise<unknown>;
109
+ check(subject: I["isubject"], key: string, testResourceConfiguration: any, tester: any, artifactory: ITestArtifactory, tLog: ITLog, pm: PM): Promise<void>;
110
+ }
@@ -0,0 +1,27 @@
1
+ import { ITTestResourceRequest, ITestJob } from ".";
2
+ import { Ibdd_in, Ibdd_out, ITestSpecification } from "../Types.js";
3
+ import { ISuiteKlasser, IGivenKlasser, IWhenKlasser, IThenKlasser, ICheckKlasser } from "./types.js";
4
+ import { BaseCheck, BaseWhen, BaseThen, BaseGiven } from "./abstractBase.js";
5
+ import { PM } from "../PM/index.js";
6
+ export declare abstract class BaseBuilder<I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>, O extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>, SuiteExtensions, GivenExtensions, WhenExtensions, ThenExtensions, CheckExtensions> {
7
+ readonly input: I["iinput"];
8
+ specs: any;
9
+ assertThis: (t: I["then"]) => {};
10
+ testResourceRequirement: ITTestResourceRequest;
11
+ artifacts: Promise<unknown>[];
12
+ testJobs: ITestJob[];
13
+ testSpecification: ITestSpecification<I, O>;
14
+ suitesOverrides: Record<keyof SuiteExtensions, ISuiteKlasser<I, O>>;
15
+ givenOverides: Record<keyof GivenExtensions, IGivenKlasser<I>>;
16
+ whenOverides: Record<keyof WhenExtensions, IWhenKlasser<I>>;
17
+ thenOverides: Record<keyof ThenExtensions, IThenKlasser<I>>;
18
+ checkOverides: Record<keyof CheckExtensions, ICheckKlasser<I, O>>;
19
+ puppetMaster: PM;
20
+ constructor(input: I["iinput"], suitesOverrides: Record<keyof SuiteExtensions, ISuiteKlasser<I, O>>, givenOverides: Record<keyof GivenExtensions, IGivenKlasser<I>>, whenOverides: Record<keyof WhenExtensions, IWhenKlasser<I>>, thenOverides: Record<keyof ThenExtensions, IThenKlasser<I>>, checkOverides: Record<keyof CheckExtensions, ICheckKlasser<I, O>>, testResourceRequirement: ITTestResourceRequest, testSpecification: any);
21
+ Specs(): any;
22
+ Suites(): Record<keyof SuiteExtensions, ISuiteKlasser<I, O>>;
23
+ Given(): Record<keyof GivenExtensions, (name: string, features: string[], whens: BaseWhen<I>[], thens: BaseThen<I>[], gcb: any) => BaseGiven<I>>;
24
+ When(): Record<keyof WhenExtensions, (arg0: I["istore"], ...arg1: any) => BaseWhen<I>>;
25
+ Then(): Record<keyof ThenExtensions, (selection: I["iselection"], expectation: any) => BaseThen<I>>;
26
+ Check(): Record<keyof CheckExtensions, (feature: string, callback: (whens: any, thens: any) => any, whens: any, thens: any, x: any) => BaseCheck<I, O>>;
27
+ }
@@ -0,0 +1,7 @@
1
+ import { Ibdd_in, Ibdd_out, ITestImplementation, ITestSpecification } from "../Types.js";
2
+ import { BaseBuilder } from "./basebuilder.js";
3
+ import { ISuiteKlasser, IGivenKlasser, IWhenKlasser, IThenKlasser, ICheckKlasser } from "./types.js";
4
+ import { ITTestResourceRequest } from "./index.js";
5
+ export declare abstract class ClassBuilder<I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>, O extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>> extends BaseBuilder<I, O, any, any, any, any, any> {
6
+ constructor(testImplementation: ITestImplementation<I, O>, testSpecification: ITestSpecification<I, O>, input: I["iinput"], suiteKlasser: ISuiteKlasser<I, O>, givenKlasser: IGivenKlasser<I>, whenKlasser: IWhenKlasser<I>, thenKlasser: IThenKlasser<I>, checkKlasser: ICheckKlasser<I, O>, testResourceRequirement: ITTestResourceRequest);
7
+ }
@@ -0,0 +1,7 @@
1
+ import { ITestSpecification, ITestImplementation, ITestInterface, Ibdd_in, Ibdd_out } from "../Types.js";
2
+ import { IFinalResults, ITTestResourceRequest } from "./index.js";
3
+ import { ClassBuilder } from "./classBuilder.js";
4
+ export default abstract class Testeranto<I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>, O extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>> extends ClassBuilder<I, O> {
5
+ constructor(input: I["iinput"], testSpecification: ITestSpecification<I, O>, testImplementation: ITestImplementation<I, O>, testResourceRequirement: ITTestResourceRequest | undefined, testInterface: Partial<ITestInterface<I>>, uberCatcher: (cb: any) => void);
6
+ abstract receiveTestResourceConfig(partialTestResource: string): Promise<IFinalResults>;
7
+ }