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
package/tsconfig.json CHANGED
@@ -3,6 +3,9 @@
3
3
  "compilerOptions": {
4
4
  "module": "esnext",
5
5
  "allowSyntheticDefaultImports": true,
6
+ "moduleResolution": "node",
7
+ "target": "es2020",
8
+ "esModuleInterop": true,
6
9
  }
7
10
  },
8
11
  "declaration": true,
@@ -36,10 +39,13 @@
36
39
  "alwaysStrict": true
37
40
  },
38
41
  "include": [
39
- "src/**/*.*ts",
40
- "src/**/*.*tsx",
42
+ "./node_modules/testeranto/src/**/*.*ts",
43
+ "./**/*.*ts",
44
+ "./**/*.*tsx",
41
45
  "index.d.ts",
42
- "electronBuild.ts"
46
+ "build-tests.ts",
47
+ "run-tests.ts",
48
+ "testeranto.ts",
43
49
  ],
44
50
  "exclude": [
45
51
  "node_modules",
@@ -35,12 +35,11 @@
35
35
  "alwaysStrict": true
36
36
  },
37
37
  "include": [
38
- "src/**/*.*ts",
39
- "src/**/*.*tsx",
38
+ "./**/*.*ts",
39
+ "./**/*.*tsx",
40
40
  "index.d.ts"
41
41
  ],
42
42
  "exclude": [
43
43
  "node_modules",
44
- "src/Report.tsx"
45
44
  ]
46
45
  }
@@ -36,11 +36,10 @@
36
36
  "alwaysStrict": true
37
37
  },
38
38
  "include": [
39
- "src/**/*.*ts",
39
+ "./**/*.*ts",
40
40
  "index.d.ts"
41
41
  ],
42
42
  "exclude": [
43
43
  "node_modules",
44
- "src/Report.tsx"
45
44
  ]
46
45
  }
