testeranto 0.75.0 → 0.79.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 (257) hide show
  1. package/.eslintrc.js +5 -2
  2. package/Bundle.Dockerfile +52 -0
  3. package/README.md +25 -24
  4. package/build-tests.ts +16 -0
  5. package/dist/common/build-tests.js +38 -0
  6. package/dist/common/init-docs.js +8 -0
  7. package/dist/common/run-tests.js +34 -0
  8. package/dist/common/src/Aider.js +96 -0
  9. package/dist/common/src/Init.js +10 -0
  10. package/dist/common/{Node.js → src/Node.js} +1 -0
  11. package/dist/common/src/PM/index.js +7 -0
  12. package/dist/common/{PM → src/PM}/main.js +287 -10
  13. package/dist/common/{PM → src/PM}/node.js +4 -0
  14. package/dist/common/{PM → src/PM}/web.js +3 -0
  15. package/dist/common/{Project.js → src/Project.js} +15 -57
  16. package/dist/common/{Puppeteer.js → src/Puppeteer.js} +65 -26
  17. package/dist/common/{SubPackages → src/SubPackages}/react-dom/component/web.js +5 -25
  18. package/dist/common/src/SubPackages/react-dom/jsx/web.js +117 -0
  19. package/dist/common/{SubPackages/react-test-renderer/component/index.js → src/SubPackages/react-test-renderer/component/interface.js} +0 -20
  20. package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/component/node.js +2 -2
  21. package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/component/web.js +2 -2
  22. package/dist/common/{Types.js → src/Types.js} +0 -2
  23. package/dist/common/{esbuildConfigs → src/esbuildConfigs}/index.js +1 -0
  24. package/dist/common/src/esbuildConfigs/inputFilesPlugin.js +52 -0
  25. package/dist/common/{esbuildConfigs → src/esbuildConfigs}/node.js +5 -1
  26. package/dist/common/src/esbuildConfigs/report.js +14 -0
  27. package/dist/common/{esbuildConfigs → src/esbuildConfigs}/web.js +3 -1
  28. package/dist/common/src/lib/abstractBase.js +581 -0
  29. package/dist/common/{lib → src/lib}/basebuilder.js +12 -38
  30. package/dist/common/{lib → src/lib}/classBuilder.js +1 -3
  31. package/dist/common/{lib → src/lib}/core.js +3 -5
  32. package/dist/common/src/lib/types.js +2 -0
  33. package/dist/common/src/utils.js +16 -0
  34. package/dist/common/testeranto.js +15 -0
  35. package/dist/common/tsconfig.common.tsbuildinfo +1 -1
  36. package/dist/module/build-tests.js +10 -0
  37. package/dist/module/init-docs.js +3 -0
  38. package/dist/module/run-tests.js +6 -0
  39. package/dist/module/src/Aider.js +89 -0
  40. package/dist/module/src/Init.js +5 -0
  41. package/dist/module/{Node.js → src/Node.js} +1 -0
  42. package/dist/module/src/PM/index.js +3 -0
  43. package/dist/module/src/PM/main.js +617 -0
  44. package/dist/module/{PM → src/PM}/node.js +4 -0
  45. package/dist/module/{PM → src/PM}/web.js +3 -0
  46. package/dist/module/{Project.js → src/Project.js} +15 -57
  47. package/dist/module/{Puppeteer.js → src/Puppeteer.js} +65 -26
  48. package/dist/module/{SubPackages → src/SubPackages}/react-dom/component/web.js +5 -25
  49. package/dist/module/src/SubPackages/react-dom/jsx/web.js +89 -0
  50. package/dist/module/{SubPackages/react-test-renderer/component/index.js → src/SubPackages/react-test-renderer/component/interface.js} +0 -20
  51. package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/component/node.js +1 -1
  52. package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/component/web.js +1 -1
  53. package/dist/module/{esbuildConfigs → src/esbuildConfigs}/index.js +1 -0
  54. package/dist/module/src/esbuildConfigs/inputFilesPlugin.js +47 -0
  55. package/dist/module/{esbuildConfigs → src/esbuildConfigs}/node.js +5 -1
  56. package/dist/module/src/esbuildConfigs/report.js +14 -0
  57. package/dist/module/{esbuildConfigs → src/esbuildConfigs}/web.js +3 -1
  58. package/dist/module/src/lib/abstractBase.js +573 -0
  59. package/dist/module/{lib → src/lib}/basebuilder.js +12 -38
  60. package/dist/module/{lib → src/lib}/classBuilder.js +1 -3
  61. package/dist/module/{lib → src/lib}/core.js +3 -5
  62. package/dist/module/src/utils.js +9 -0
  63. package/dist/module/testeranto.js +13 -0
  64. package/dist/module/tsconfig.module.tsbuildinfo +1 -1
  65. package/dist/types/build-tests.d.ts +3 -0
  66. package/dist/types/init-docs.d.ts +2 -0
  67. package/dist/types/run-tests.d.ts +2 -0
  68. package/dist/types/src/Aider.d.ts +1 -0
  69. package/dist/types/src/Init.d.ts +2 -0
  70. package/dist/types/src/Node.d.ts +6 -0
  71. package/dist/types/{PM → src/PM}/index.d.ts +3 -2
  72. package/dist/types/{PM → src/PM}/main.d.ts +6 -3
  73. package/dist/types/{PM → src/PM}/node.d.ts +2 -0
  74. package/dist/types/{PM → src/PM}/web.d.ts +1 -0
  75. package/dist/types/{Project.d.ts → src/Project.d.ts} +1 -1
  76. package/dist/types/src/Puppeteer.d.ts +2 -0
  77. package/dist/types/src/SubPackages/puppeteer.d.ts +6 -0
  78. package/dist/types/{SubPackages → src/SubPackages}/react/component/node.d.ts +1 -1
  79. package/dist/types/{SubPackages → src/SubPackages}/react/component/web.d.ts +1 -1
  80. package/dist/types/src/SubPackages/react/jsx/node.d.ts +4 -0
  81. package/dist/types/src/SubPackages/react/jsx/web.d.ts +4 -0
  82. package/dist/types/{SubPackages → src/SubPackages}/react-dom/component/node.d.ts +2 -2
  83. package/dist/types/src/SubPackages/react-dom/component/web.d.ts +11 -0
  84. package/dist/types/src/SubPackages/react-dom/jsx/node.d.ts +6 -0
  85. package/dist/types/src/SubPackages/react-dom/jsx/web.d.ts +5 -0
  86. package/dist/types/src/SubPackages/react-test-renderer/MemoExoticComponent/node.d.ts +5 -0
  87. package/dist/types/{SubPackages → src/SubPackages}/react-test-renderer/component/index.d.ts +0 -7
  88. package/dist/types/src/SubPackages/react-test-renderer/component/interface.d.ts +9 -0
  89. package/dist/types/{SubPackages → src/SubPackages}/react-test-renderer/component/node.d.ts +1 -2
  90. package/dist/types/src/SubPackages/react-test-renderer/component/web.d.ts +3 -0
  91. package/dist/types/{SubPackages → src/SubPackages}/react-test-renderer/fc/node.d.ts +1 -1
  92. package/dist/types/{SubPackages → src/SubPackages}/react-test-renderer/fc/web.d.ts +1 -1
  93. package/dist/types/{SubPackages → src/SubPackages}/react-test-renderer/jsx/node.d.ts +1 -2
  94. package/dist/types/{SubPackages → src/SubPackages}/react-test-renderer/jsx/web.d.ts +1 -2
  95. package/dist/types/src/SubPackages/react-test-renderer/jsx-promised/node.d.ts +4 -0
  96. package/dist/types/src/SubPackages/react-test-renderer/jsx-promised/web.d.ts +4 -0
  97. package/dist/types/src/Types.d.ts +51 -0
  98. package/dist/types/src/Web.d.ts +6 -0
  99. package/dist/types/src/esbuildConfigs/inputFilesPlugin.d.ts +5 -0
  100. package/dist/types/{lib → src/lib}/abstractBase.d.ts +8 -8
  101. package/dist/types/{lib → src/lib}/basebuilder.d.ts +1 -1
  102. package/dist/types/{lib → src/lib}/classBuilder.d.ts +1 -1
  103. package/dist/types/{lib → src/lib}/core.d.ts +1 -1
  104. package/dist/types/{lib → src/lib}/index.d.ts +5 -5
  105. package/dist/types/{lib → src/lib}/types.d.ts +15 -15
  106. package/dist/types/src/utils.d.ts +2 -0
  107. package/dist/types/testeranto.d.ts +16 -0
  108. package/dist/types/tsconfig.types.tsbuildinfo +1 -1
  109. package/docker-compose.yml +37 -0
  110. package/init-docs.ts +5 -0
  111. package/package.json +72 -25
  112. package/run-tests.ts +9 -0
  113. package/src/Aider.ts +125 -0
  114. package/src/Init.ts +20 -0
  115. package/src/Node.ts +31 -2
  116. package/src/PM/index.ts +7 -84
  117. package/src/PM/main.ts +400 -16
  118. package/src/PM/node.ts +6 -0
  119. package/src/PM/web.ts +4 -0
  120. package/src/Project.ts +33 -84
  121. package/src/Puppeteer.ts +115 -62
  122. package/src/SubPackages/react-dom/component/web.ts +10 -30
  123. package/src/SubPackages/react-dom/jsx/web.ts +110 -76
  124. package/src/SubPackages/react-test-renderer/component/index.ts +0 -66
  125. package/src/SubPackages/react-test-renderer/component/interface.ts +48 -0
  126. package/src/SubPackages/react-test-renderer/component/node.ts +2 -1
  127. package/src/SubPackages/react-test-renderer/component/web.ts +2 -1
  128. package/src/Types.ts +138 -29
  129. package/src/Web.ts +32 -2
  130. package/src/esbuildConfigs/index.ts +1 -0
  131. package/src/esbuildConfigs/inputFilesPlugin.ts +67 -0
  132. package/src/esbuildConfigs/node.ts +4 -2
  133. package/src/esbuildConfigs/report.ts +13 -13
  134. package/src/esbuildConfigs/web.ts +4 -0
  135. package/src/lib/abstractBase.ts +366 -36
  136. package/src/lib/basebuilder.ts +26 -52
  137. package/src/lib/classBuilder.ts +14 -2
  138. package/src/lib/core.ts +18 -7
  139. package/src/lib/index.ts +115 -7
  140. package/src/lib/types.ts +143 -37
  141. package/src/utils.ts +15 -0
  142. package/testeranto.ts +13 -0
  143. package/tsconfig.common.json +12 -4
  144. package/tsconfig.json +9 -3
  145. package/tsconfig.module.json +2 -3
  146. package/tsconfig.types.json +1 -2
  147. package/dist/common/Features.js +0 -84
  148. package/dist/common/PM/index.js +0 -71
  149. package/dist/common/Reporter.js +0 -119
  150. package/dist/common/Scheduler.js +0 -1
  151. package/dist/common/SubPackages/react-dom/jsx/web.js +0 -93
  152. package/dist/common/esbuildConfigs/report.js +0 -13
  153. package/dist/common/lib/abstractBase.js +0 -348
  154. package/dist/common/preload.js +0 -15
  155. package/dist/common/report.html.js +0 -31
  156. package/dist/module/Features.js +0 -73
  157. package/dist/module/PM/index.js +0 -67
  158. package/dist/module/PM/main.js +0 -340
  159. package/dist/module/Reporter.js +0 -114
  160. package/dist/module/Scheduler.js +0 -1
  161. package/dist/module/SubPackages/react-dom/jsx/web.js +0 -65
  162. package/dist/module/Types.js +0 -3
  163. package/dist/module/esbuildConfigs/report.js +0 -11
  164. package/dist/module/lib/abstractBase.js +0 -340
  165. package/dist/module/preload.js +0 -15
  166. package/dist/module/report.html.js +0 -29
  167. package/dist/prebuild/Report.css +0 -11358
  168. package/dist/prebuild/Report.js +0 -37585
  169. package/dist/types/Features.d.ts +0 -68
  170. package/dist/types/Node.d.ts +0 -6
  171. package/dist/types/SubPackages/puppeteer.d.ts +0 -6
  172. package/dist/types/SubPackages/react/jsx/node.d.ts +0 -4
  173. package/dist/types/SubPackages/react/jsx/web.d.ts +0 -4
  174. package/dist/types/SubPackages/react-dom/component/web.d.ts +0 -5
  175. package/dist/types/SubPackages/react-dom/jsx/node.d.ts +0 -6
  176. package/dist/types/SubPackages/react-dom/jsx/web.d.ts +0 -5
  177. package/dist/types/SubPackages/react-test-renderer/MemoExoticComponent/node.d.ts +0 -5
  178. package/dist/types/SubPackages/react-test-renderer/component/web.d.ts +0 -4
  179. package/dist/types/SubPackages/react-test-renderer/jsx-promised/node.d.ts +0 -5
  180. package/dist/types/SubPackages/react-test-renderer/jsx-promised/web.d.ts +0 -5
  181. package/dist/types/Types.d.ts +0 -50
  182. package/dist/types/Web.d.ts +0 -6
  183. package/dist/types/esbuildConfigs/report.d.ts +0 -4
  184. package/dist/types/preload.d.ts +0 -0
  185. package/dist/types/report.html.d.ts +0 -2
  186. package/electronBuild.ts +0 -32
  187. package/src/Features.ts +0 -118
  188. package/src/Report.tsx +0 -521
  189. package/src/Reporter.ts +0 -134
  190. package/src/Scheduler.ts +0 -0
  191. package/src/preload.ts +0 -17
  192. package/src/report.html.ts +0 -29
  193. package/tests/Rectangle.test.ts +0 -189
  194. /package/dist/common/{SubPackages → src/SubPackages}/puppeteer.js +0 -0
  195. /package/dist/common/{SubPackages → src/SubPackages}/react/component/node.js +0 -0
  196. /package/dist/common/{SubPackages → src/SubPackages}/react/component/web.js +0 -0
  197. /package/dist/common/{SubPackages → src/SubPackages}/react/jsx/index.js +0 -0
  198. /package/dist/common/{SubPackages → src/SubPackages}/react/jsx/node.js +0 -0
  199. /package/dist/common/{SubPackages → src/SubPackages}/react/jsx/web.js +0 -0
  200. /package/dist/common/{SubPackages → src/SubPackages}/react-dom/component/node.js +0 -0
  201. /package/dist/common/{SubPackages → src/SubPackages}/react-dom/jsx/index.js +0 -0
  202. /package/dist/common/{SubPackages → src/SubPackages}/react-dom/jsx/node.js +0 -0
  203. /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/MemoExoticComponent/node.js +0 -0
  204. /package/dist/common/{lib/types.js → src/SubPackages/react-test-renderer/component/index.js} +0 -0
  205. /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/fc/node.js +0 -0
  206. /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/fc/web.js +0 -0
  207. /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/jsx/index.js +0 -0
  208. /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/jsx/node.js +0 -0
  209. /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/jsx/web.js +0 -0
  210. /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/jsx-promised/index.js +0 -0
  211. /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/jsx-promised/node.js +0 -0
  212. /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/jsx-promised/web.js +0 -0
  213. /package/dist/common/{Web.js → src/Web.js} +0 -0
  214. /package/dist/common/{esbuildConfigs → src/esbuildConfigs}/features.js +0 -0
  215. /package/dist/common/{esbuildConfigs → src/esbuildConfigs}/tests.js +0 -0
  216. /package/dist/common/{lib → src/lib}/index.js +0 -0
  217. /package/dist/common/{puppeteerConfiger.js → src/puppeteerConfiger.js} +0 -0
  218. /package/dist/common/{web.html.js → src/web.html.js} +0 -0
  219. /package/dist/module/{SubPackages → src/SubPackages}/puppeteer.js +0 -0
  220. /package/dist/module/{SubPackages → src/SubPackages}/react/component/node.js +0 -0
  221. /package/dist/module/{SubPackages → src/SubPackages}/react/component/web.js +0 -0
  222. /package/dist/module/{SubPackages → src/SubPackages}/react/jsx/index.js +0 -0
  223. /package/dist/module/{SubPackages → src/SubPackages}/react/jsx/node.js +0 -0
  224. /package/dist/module/{SubPackages → src/SubPackages}/react/jsx/web.js +0 -0
  225. /package/dist/module/{SubPackages → src/SubPackages}/react-dom/component/node.js +0 -0
  226. /package/dist/module/{SubPackages → src/SubPackages}/react-dom/jsx/index.js +0 -0
  227. /package/dist/module/{SubPackages → src/SubPackages}/react-dom/jsx/node.js +0 -0
  228. /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/MemoExoticComponent/node.js +0 -0
  229. /package/dist/module/{lib/types.js → src/SubPackages/react-test-renderer/component/index.js} +0 -0
  230. /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/fc/node.js +0 -0
  231. /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/fc/web.js +0 -0
  232. /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/jsx/index.js +0 -0
  233. /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/jsx/node.js +0 -0
  234. /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/jsx/web.js +0 -0
  235. /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/jsx-promised/index.js +0 -0
  236. /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/jsx-promised/node.js +0 -0
  237. /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/jsx-promised/web.js +0 -0
  238. /package/dist/{types/Puppeteer.d.ts → module/src/Types.js} +0 -0
  239. /package/dist/module/{Web.js → src/Web.js} +0 -0
  240. /package/dist/module/{esbuildConfigs → src/esbuildConfigs}/features.js +0 -0
  241. /package/dist/module/{esbuildConfigs → src/esbuildConfigs}/tests.js +0 -0
  242. /package/dist/module/{lib → src/lib}/index.js +0 -0
  243. /package/dist/{types/Reporter.d.ts → module/src/lib/types.js} +0 -0
  244. /package/dist/module/{puppeteerConfiger.js → src/puppeteerConfiger.js} +0 -0
  245. /package/dist/module/{web.html.js → src/web.html.js} +0 -0
  246. /package/dist/types/{SubPackages → src/SubPackages}/react/jsx/index.d.ts +0 -0
  247. /package/dist/types/{SubPackages → src/SubPackages}/react-dom/jsx/index.d.ts +0 -0
  248. /package/dist/types/{SubPackages → src/SubPackages}/react-test-renderer/jsx/index.d.ts +0 -0
  249. /package/dist/types/{SubPackages → src/SubPackages}/react-test-renderer/jsx-promised/index.d.ts +0 -0
  250. /package/dist/types/{esbuildConfigs → src/esbuildConfigs}/features.d.ts +0 -0
  251. /package/dist/types/{esbuildConfigs → src/esbuildConfigs}/index.d.ts +0 -0
  252. /package/dist/types/{esbuildConfigs → src/esbuildConfigs}/node.d.ts +0 -0
  253. /package/dist/types/{Scheduler.d.ts → src/esbuildConfigs/report.d.ts} +0 -0
  254. /package/dist/types/{esbuildConfigs → src/esbuildConfigs}/tests.d.ts +0 -0
  255. /package/dist/types/{esbuildConfigs → src/esbuildConfigs}/web.d.ts +0 -0
  256. /package/dist/types/{puppeteerConfiger.d.ts → src/puppeteerConfiger.d.ts} +0 -0
  257. /package/dist/types/{web.html.d.ts → src/web.html.d.ts} +0 -0
