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,7 +1,7 @@
1
1
  import { PassThrough } from "stream";
2
2
 
3
3
  import { ITTestResourceRequest, ITestJob, ITLog } from ".";
4
- import { IBaseTest, ITestSpecification } from "../Types.js";
4
+ import { Ibdd_in, Ibdd_out, ITestSpecification } from "../Types.js";
5
5
 
6
6
  import {
7
7
  ISuiteKlasser,
@@ -20,14 +20,16 @@ import {
20
20
  import { PM } from "../PM/index.js";
21
21
 
22
22
  export abstract class BaseBuilder<
23
- ITestShape extends IBaseTest<
24
- unknown,
23
+ I extends Ibdd_in<
25
24
  unknown,
26
25
  unknown,
27
26
  unknown,
28
27
  unknown,
29
28
  unknown,
30
29
  unknown,
30
+ unknown
31
+ >,
32
+ O extends Ibdd_out<
31
33
  Record<string, any>,
32
34
  Record<string, any>,
33
35
  Record<string, any>,
@@ -42,26 +44,26 @@ export abstract class BaseBuilder<
42
44
  > {
43
45
  specs: any;
44
46
 
45
- assertThis: (t: ITestShape["then"]) => {};
47
+ assertThis: (t: I["then"]) => {};
46
48
 
47
49
  testResourceRequirement: ITTestResourceRequest;
48
50
  artifacts: Promise<unknown>[] = [];
49
51
  testJobs: ITestJob[];
50
- testSpecification: ITestSpecification<ITestShape>;
51
- suitesOverrides: Record<keyof SuiteExtensions, ISuiteKlasser<ITestShape>>;
52
- givenOverides: Record<keyof GivenExtensions, IGivenKlasser<ITestShape>>;
53
- whenOverides: Record<keyof WhenExtensions, IWhenKlasser<ITestShape>>;
54
- thenOverides: Record<keyof ThenExtensions, IThenKlasser<ITestShape>>;
55
- checkOverides: Record<keyof CheckExtensions, ICheckKlasser<ITestShape>>;
52
+ testSpecification: ITestSpecification<I, O>;
53
+ suitesOverrides: Record<keyof SuiteExtensions, ISuiteKlasser<I, O>>;
54
+ givenOverides: Record<keyof GivenExtensions, IGivenKlasser<I>>;
55
+ whenOverides: Record<keyof WhenExtensions, IWhenKlasser<I>>;
56
+ thenOverides: Record<keyof ThenExtensions, IThenKlasser<I>>;
57
+ checkOverides: Record<keyof CheckExtensions, ICheckKlasser<I, O>>;
56
58
  puppetMaster: PM;
57
59
 
58
60
  constructor(
59
- public readonly input: ITestShape["iinput"],
60
- suitesOverrides: Record<keyof SuiteExtensions, ISuiteKlasser<ITestShape>>,
61
- givenOverides: Record<keyof GivenExtensions, IGivenKlasser<ITestShape>>,
62
- whenOverides: Record<keyof WhenExtensions, IWhenKlasser<ITestShape>>,
63
- thenOverides: Record<keyof ThenExtensions, IThenKlasser<ITestShape>>,
64
- checkOverides: Record<keyof CheckExtensions, ICheckKlasser<ITestShape>>,
61
+ public readonly input: I["iinput"],
62
+ suitesOverrides: Record<keyof SuiteExtensions, ISuiteKlasser<I, O>>,
63
+ givenOverides: Record<keyof GivenExtensions, IGivenKlasser<I>>,
64
+ whenOverides: Record<keyof WhenExtensions, IWhenKlasser<I>>,
65
+ thenOverides: Record<keyof ThenExtensions, IThenKlasser<I>>,
66
+ checkOverides: Record<keyof CheckExtensions, ICheckKlasser<I, O>>,
65
67
  testResourceRequirement: ITTestResourceRequest,
66
68
  testSpecification: any
67
69
  ) {
@@ -82,13 +84,10 @@ export abstract class BaseBuilder<
82
84
  this.Check()
83
85
  );
84
86
 
85
- this.testJobs = this.specs.map((suite: BaseSuite<ITestShape>) => {
87
+ this.testJobs = this.specs.map((suite: BaseSuite<I, O>) => {
86
88
  const suiteRunner =
87
- (suite: BaseSuite<ITestShape>) =>
88
- async (
89
- puppetMaster: PM,
90
- tLog: ITLog
91
- ): Promise<BaseSuite<ITestShape>> => {
89
+ (suite: BaseSuite<I, O>) =>
90
+ async (puppetMaster: PM, tLog: ITLog): Promise<BaseSuite<I, O>> => {
92
91
  const x = await suite.run(
93
92
  input,
94
93
  puppetMaster.testResourceConfiguration,
@@ -124,10 +123,7 @@ export abstract class BaseBuilder<
124
123
  puppetMaster.write(access, `${l.toString()}\n`);
125
124
  };
126
125
 
127
- const suiteDone: BaseSuite<ITestShape> = await runner(
128
- puppetMaster,
129
- tLog
130
- );
126
+ const suiteDone: BaseSuite<I, O> = await runner(puppetMaster, tLog);
131
127
 
132
128
  const logPromise = new Promise((res, rej) => {
133
129
  puppetMaster.end(access);
@@ -137,22 +133,41 @@ export abstract class BaseBuilder<
137
133
  const numberOfFailures = Object.keys(suiteDone.givens).filter((k) => {
138
134
  return suiteDone.givens[k].error;
139
135
  }).length;
140
- puppetMaster.writeFileSync(`exitcode`, numberOfFailures.toString());
136
+ puppetMaster.writeFileSync(
137
+ `bdd_errors.txt`,
138
+ numberOfFailures.toString()
139
+ );
141
140
 
142
- // if (numberOfFailures > 0) {
143
- // puppetMaster.writeFileSync(
144
- // `prompt`,
145
- // `
146
- // aider --message "make a script that prints hello" hello.js
147
- // `
148
- // );
149
- // }
141
+ const o = this.toObj();
142
+ puppetMaster.writeFileSync(
143
+ `littleBoard.html`,
144
+ `
145
+ <!DOCTYPE html>
146
+ <html lang="en">
147
+
148
+ <head>
149
+ <meta name="description" content="Webpage description goes here" />
150
+ <meta charset="utf-8" />
151
+ <title>kokomoBay - testeranto</title>
152
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
153
+ <meta name="author" content="" />
154
+
155
+ <link rel="stylesheet" href="/kokomoBay/docs/TestReport.css" />
156
+ <script src="/kokomoBay/docs/TestReport.js"></script>
157
+
158
+ </head>
159
+
160
+ <body>
161
+ <h1>Test report</h1>
162
+ <div id="root"/>
163
+ </body>
164
+ `
165
+ );
150
166
 
151
167
  puppetMaster.writeFileSync(
152
168
  `tests.json`,
153
169
  JSON.stringify(this.toObj(), null, 2)
154
170
  );
155
- // console.log(`exiting gracefully with ${numberOfFailures} failures.`);
156
171
 
157
172
  return {
158
173
  failed: numberOfFailures,
@@ -177,27 +192,24 @@ export abstract class BaseBuilder<
177
192
  (
178
193
  name: string,
179
194
  features: string[],
180
- whens: BaseWhen<ITestShape>[],
181
- thens: BaseThen<ITestShape>[],
195
+ whens: BaseWhen<I>[],
196
+ thens: BaseThen<I>[],
182
197
  gcb
183
- ) => BaseGiven<ITestShape>
198
+ ) => BaseGiven<I>
184
199
  > {
185
200
  return this.givenOverides;
186
201
  }
187
202
 
188
203
  When(): Record<
189
204
  keyof WhenExtensions,
190
- (arg0: ITestShape["istore"], ...arg1: any) => BaseWhen<ITestShape>
205
+ (arg0: I["istore"], ...arg1: any) => BaseWhen<I>
191
206
  > {
192
207
  return this.whenOverides;
193
208
  }
194
209
 
195
210
  Then(): Record<
196
211
  keyof ThenExtensions,
197
- (
198
- selection: ITestShape["iselection"],
199
- expectation: any
200
- ) => BaseThen<ITestShape>
212
+ (selection: I["iselection"], expectation: any) => BaseThen<I>
201
213
  > {
202
214
  return this.thenOverides;
203
215
  }
@@ -210,7 +222,7 @@ export abstract class BaseBuilder<
210
222
  whens,
211
223
  thens,
212
224
  x
213
- ) => BaseCheck<ITestShape>
225
+ ) => BaseCheck<I, O>
214
226
  > {
215
227
  return this.checkOverides;
216
228
  }
@@ -1,11 +1,11 @@
1
1
  import {
2
- IBaseTest,
2
+ Ibdd_in,
3
+ Ibdd_out,
3
4
  ITestImplementation,
4
5
  ITestSpecification,
5
6
  } from "../Types.js";
6
7
 
7
8
  import { BaseBuilder } from "./basebuilder.js";
8
-
9
9
  import {
10
10
  ISuiteKlasser,
11
11
  IGivenKlasser,
@@ -13,34 +13,35 @@ import {
13
13
  IThenKlasser,
14
14
  ICheckKlasser,
15
15
  } from "./types.js";
16
- import { PM } from "../PM/index.js";
17
16
  import { ITTestResourceRequest } from "./index.js";
18
17
 
19
18
  export abstract class ClassBuilder<
20
- ITestShape extends IBaseTest<
21
- unknown,
19
+ I extends Ibdd_in<
22
20
  unknown,
23
21
  unknown,
24
22
  unknown,
25
23
  unknown,
26
24
  unknown,
27
25
  unknown,
26
+ unknown
27
+ >,
28
+ O extends Ibdd_out<
28
29
  Record<string, any>,
29
30
  Record<string, any>,
30
31
  Record<string, any>,
31
32
  Record<string, any>,
32
33
  Record<string, any>
33
34
  >
34
- > extends BaseBuilder<ITestShape, any, any, any, any, any> {
35
+ > extends BaseBuilder<I, O, any, any, any, any, any> {
35
36
  constructor(
36
- testImplementation: ITestImplementation<ITestShape, any>,
37
- testSpecification: ITestSpecification<ITestShape>,
38
- input: ITestShape["iinput"],
39
- suiteKlasser: ISuiteKlasser<ITestShape>,
40
- givenKlasser: IGivenKlasser<ITestShape>,
41
- whenKlasser: IWhenKlasser<ITestShape>,
42
- thenKlasser: IThenKlasser<ITestShape>,
43
- checkKlasser: ICheckKlasser<ITestShape>,
37
+ testImplementation: ITestImplementation<I, O>,
38
+ testSpecification: ITestSpecification<I, O>,
39
+ input: I["iinput"],
40
+ suiteKlasser: ISuiteKlasser<I, O>,
41
+ givenKlasser: IGivenKlasser<I>,
42
+ whenKlasser: IWhenKlasser<I>,
43
+ thenKlasser: IThenKlasser<I>,
44
+ checkKlasser: ICheckKlasser<I, O>,
44
45
  testResourceRequirement: ITTestResourceRequest
45
46
  ) {
46
47
  const classySuites = Object.entries(testImplementation.suites).reduce(
@@ -126,7 +127,6 @@ export abstract class ClassBuilder<
126
127
  classyChecks,
127
128
  testResourceRequirement,
128
129
  testSpecification
129
- // puppetMaster
130
130
  );
131
131
  }
132
132
  }
package/src/lib/core.ts CHANGED
@@ -1,13 +1,16 @@
1
1
  import { IStore } from "../SubPackages/react/jsx";
2
2
  import {
3
- IBaseTest,
4
3
  ITestSpecification,
5
4
  ITestImplementation,
5
+ ITestInterface,
6
+ Ibdd_in,
7
+ Ibdd_out,
6
8
  } from "../Types.js";
9
+ import { PM } from "../PM/index";
7
10
 
8
- import { IFinalResults, ITestInterface } from "./types.js";
9
11
  import {
10
12
  DefaultTestInterface,
13
+ IFinalResults,
11
14
  ITTestResourceRequest,
12
15
  ITestArtifactory,
13
16
  defaultTestResourceRequirement,
@@ -20,30 +23,31 @@ import {
20
23
  BaseCheck,
21
24
  } from "./abstractBase.js";
22
25
  import { ClassBuilder } from "./classBuilder.js";
23
- import { PM } from "../PM/index";
24
26
 
25
27
  export default abstract class Testeranto<
26
- ITestShape extends IBaseTest<
27
- unknown,
28
+ I extends Ibdd_in<
28
29
  unknown,
29
30
  unknown,
30
31
  unknown,
31
32
  unknown,
32
33
  unknown,
33
34
  unknown,
35
+ unknown
36
+ >,
37
+ O extends Ibdd_out<
34
38
  Record<string, any>,
35
39
  Record<string, any>,
36
40
  Record<string, any>,
37
41
  Record<string, any>,
38
42
  Record<string, any>
39
43
  >
40
- > extends ClassBuilder<ITestShape> {
44
+ > extends ClassBuilder<I, O> {
41
45
  constructor(
42
- input: ITestShape["iinput"],
43
- testSpecification: ITestSpecification<ITestShape>,
44
- testImplementation: ITestImplementation<ITestShape>,
46
+ input: I["iinput"],
47
+ testSpecification: ITestSpecification<I, O>,
48
+ testImplementation: ITestImplementation<I, O>,
45
49
  testResourceRequirement: ITTestResourceRequest = defaultTestResourceRequirement,
46
- testInterface: Partial<ITestInterface<ITestShape>>,
50
+ testInterface: Partial<ITestInterface<I>>,
47
51
  uberCatcher: (cb) => void
48
52
  ) {
49
53
  const fullTestInterface = DefaultTestInterface(testInterface);
@@ -53,15 +57,15 @@ export default abstract class Testeranto<
53
57
  testSpecification,
54
58
  input,
55
59
 
56
- class extends BaseSuite<ITestShape> {
60
+ class extends BaseSuite<I, O> {
57
61
  afterAll(store: IStore, artifactory: ITestArtifactory, pm: PM) {
58
62
  return fullTestInterface.afterAll(
59
63
  store,
60
- (fPath: string, value: unknown) =>
61
- // TODO does not work?
62
- {
63
- artifactory(`afterAll4-${this.name}/${fPath}`, value);
64
- },
64
+ // (fPath: string, value: unknown) =>
65
+ // // TODO does not work?
66
+ // {
67
+ // artifactory(`afterAll4-${this.name}/${fPath}`, value);
68
+ // },
65
69
  pm
66
70
  );
67
71
  }
@@ -71,24 +75,29 @@ export default abstract class Testeranto<
71
75
  }
72
76
 
73
77
  async setup(
74
- s: ITestShape["iinput"],
78
+ s: I["iinput"],
75
79
  artifactory: ITestArtifactory,
76
80
  tr,
77
81
  pm
78
- ): Promise<ITestShape["isubject"]> {
82
+ ): Promise<I["isubject"]> {
79
83
  return (
80
84
  fullTestInterface.beforeAll ||
81
85
  (async (
82
- input: ITestShape["iinput"],
86
+ input: I["iinput"],
83
87
  artifactory: ITestArtifactory,
84
88
  tr,
85
89
  pm: PM
86
90
  ) => input as any)
87
- )(s, this.testResourceConfiguration, artifactory, pm);
91
+ )(
92
+ s,
93
+ this.testResourceConfiguration,
94
+ // artifactory,
95
+ pm
96
+ );
88
97
  }
89
98
  } as any,
90
99
 
91
- class Given extends BaseGiven<ITestShape> {
100
+ class Given extends BaseGiven<I> {
92
101
  uberCatcher = uberCatcher;
93
102
 
94
103
  async givenThat(
@@ -102,7 +111,7 @@ export default abstract class Testeranto<
102
111
  return fullTestInterface.beforeEach(
103
112
  subject,
104
113
  initializer,
105
- artifactory,
114
+ // artifactory,
106
115
  testResource,
107
116
  initialValues,
108
117
  pm
@@ -110,7 +119,7 @@ export default abstract class Testeranto<
110
119
  }
111
120
 
112
121
  afterEach(
113
- store: ITestShape["istore"],
122
+ store: I["istore"],
114
123
  key: string,
115
124
  artifactory,
116
125
  pm
@@ -120,8 +129,8 @@ export default abstract class Testeranto<
120
129
  fullTestInterface.afterEach(
121
130
  store,
122
131
  key,
123
- (fPath: string, value: unknown) =>
124
- artifactory(`after/${fPath}`, value),
132
+ // (fPath: string, value: unknown) =>
133
+ // artifactory(`after/${fPath}`, value),
125
134
  pm
126
135
  )
127
136
  )
@@ -129,7 +138,7 @@ export default abstract class Testeranto<
129
138
  }
130
139
  } as any,
131
140
 
132
- class When extends BaseWhen<ITestShape> {
141
+ class When extends BaseWhen<I> {
133
142
  async andWhen(store, whenCB, testResource, pm) {
134
143
  try {
135
144
  return await fullTestInterface.andWhen(
@@ -158,13 +167,13 @@ export default abstract class Testeranto<
158
167
  }
159
168
  } as any,
160
169
 
161
- class Then extends BaseThen<ITestShape> {
170
+ class Then extends BaseThen<I> {
162
171
  async butThen(
163
172
  store: any,
164
173
  thenCB,
165
174
  testResource: any,
166
175
  pm: PM
167
- ): Promise<ITestShape["iselection"]> {
176
+ ): Promise<I["iselection"]> {
168
177
  return await fullTestInterface
169
178
  .butThen(store, thenCB, testResource, pm)
170
179
  .then(
@@ -198,7 +207,7 @@ export default abstract class Testeranto<
198
207
  }
199
208
  } as any,
200
209
 
201
- class Check extends BaseCheck<ITestShape> {
210
+ class Check extends BaseCheck<I, O> {
202
211
  initialValues: any;
203
212
 
204
213
  constructor(
@@ -217,8 +226,8 @@ export default abstract class Testeranto<
217
226
  return fullTestInterface.beforeEach(
218
227
  subject,
219
228
  this.initialValues,
220
- (fPath: string, value: unknown) =>
221
- artifactory(`before/${fPath}`, value),
229
+ // (fPath: string, value: unknown) =>
230
+ // artifactory(`before/${fPath}`, value),
222
231
  testResourceConfiguration,
223
232
  this.initialValues,
224
233
  pm
@@ -226,7 +235,7 @@ export default abstract class Testeranto<
226
235
  }
227
236
 
228
237
  afterEach(
229
- store: ITestShape["istore"],
238
+ store: I["istore"],
230
239
  key: string,
231
240
  artifactory,
232
241
  pm
@@ -236,9 +245,9 @@ export default abstract class Testeranto<
236
245
  fullTestInterface.afterEach(
237
246
  store,
238
247
  key,
239
- (fPath: string, value: unknown) =>
240
- // TODO does not work?
241
- artifactory(`afterEach2-${this.name}/${fPath}`, value),
248
+ // (fPath: string, value: unknown) =>
249
+ // // TODO does not work?
250
+ // artifactory(`afterEach2-${this.name}/${fPath}`, value),
242
251
  pm
243
252
  )
244
253
  )
package/src/lib/index.ts CHANGED
@@ -1,32 +1,11 @@
1
+ import { IBaseTest } from "../../dist/types/src/Types.js";
1
2
  import { PM } from "../PM/index.js";
2
- import { IBaseTest } from "../Types.js";
3
+ import { Ibdd_in, Ibdd_out, ITestInterface } from "../Types.js";
3
4
 
4
- import {
5
- IGivens,
6
- BaseCheck,
7
- BaseSuite,
8
- BaseWhen,
9
- BaseThen,
10
- } from "./abstractBase.js";
11
- import { ITestInterface } from "./types.js";
12
-
13
- // import { INodeUtils, ITestInterface, IUtils, IWebUtils } from "./types.js";
5
+ import { IGivens, BaseCheck, BaseSuite } from "./abstractBase.js";
14
6
 
15
7
  export const BaseTestInterface: ITestInterface<
16
- IBaseTest<
17
- unknown,
18
- unknown,
19
- unknown,
20
- unknown,
21
- unknown,
22
- unknown,
23
- unknown,
24
- Record<string, any>,
25
- Record<string, any>,
26
- Record<string, any>,
27
- Record<string, any>,
28
- Record<string, any>
29
- >
8
+ Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>
30
9
  > = {
31
10
  beforeAll: async (s) => s,
32
11
  beforeEach: async function (
@@ -40,35 +19,25 @@ export const BaseTestInterface: ITestInterface<
40
19
  },
41
20
  afterEach: async (s) => s,
42
21
  afterAll: (
43
- store: IBaseTest<
44
- unknown,
22
+ store: Ibdd_in<
45
23
  unknown,
46
24
  unknown,
47
25
  unknown,
48
26
  unknown,
49
27
  unknown,
50
28
  unknown,
51
- Record<string, any>,
52
- Record<string, any>,
53
- Record<string, any>,
54
- Record<string, any>,
55
- Record<string, any>
29
+ unknown
56
30
  >["istore"]
57
31
  ) => undefined,
58
32
  butThen: async (
59
- store: IBaseTest<
60
- unknown,
33
+ store: Ibdd_in<
61
34
  unknown,
62
35
  unknown,
63
36
  unknown,
64
37
  unknown,
65
38
  unknown,
66
39
  unknown,
67
- Record<string, any>,
68
- Record<string, any>,
69
- Record<string, any>,
70
- Record<string, any>,
71
- Record<string, any>
40
+ unknown
72
41
  >["istore"],
73
42
  thenCb
74
43
  ) => thenCb(store),
@@ -120,30 +89,11 @@ type ITest = {
120
89
  toObj(): object;
121
90
  name: string;
122
91
  givens: IGivens<
123
- IBaseTest<
124
- unknown,
125
- unknown,
126
- unknown,
127
- unknown,
128
- unknown,
129
- unknown,
130
- unknown,
131
- Record<string, any>,
132
- Record<string, any>,
133
- Record<string, any>,
134
- Record<string, any>,
135
- Record<string, any>
136
- >
92
+ Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>
137
93
  >;
138
94
  checks: BaseCheck<
139
- IBaseTest<
140
- unknown,
141
- unknown,
142
- unknown,
143
- unknown,
144
- unknown,
145
- unknown,
146
- unknown,
95
+ Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>,
96
+ Ibdd_out<
147
97
  Record<string, any>,
148
98
  Record<string, any>,
149
99
  Record<string, any>,
@@ -162,14 +112,8 @@ export type ITestJob<T = PM> = {
162
112
  t: ITLog
163
113
  ) => Promise<
164
114
  BaseSuite<
165
- IBaseTest<
166
- unknown,
167
- unknown,
168
- unknown,
169
- unknown,
170
- unknown,
171
- unknown,
172
- unknown,
115
+ Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>,
116
+ Ibdd_out<
173
117
  Record<string, any>,
174
118
  Record<string, any>,
175
119
  Record<string, any>,
@@ -195,33 +139,38 @@ export const defaultTestResourceRequirement: ITTestResourceRequest = {
195
139
 
196
140
  export type ITestArtifactory = (key: string, value: unknown) => unknown;
197
141
 
198
- export type ITestCheckCallback<
199
- ITestShape extends IBaseTest<
200
- unknown,
201
- unknown,
202
- unknown,
203
- unknown,
204
- unknown,
205
- unknown,
206
- unknown,
207
- Record<string, any>,
208
- Record<string, any>,
209
- Record<string, any>,
210
- Record<string, any>,
211
- Record<string, any>
212
- >
213
- > = {
214
- [K in keyof ITestShape["checks"]]: (
215
- name: string,
216
- features: string[],
217
- callbackA: (
218
- whens: {
219
- [K in keyof ITestShape["whens"]]: (...unknown) => BaseWhen<ITestShape>;
220
- },
221
- thens: {
222
- [K in keyof ITestShape["thens"]]: (...unknown) => BaseThen<ITestShape>;
223
- }
224
- ) => Promise<any>,
225
- ...xtrasA: ITestShape["checks"][K]
226
- ) => BaseCheck<ITestShape>;
142
+ export type IRunnables = {
143
+ nodeEntryPoints: Record<string, string>;
144
+ webEntryPoints: Record<string, string>;
145
+ };
146
+
147
+ export type IFinalResults = { features: string[]; failed: number };
148
+
149
+ export type IRunTime = `node` | `web`;
150
+
151
+ export type ITestTypes = [string, IRunTime, { ports: number }, ITestTypes[]];
152
+
153
+ export type IPluginFactory = (
154
+ register: (entrypoint, sources) => any,
155
+ entrypoints
156
+ ) => Plugin;
157
+
158
+ export type IBaseConfig = {
159
+ src: string;
160
+ clearScreen: boolean;
161
+ debugger: boolean;
162
+ devMode: boolean;
163
+ externals: string[];
164
+ minify: boolean;
165
+ outbase: string;
166
+ outdir: string;
167
+ ports: string[];
168
+ tests: ITestTypes[];
169
+
170
+ nodePlugins: IPluginFactory[];
171
+ webPlugins: IPluginFactory[];
172
+
173
+ featureIngestor: (s: string) => Promise<string>;
227
174
  };
175
+
176
+ export type IBuiltConfig = { buildDir: string } & IBaseConfig;
@@ -0,0 +1,12 @@
1
+ # lib
2
+
3
+ This folder represents testeranto internals.
4
+
5
+ ## layers
6
+
7
+ Testeranto's core architecture is built in layers.
8
+
9
+ 0. abstractBase.ts - The lowest layer is composed of abstract BDD classes
10
+ 1. baseBuilder.ts - this layer extends the classes in `abstractBase` with the capacity to run and log tests.
11
+ 2. classBuilder.ts - this layer extends the classes in `baseBuilder` with the capacity to accept custom implementations of of abstract BDD classes in `abstractBase`
12
+ 3. core.ts - this layer extends the classes in `classBuilder` with the capacity to accept an input, a specification, a implementation a test resource requirement and an interface, and to map those entities to custom implementations of of abstract BDD classes in `abstractBase`.