@@ -1,84 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.DirectedGraph = exports.TesterantoFeatures = exports.TesterantoGraphDirectedAcyclic = exports.TesterantoGraphDirected = exports.TesterantoGraphUndirected = exports.BaseFeature = void 0;
7
- const graphology_umd_js_1 = __importDefault(require("graphology/dist/graphology.umd.js"));
8
- const { DirectedGraph, UndirectedGraph } = graphology_umd_js_1.default;
9
- exports.DirectedGraph = DirectedGraph;
10
- class TesterantoGraph {
11
- constructor(name) {
12
- this.name = name;
13
- }
14
- }
15
- class BaseFeature {
16
- constructor(name) {
17
- this.name = name;
18
- }
19
- }
20
- exports.BaseFeature = BaseFeature;
21
- class TesterantoGraphUndirected {
22
- constructor(name) {
23
- this.name = name;
24
- this.graph = new UndirectedGraph();
25
- }
26
- connect(a, b, relation) {
27
- this.graph.mergeEdge(a, b, { type: relation });
28
- }
29
- }
30
- exports.TesterantoGraphUndirected = TesterantoGraphUndirected;
31
- class TesterantoGraphDirected {
32
- constructor(name) {
33
- this.name = name;
34
- this.graph = new DirectedGraph();
35
- }
36
- connect(to, from, relation) {
37
- this.graph.mergeEdge(to, from, { type: relation });
38
- }
39
- }
40
- exports.TesterantoGraphDirected = TesterantoGraphDirected;
41
- class TesterantoGraphDirectedAcyclic {
42
- constructor(name) {
43
- this.name = name;
44
- this.graph = new DirectedGraph();
45
- }
46
- connect(to, from, relation) {
47
- this.graph.mergeEdge(to, from, { type: relation });
48
- }
49
- }
50
- exports.TesterantoGraphDirectedAcyclic = TesterantoGraphDirectedAcyclic;
51
- class TesterantoFeatures {
52
- constructor(features, graphs) {
53
- this.features = features;
54
- this.graphs = graphs;
55
- }
56
- networks() {
57
- return [
58
- ...this.graphs.undirected.values(),
59
- ...this.graphs.directed.values(),
60
- ...this.graphs.dags.values(),
61
- ];
62
- }
63
- toObj() {
64
- return {
65
- features: Object.entries(this.features).map(([name, feature]) => {
66
- return Object.assign(Object.assign({}, feature), { inNetworks: this.networks()
67
- .filter((network) => {
68
- return network.graph.hasNode(feature.name);
69
- })
70
- .map((network) => {
71
- return {
72
- network: network.name,
73
- neighbors: network.graph.neighbors(feature.name),
74
- };
75
- }) });
76
- }),
77
- networks: this.networks().map((network) => {
78
- return Object.assign({}, network);
79
- }),
80
- };
81
- }
82
- }
83
- exports.TesterantoFeatures = TesterantoFeatures;
84
- exports.default = {};
@@ -1,71 +0,0 @@
1
- "use strict";
2
- // import {
3
- // Browser,
4
- // BrowserContext,
5
- // BrowserContextOptions,
6
- // DebugInfo,
7
- // Page,
8
- // PuppeteerNode,
9
- // Target,
10
- // } from "puppeteer-core";
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.PM = void 0;
13
- const fPaths = [];
14
- class PM {
15
- }
16
- exports.PM = PM;
17
- // export class PuppetMasterBrowser extends Browser {
18
- // process(): ChildProcess | null {
19
- // return super.process();
20
- // }
21
- // createBrowserContext(
22
- // options?: BrowserContextOptions
23
- // ): Promise<BrowserContext> {
24
- // throw new Error("Method not implemented.");
25
- // }
26
- // browserContexts(): BrowserContext[] {
27
- // throw new Error("Method not implemented.");
28
- // }
29
- // defaultBrowserContext(): BrowserContext {
30
- // throw new Error("Method not implemented.");
31
- // }
32
- // wsEndpoint(): string {
33
- // throw new Error("Method not implemented.");
34
- // }
35
- // newPage(): Promise<Page> {
36
- // throw new Error("Method not implemented.");
37
- // }
38
- // targets(): Target[] {
39
- // throw new Error("Method not implemented.");
40
- // }
41
- // target(): Target {
42
- // throw new Error("Method not implemented.");
43
- // }
44
- // version(): Promise<string> {
45
- // throw new Error("Method not implemented.");
46
- // }
47
- // userAgent(): Promise<string> {
48
- // throw new Error("Method not implemented.");
49
- // }
50
- // close(): Promise<void> {
51
- // throw new Error("Method not implemented.");
52
- // }
53
- // disconnect(): Promise<void> {
54
- // throw new Error("Method not implemented.");
55
- // }
56
- // get connected(): boolean {
57
- // throw new Error("Method not implemented.");
58
- // }
59
- // get debugInfo(): DebugInfo {
60
- // throw new Error("Method not implemented.");
61
- // }
62
- // constructor(...z: []) {
63
- // super(...z);
64
- // }
65
- // // pages(): Promise<Page[]>;
66
- // pages(): Promise<Page[]> {
67
- // return new Promise<Page[]>((res, rej) => {
68
- // res(super.pages());
69
- // });
70
- // }
71
- // }
@@ -1,119 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const readline_1 = __importDefault(require("readline"));
7
- const fs_1 = __importDefault(require("fs"));
8
- const jsonc_1 = require("jsonc");
9
- const puppeteer_core_1 = __importDefault(require("puppeteer-core"));
10
- // import { PM_Main } from "./PM/main.js";
11
- // var mode: "DEV" | "PROD" = process.argv[2] === "-dev" ? "DEV" : "PROD";
12
- // const node2web: Record<string, string[]> = {};
13
- // const web2node: Record<string, string[]> = {};
14
- // const childProcesses: Record<string, "loaded" | "running" | "done"> = {};
15
- readline_1.default.emitKeypressEvents(process.stdin);
16
- if (process.stdin.isTTY)
17
- process.stdin.setRawMode(true);
18
- console.log("\n Puppeteer is running. Press 'q' to quit\n");
19
- process.stdin.on("keypress", (str, key) => {
20
- if (key.name === "q") {
21
- process.exit();
22
- }
23
- });
24
- const main = async () => {
25
- const configs = jsonc_1.jsonc.parse((await fs_1.default.readFileSync("./docs/testeranto.json")).toString());
26
- // const pm = new PM_Main(configs);
27
- // await puppeteer.launch(options);
28
- const browser = await puppeteer_core_1.default.launch({
29
- waitForInitialPage: false,
30
- executablePath: "/opt/homebrew/bin/chromium",
31
- headless: false,
32
- args: [
33
- "--allow-file-access-from-files",
34
- "--allow-running-insecure-content",
35
- // "--auto-open-devtools-for-tabs",
36
- "--disable-dev-shm-usage",
37
- "--disable-extensions",
38
- "--disable-gpu",
39
- "--disable-setuid-sandbox",
40
- "--disable-site-isolation-trials",
41
- "--disable-web-security",
42
- "--disable-web-security",
43
- "--no-first-run",
44
- "--no-sandbox",
45
- "--no-startup-window",
46
- "--no-zygote",
47
- "--reduce-security-for-testing",
48
- "--remote-allow-origins=*",
49
- // "--remote-allow-origins=ws://localhost:3234",
50
- "--unsafely-treat-insecure-origin-as-secure=*",
51
- // "--disable-features=IsolateOrigins",
52
- // "--single-process",
53
- // "--unsafely-treat-insecure-origin-as-secure",
54
- // "--unsafely-treat-insecure-origin-as-secure=ws://192.168.0.101:3234",
55
- // `--remote-debugging-port=3234`,
56
- ],
57
- }
58
- // "."
59
- );
60
- console.log("Creating new page...");
61
- const page = await browser.newPage();
62
- await page.setViewport({ width: 0, height: 0 });
63
- console.log("Requesting url...");
64
- await page.goto(`file://${process.cwd()}/docs/report.html`);
65
- // const destinationOfRuntime = (f: string, r: IRunTime) => {
66
- // return path
67
- // .normalize(`${configs.buildDir}/${r}/${f}`)
68
- // .split(".")
69
- // .slice(0, -1)
70
- // .join(".");
71
- // };
72
- // configs.tests.forEach(([test, runtime, secondaryArtifacts]) => {
73
- // if (runtime === "node") {
74
- // pm.launchNode(test, destinationOfRuntime(test, "node"));
75
- // } else if (runtime === "web") {
76
- // pm.launchWeb(test, destinationOfRuntime(test, "web"));
77
- // } else {
78
- // console.error("runtime makes no sense", runtime);
79
- // }
80
- // });
81
- // console.log("ready and watching for changes...", configs.buildDir);
82
- // fs.watch(
83
- // configs.buildDir,
84
- // {
85
- // recursive: true,
86
- // },
87
- // (eventType, changedFile) => {
88
- // if (changedFile) {
89
- // configs.tests.forEach(([test, runtime, secondaryArtifacts]) => {
90
- // if (eventType === "change" || eventType === "rename") {
91
- // if (
92
- // changedFile ===
93
- // test
94
- // .replace("./", "node/")
95
- // .split(".")
96
- // .slice(0, -1)
97
- // .concat("mjs")
98
- // .join(".")
99
- // ) {
100
- // pm.launchNode(test, destinationOfRuntime(test, "node"));
101
- // }
102
- // if (
103
- // changedFile ===
104
- // test
105
- // .replace("./", "web/")
106
- // .split(".")
107
- // .slice(0, -1)
108
- // .concat("mjs")
109
- // .join(".")
110
- // ) {
111
- // pm.launchWeb(test, destinationOfRuntime(test, "web"));
112
- // }
113
- // }
114
- // });
115
- // }
116
- // }
117
- // );
118
- };
119
- main();
@@ -1 +0,0 @@
1
- "use strict";
@@ -1,93 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- var __importDefault = (this && this.__importDefault) || function (mod) {
26
- return (mod && mod.__esModule) ? mod : { "default": mod };
27
- };
28
- Object.defineProperty(exports, "__esModule", { value: true });
29
- const react_1 = __importStar(require("react"));
30
- const react_dom_1 = require("react-dom");
31
- const Web_js_1 = __importDefault(require("../../../Web.js"));
32
- exports.default = (testImplementations, testSpecifications, testInput) => {
33
- document.addEventListener("DOMContentLoaded", function () {
34
- const rootElement = document.getElementById("root");
35
- if (rootElement) {
36
- const TesterantoComponent = function ({ done, innerComp, }) {
37
- const myContainer = (0, react_1.useRef)(null);
38
- (0, react_1.useEffect)(() => {
39
- console.log("useEffect called", myContainer.current);
40
- done(myContainer.current);
41
- }, []);
42
- return react_1.default.createElement("div", { ref: myContainer }, innerComp());
43
- };
44
- (0, Web_js_1.default)(testInput, testSpecifications, testImplementations, {
45
- beforeAll: async (input, artificer) => {
46
- return await new Promise((resolve, rej) => {
47
- resolve(rootElement);
48
- });
49
- },
50
- beforeEach: async (subject, ndx, testRsource, artificer) => {
51
- return new Promise((resolve, rej) => {
52
- (0, react_dom_1.createPortal)(TesterantoComponent({
53
- innerComp: testInput,
54
- done: (reactElement) => {
55
- process.nextTick(() => {
56
- resolve(reactElement);
57
- });
58
- },
59
- }), rootElement);
60
- });
61
- },
62
- andWhen: function (s, whenCB) {
63
- return new Promise((resolve, rej) => {
64
- process.nextTick(() => {
65
- resolve(whenCB()(s));
66
- });
67
- });
68
- },
69
- butThen: async function (s) {
70
- return new Promise((resolve, rej) => {
71
- process.nextTick(() => {
72
- resolve(s);
73
- });
74
- });
75
- },
76
- afterEach: async function (store, ndx, artificer) {
77
- return new Promise((resolve, rej) => {
78
- process.nextTick(() => {
79
- resolve({});
80
- });
81
- });
82
- },
83
- afterAll: (store, artificer) => {
84
- return new Promise((resolve, rej) => {
85
- process.nextTick(() => {
86
- resolve({});
87
- });
88
- });
89
- },
90
- });
91
- }
92
- });
93
- };
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = (config) => {
4
- return {
5
- bundle: true,
6
- entryPoints: ["./node_modules/testeranto/dist/module/report.js"],
7
- minify: config.minify === true,
8
- outbase: config.outbase,
9
- write: true,
10
- outfile: `${config.outdir}/report.js`,
11
- external: ["tests.json", "features.test.js"],
12
- };
13
- };