@@ -0,0 +1,37 @@
1
+ version: "0.1"
2
+
3
+ services:
4
+ report:
5
+ image: us-west1-docker.pkg.dev/dev-trail-450920-p2/testeranto-docker/report:latest
6
+ container_name: report
7
+ ports:
8
+ - 8080:8080
9
+
10
+ mongodb:
11
+ image: mongo
12
+ container_name: mongodb
13
+ environment:
14
+ - PUID=1000
15
+ - PGID=1000
16
+ volumes:
17
+ - /home/barry/mongodb/database:/data/db
18
+ ports:
19
+ - 27017:27017
20
+ restart: unless-stopped
21
+ # services:
22
+
23
+ # counter:
24
+ # image: gcr.io/${PROJECT_ID}/gcb-docker-compose:latest
25
+ # container_name: counter
26
+ # depends_on:
27
+ # - redis
28
+ # ports:
29
+ # - "50051:50051"
30
+ # environment:
31
+ # - REDIS_HOST=redis
32
+ # - REDIS_PORT=6379
33
+
34
+ # redis:
35
+ # image: redis
36
+ # ports:
37
+ # - "6379:6379"
package/init-docs.ts ADDED
@@ -0,0 +1,5 @@
1
+ import Init from "./src/Init.js";
2
+
3
+ import Project from "./testeranto.js";
4
+
5
+ export default Init(Project as any);
package/package.json CHANGED
@@ -1,7 +1,10 @@
1
1
  {
2
2
  "name": "testeranto",
3
3
  "description": "teeny tiny tightly-typed typescript tests",
4
- "version": "0.75.0",
4
+ "version": "0.79.0",
5
+ "engines": {
6
+ "node": "18.18.0"
7
+ },
5
8
  "type": "module",
6
9
  "types": "./dist/index.d.mts",
7
10
  "module": "dist/module/index.js",
@@ -56,15 +59,15 @@
56
59
  },
57
60
  "./src/SubPackages/react-test-renderer/jsx/index.js": {
58
61
  "import": "./dist/module/src/SubPackages/react-test-renderer/jsx/index.js",
59
- "require": "./dist/common/SubPackages/react-test-renderer/jsx/index.js"
62
+ "require": "./dist/common/src/SubPackages/react-test-renderer/jsx/index.js"
60
63
  },
61
64
  "./src/SubPackages/react-test-renderer/jsx/web.js": {
62
- "import": "./dist/module/SubPackages/react-test-renderer/jsx/web.js",
63
- "require": "./dist/common/SubPackages/react-test-renderer/jsx/web.js"
65
+ "import": "./dist/module/src/SubPackages/react-test-renderer/jsx/web.js",
66
+ "require": "./dist/common/src/SubPackages/react-test-renderer/jsx/web.js"
64
67
  },
65
68
  "./src/SubPackages/react-test-renderer/jsx/node.js": {
66
- "import": "./dist/module/SubPackages/react-test-renderer/jsx/node.js",
67
- "require": "./dist/common/SubPackages/react-test-renderer/jsx/node.js"
69
+ "import": "./dist/module/src/SubPackages/react-test-renderer/jsx/node.js",
70
+ "require": "./dist/common/src/SubPackages/react-test-renderer/jsx/node.js"
68
71
  },
69
72
  "./src/SubPackages/react-test-renderer/jsx-promised/index": {
70
73
  "import": "./dist/module/SubPackages/react-test-renderer/jsx-promised/index.js",
@@ -110,21 +113,21 @@
110
113
  "import": "./src/Types.ts",
111
114
  "require": "./src/Types.ts"
112
115
  },
113
- "./src/lib": {
114
- "import": "./src/lib.ts",
115
- "require": "./src/lib.ts"
116
+ "./src/utils": {
117
+ "import": "./src/utils.ts",
118
+ "require": "./src/utils.ts"
116
119
  },
117
120
  "./src/Features": {
118
121
  "import": "./dist/module/Features.js",
119
122
  "require": "./dist/common/Features.js"
120
123
  },
121
- "./src/Report": {
122
- "import": "./dist/module/Report.js",
123
- "require": "./dist/common/Report.js"
124
+ "./src/prompt": {
125
+ "import": "./dist/module/src/prompt.js",
126
+ "require": "./dist/module/src/prompt.js"
124
127
  },
125
128
  "./src/Project": {
126
- "import": "./dist/module/Project.js",
127
- "require": "./dist/common/Project.js"
129
+ "import": "./dist/module/src/Project.js",
130
+ "require": "./dist/module/src/Project.js"
128
131
  },
129
132
  "./src/Web": {
130
133
  "import": "./src/Web.ts",
@@ -134,9 +137,21 @@
134
137
  "import": "./src/Node.ts",
135
138
  "require": "./src/Node.ts"
136
139
  },
137
- "./src/electron": {
138
- "import": "./dist/module/electron.js",
139
- "require": "./dist/common/electron.js"
140
+ "./src/Aider": {
141
+ "import": "./dist/module/src/Aider.js",
142
+ "require": "./dist/common/src/Aider.js"
143
+ },
144
+ "./src/Puppeteer": {
145
+ "import": "./dist/module/src/Puppeteer.js",
146
+ "require": "./dist/common/src/Puppeteer.js"
147
+ },
148
+ "./src/TaskMan": {
149
+ "import": "./dist/module/TaskMan.js",
150
+ "require": "./dist/common/TaskMan.js"
151
+ },
152
+ "./src/Init": {
153
+ "import": "./dist/module/src/Init.js",
154
+ "require": "./dist/common/src/Init.js"
140
155
  },
141
156
  "./src/preload": {
142
157
  "import": "./dist/module/preload.js",
@@ -174,16 +189,19 @@
174
189
  "ATDD"
175
190
  ],
176
191
  "scripts": {
177
- "doit": "rm -rf node_modules && yarn install && yarn build",
178
- "build": "sh prebuild.sh; cp ./src/cjs-shim.js ./dist/cjs-shim.js; tsc -p tsconfig.module.json; tsc -p tsconfig.common.json; tsc -p tsconfig.types.json; yarn esbuild src/Report.tsx --outfile=dist/prebuild/Report.js --bundle --external:testeranto.json --external:features.test.js --external:tests.json; sh postBuild.sh; ",
179
192
  "commit": "yarn build; git add --all && git commit -m 'stash'",
180
- "dev": "cp ./src/cjs-shim.js ./dist/cjs-shim.js && tsc -p tsconfig.module.json --watch & tsc -p tsconfig.common.json --watch & tsc -p tsconfig.types.json --watch & yarn esbuild src/Report.tsx --outfile=dist/prebuild/Report.js --bundle --external:testeranto.json --external:features.test.js --external:tests.json --watch",
193
+ "doit": "rm -rf node_modules && yarn install && yarn build",
194
+ "build": "sh prebuild.sh; cp ./src/cjs-shim.js ./dist/cjs-shim.js; tsc -p tsconfig.module.json; tsc -p tsconfig.common.json; tsc -p tsconfig.types.json; sh postBuild.sh",
195
+ "dev": "cp ./src/cjs-shim.js ./dist/cjs-shim.js && tsc -p tsconfig.module.json --watch & tsc -p tsconfig.common.json --watch & tsc -p tsconfig.types.json --watch ",
181
196
  "build-module": "tsc -p tsconfig.module.json",
182
197
  "build-common": "tsc -p tsconfig.common.json",
183
198
  "build-types": "tsc -p tsconfig.types.json",
184
- "build-electron": "ts-node-esm electronBuild.ts"
199
+ "build-tests": "ts-node-esm ./project.ts",
200
+ "run-tests": "ts-node-esm ./run-tests.ts",
201
+ "init-docs": "ts-node-esm init-docs.ts"
185
202
  },
186
203
  "peerDependencies": {
204
+ "@hello-pangea/dnd": ">=16",
187
205
  "@types/react": "^18.2.66",
188
206
  "@types/react-dom": "18.2.23",
189
207
  "@types/react-test-renderer": "18.0.7",
@@ -208,32 +226,61 @@
208
226
  "typescript": "4.8.2"
209
227
  },
210
228
  "dependencies": {
211
- "@electron/remote": "^2.1.2",
229
+ "@asseinfo/react-kanban": "^2.2.0",
230
+ "@caldwell619/react-kanban": "^0.0.12",
231
+ "@gitgraph/core": "^1.5.0",
232
+ "@gitgraph/js": "^1.4.0",
233
+ "@gitgraph/react": "^1.6.0",
234
+ "@hello-pangea/dnd": "^18.0.1",
235
+ "@octokit/types": "^13.8.0",
236
+ "@types/express": "^5.0.0",
237
+ "@types/express-session": "^1.18.1",
238
+ "@types/uuid": "^10.0.0",
239
+ "@xyflow/react": "^12.4.3",
240
+ "@zodform/core": "^0.2.0",
212
241
  "babel-loader": "^8.2.5",
213
242
  "bootstrap": "^5.2.3",
214
- "electron": "28.0.0",
243
+ "chai": "^5.2.0",
244
+ "dot-prop": "^9.0.0",
215
245
  "esbuild": "0.17.5",
216
246
  "esbuild-plugin-external-package": "^1.0.0",
217
247
  "esbuild-plugin-import-map": "^2.1.0",
218
248
  "eslint": "^8.29.0",
219
249
  "eslint-plugin-react": "^7.31.11",
250
+ "eslint-plugin-react-hooks": "^5.1.0",
251
+ "express": "^4.21.2",
252
+ "express-session": "^1.18.1",
220
253
  "fs-extra": "^11.2.0",
221
254
  "fs.promises.exists": "^1.1.4",
255
+ "gantt-task-react": "^0.3.9",
222
256
  "glob": "^10.3.12",
223
257
  "graphology": "^0.25.1",
224
258
  "graphology-dag": "^0.2.0",
225
259
  "graphology-types": "^0.24.5",
226
260
  "html": "^1.0.0",
227
261
  "ipc": "^0.0.1",
262
+ "iterm-tab": "^0.4.0",
228
263
  "jsonc": "^2.0.0",
264
+ "mongodb": "^6.13.0",
265
+ "mongoose": "^8.10.0",
266
+ "mongoose-auto-number": "2.0.0",
267
+ "mongoose-rest-query": "^0.1.29",
229
268
  "npm-watch": "^0.11.0",
269
+ "octokit": "^4.1.2",
270
+ "passport": "^0.7.0",
271
+ "passport-github2": "^0.1.12",
230
272
  "puppeteer-core": "^23.6.0",
231
273
  "react-bootstrap": "2.10.6",
274
+ "react-github-login": "^1.0.3",
275
+ "react-login-github": "^1.0.8",
276
+ "react-router-dom": "6.29.0",
232
277
  "react-sigma": "^1.2.35",
233
278
  "react-test-renderer": "18.2.0",
234
- "selenium-webdriver": "^4.25.0",
279
+ "recursive-watch": "^1.1.4",
280
+ "selenium-webdriver": "4.27.0",
235
281
  "url": "^0.11.4",
236
282
  "uuid": "^10.0.0",
237
- "ws": "^8.16.0"
283
+ "ws": "^8.16.0",
284
+ "zod": "^3.24.2"
238
285
  }
239
286
  }
package/run-tests.ts ADDED
@@ -0,0 +1,9 @@
1
+ import process from "process";
2
+ process.chdir(__dirname);
3
+
4
+ import Puppeteer from "./src/Puppeteer.js";
5
+
6
+ console.log(process.argv);
7
+ const Project = await import(process.argv[2]);
8
+
9
+ export default Puppeteer(Project as any);
package/src/Aider.ts ADDED
@@ -0,0 +1,125 @@
1
+ import fs from "fs";
2
+ import { exec, spawn } from "child_process";
3
+ import { features } from "process";
4
+ // import { octokit } from "./src/DELETEME";
5
+ // const itermTab = require("iterm-tab");
6
+ import itermTab from "iterm-tab";
7
+
8
+ import { Octokit } from "octokit";
9
+
10
+ export const execCommand = async (command) => {
11
+ return new Promise<void>((resolve, reject) => {
12
+ const [cmd, ...args] = command.split(" ");
13
+ const childProcess = spawn(cmd, args);
14
+ childProcess.stdout.on("data", (data) => {
15
+ process.stdout.write(data.toString());
16
+ });
17
+ childProcess.stderr.on("data", (data) => {
18
+ process.stderr.write(data.toString());
19
+ });
20
+ childProcess.on("error", (error) => {
21
+ reject(error);
22
+ });
23
+ childProcess.on("exit", (code) => {
24
+ if (code === 0) {
25
+ resolve();
26
+ } else {
27
+ reject(new Error(`Command exited with code ${code}.`));
28
+ }
29
+ });
30
+ });
31
+ };
32
+
33
+ const key = process.argv[2];
34
+ console.log(key);
35
+ const exitcode = fs.readFileSync(`${key}/exitcode`).toString();
36
+
37
+ console.log("exitcode", exitcode);
38
+
39
+ // if (exitcode != "0") {
40
+ if (exitcode != "0") {
41
+ const inputFiles = JSON.parse(
42
+ fs.readFileSync(`${key}/inputFiles.json`).toString()
43
+ );
44
+
45
+ inputFiles.push(`${key}/tests.json`);
46
+
47
+ const features = await (
48
+ await Promise.all(
49
+ Array.from(
50
+ new Set(
51
+ JSON.parse(fs.readFileSync(`${key}/tests.json`).toString())
52
+ .givens.reduce((mm: any[], lm: { features: any[] }) => {
53
+ mm.push(
54
+ lm.features.reduce((mm2: any[], lm2: any) => {
55
+ mm2.push(lm2);
56
+ return mm2;
57
+ }, [])
58
+ );
59
+ return mm;
60
+ }, [])
61
+ .flat()
62
+ .flat()
63
+ )
64
+ ) as string[]
65
+ )
66
+ )
67
+ .reduce(async (mm, feature) => {
68
+ const req = await octokit.request(
69
+ `GET /repos/adamwong246/kokomobay-taskman/contents/Task/${feature}.json`,
70
+ {
71
+ owner: "adamwong246",
72
+ repo: "kokomoBay-taskman",
73
+ path: `Task/${feature}.json`,
74
+ headers: {
75
+ "X-GitHub-Api-Version": "2022-11-28",
76
+ },
77
+ }
78
+ );
79
+
80
+ const j = JSON.parse(atob(req.data.content));
81
+ (await mm).push([
82
+ feature,
83
+ JSON.stringify({
84
+ name: j.name,
85
+ body: j.body,
86
+ }),
87
+ ]);
88
+
89
+ return mm;
90
+ }, Promise.resolve<[string, string][]>([]))
91
+ .then((z) => {
92
+ const final = z.reduce((mm, [k, v], ndx) => {
93
+ mm[k] = v;
94
+ return mm;
95
+ }, {});
96
+
97
+ const as = JSON.stringify(final);
98
+
99
+ fs.writeFile(`./${key}/features.json`, as, () => {
100
+ inputFiles.push(`./${key}/features.json`);
101
+
102
+ const scriptCommand = `aider --model deepseek --api-key deepseek=${
103
+ process.env.DEEPSEEK_KEY
104
+ } --message "Fix the failing tests" ${inputFiles.join(" ")}`;
105
+
106
+ console.log("scriptCommand", scriptCommand);
107
+
108
+ execCommand(scriptCommand);
109
+ // itermTab(scriptCommand).then(() => console.log("yay"));
110
+
111
+ // const child = spawn("xterm -e", scriptCommand.split(" "), {
112
+ // detached: true,
113
+ // stdio: "ignore",
114
+ // });
115
+ // runCommandInITerm(scriptCommand);
116
+ });
117
+ //
118
+ });
119
+
120
+ // features.then((x) => {
121
+ // console.log("done", x);
122
+ // });
123
+ } else {
124
+ console.log("that test is not failing");
125
+ }
package/src/Init.ts ADDED
@@ -0,0 +1,20 @@
1
+ import fs from "fs";
2
+
3
+ export default async (partialConfig) => {
4
+ const config = {
5
+ ...partialConfig,
6
+ buildDir: process.cwd() + "/" + partialConfig.outdir,
7
+ };
8
+
9
+ fs.writeFileSync(
10
+ `${config.outdir}/testeranto.json`,
11
+ JSON.stringify(
12
+ {
13
+ ...config,
14
+ buildDir: process.cwd() + "/" + config.outdir,
15
+ },
16
+ null,
17
+ 2
18
+ )
19
+ );
20
+ };
package/src/Node.ts CHANGED
@@ -15,7 +15,20 @@ import { ITestInterface, INodeTestInterface } from "./lib/types.js";
15
15
  import { PM_Node } from "./PM/node.js";
16
16
 
17
17
  class NodeTesteranto<
18
- TestShape extends IBaseTest
18
+ TestShape extends IBaseTest<
19
+ unknown,
20
+ unknown,
21
+ unknown,
22
+ unknown,
23
+ unknown,
24
+ unknown,
25
+ unknown,
26
+ Record<string, any>,
27
+ Record<string, any>,
28
+ Record<string, any>,
29
+ Record<string, any>,
30
+ Record<string, any>
31
+ >
19
32
  > extends Testeranto<TestShape> {
20
33
  constructor(
21
34
  input: TestShape["iinput"],
@@ -35,6 +48,7 @@ class NodeTesteranto<
35
48
 
36
49
  async receiveTestResourceConfig(partialTestResource: string) {
37
50
  const t: ITTestResourceConfiguration = JSON.parse(partialTestResource);
51
+ console.log("receiveTestResourceConfig", t);
38
52
  const pm = new PM_Node(t);
39
53
  const { failed, artifacts, logPromise } =
40
54
  await this.testJobs[0].receiveTestResourceConfig(pm);
@@ -42,7 +56,22 @@ class NodeTesteranto<
42
56
  }
43
57
  }
44
58
 
45
- export default async <ITestShape extends IBaseTest>(
59
+ export default async <
60
+ ITestShape extends IBaseTest<
61
+ unknown,
62
+ unknown,
63
+ unknown,
64
+ unknown,
65
+ unknown,
66
+ unknown,
67
+ unknown,
68
+ Record<string, any>,
69
+ Record<string, any>,
70
+ Record<string, any>,
71
+ Record<string, any>,
72
+ Record<string, any>
73
+ >
74
+ >(
46
75
  input: ITestShape["iinput"],
47
76
  testSpecification: ITestSpecification<ITestShape>,
48
77
  testImplementation: ITestImplementation<ITestShape>,
package/src/PM/index.ts CHANGED
@@ -1,18 +1,9 @@
1
- // import {
2
- // Browser,
3
- // BrowserContext,
4
- // BrowserContextOptions,
5
- // DebugInfo,
6
- // Page,
7
- // PuppeteerNode,
8
- // Target,
9
- // } from "puppeteer-core";
10
-
11
- import { Browser } from "puppeteer-core/lib/esm/puppeteer/puppeteer-core-browser";
1
+ import {
2
+ Browser,
3
+ Page,
4
+ } from "puppeteer-core/lib/esm/puppeteer/puppeteer-core-browser";
12
5
  import { ITLog, ITTestResourceConfiguration } from "../lib";
13
- import { ChildProcess } from "child_process";
14
- import { PuppeteerLaunchOptions } from "puppeteer-core/lib/esm/puppeteer";
15
- // import { ILogWriter, ITLog } from "./lib";
6
+ // import { Page } from "puppeteer-core";
16
7
 
17
8
  type IFPaths = string[];
18
9
  const fPaths: IFPaths = [];
@@ -22,81 +13,13 @@ export abstract class PM {
22
13
  browser: Browser;
23
14
  testResourceConfiguration: ITTestResourceConfiguration;
24
15
 
25
- // constructor(testResourceConfiguration: ITTestResourceConfiguration) {
26
- // this.testResourceConfiguration = testResourceConfiguration;
27
- // console.log("mkdirsync2", this.testResourceConfiguration);
28
- // }
29
-
30
16
  abstract startPuppeteer(options: any, destfolder: string): Promise<Browser>;
31
-
32
17
  abstract testArtiFactoryfileWriter(tLog: ITLog, callback: (Promise) => void);
33
18
  abstract createWriteStream(filepath: string): any;
34
19
  abstract writeFileSync(fp: string, contents: string);
35
- abstract mkdirSync();
20
+ abstract mkdirSync(a: string);
36
21
  abstract existsSync(fp: string): boolean;
37
22
  abstract write(accessObject: { uid: number }, contents: string): boolean;
38
23
  abstract end(accessObject: { uid: number }): boolean;
39
-
40
- // pages(): Promise<Page[]>;
41
- // pages(): Promise<Page[]> {
42
- // return new Promise<Page[]>((res, rej) => {
43
- // res(super.pages());
44
- // });
45
- // }
24
+ abstract customScreenShot(opts: object, page: Page): any;
46
25
  }
47
-
48
- // export class PuppetMasterBrowser extends Browser {
49
- // process(): ChildProcess | null {
50
- // return super.process();
51
- // }
52
- // createBrowserContext(
53
- // options?: BrowserContextOptions
54
- // ): Promise<BrowserContext> {
55
- // throw new Error("Method not implemented.");
56
- // }
57
- // browserContexts(): BrowserContext[] {
58
- // throw new Error("Method not implemented.");
59
- // }
60
- // defaultBrowserContext(): BrowserContext {
61
- // throw new Error("Method not implemented.");
62
- // }
63
- // wsEndpoint(): string {
64
- // throw new Error("Method not implemented.");
65
- // }
66
- // newPage(): Promise<Page> {
67
- // throw new Error("Method not implemented.");
68
- // }
69
- // targets(): Target[] {
70
- // throw new Error("Method not implemented.");
71
- // }
72
- // target(): Target {
73
- // throw new Error("Method not implemented.");
74
- // }
75
- // version(): Promise<string> {
76
- // throw new Error("Method not implemented.");
77
- // }
78
- // userAgent(): Promise<string> {
79
- // throw new Error("Method not implemented.");
80
- // }
81
- // close(): Promise<void> {
82
- // throw new Error("Method not implemented.");
83
- // }
84
- // disconnect(): Promise<void> {
85
- // throw new Error("Method not implemented.");
86
- // }
87
- // get connected(): boolean {
88
- // throw new Error("Method not implemented.");
89
- // }
90
- // get debugInfo(): DebugInfo {
91
- // throw new Error("Method not implemented.");
92
- // }
93
- // constructor(...z: []) {
94
- // super(...z);
95
- // }
96
- // // pages(): Promise<Page[]>;
97
- // pages(): Promise<Page[]> {
98
- // return new Promise<Page[]>((res, rej) => {
99
- // res(super.pages());
100
- // });
101
- // }
102
- // }