testeranto 0.79.69 → 0.81.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 (252) hide show
  1. package/.aider.chat.history.md +980 -0
  2. package/.aider.input.history +87 -0
  3. package/.aider.tags.cache.v3/1c/30/af1de2ad7a137afeddb1b01e0c27.val +0 -0
  4. package/.aider.tags.cache.v3/1d/63/88318b65ce58b6bb0487e8ce2656.val +0 -0
  5. package/.aider.tags.cache.v3/2e/67/16ae65530b40038e48e00d666c63.val +0 -0
  6. package/.aider.tags.cache.v3/6f/94/80488a232866fcce7ee657da488b.val +0 -0
  7. package/.aider.tags.cache.v3/cache.db +0 -0
  8. package/.eslintrc.js +5 -2
  9. package/README.md +10 -107
  10. package/build-tests.ts +16 -0
  11. package/dist/common/build-tests.js +38 -0
  12. package/dist/common/init-docs.js +8 -0
  13. package/dist/common/run-tests.js +34 -0
  14. package/dist/common/src/Aider.js +143 -0
  15. package/dist/common/src/Init.js +10 -0
  16. package/dist/common/{PM → src/PM}/main.js +58 -49
  17. package/dist/common/{PM → src/PM}/node.js +1 -1
  18. package/dist/common/{Project.js → src/Project.js} +46 -38
  19. package/dist/common/{Puppeteer.js → src/Puppeteer.js} +51 -40
  20. package/dist/common/{SubPackages → src/SubPackages}/react-dom/jsx/web.js +37 -38
  21. package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/jsx/index.js +17 -2
  22. package/dist/common/src/esbuildConfigs/inputFilesPlugin.js +79 -0
  23. package/dist/common/{esbuildConfigs → src/esbuildConfigs}/node.js +5 -3
  24. package/dist/common/{esbuildConfigs → src/esbuildConfigs}/web.js +4 -4
  25. package/dist/common/{lib → src/lib}/abstractBase.js +80 -24
  26. package/dist/common/{lib → src/lib}/basebuilder.js +14 -3
  27. package/dist/common/{lib → src/lib}/core.js +47 -3
  28. package/dist/common/testeranto.js +15 -0
  29. package/dist/common/tsconfig.common.tsbuildinfo +1 -1
  30. package/dist/module/build-tests.js +10 -0
  31. package/dist/module/init-docs.js +3 -0
  32. package/dist/module/run-tests.js +6 -0
  33. package/dist/module/src/Aider.js +136 -0
  34. package/dist/module/src/Init.js +5 -0
  35. package/dist/module/{PM → src/PM}/main.js +58 -49
  36. package/dist/module/{PM → src/PM}/node.js +1 -1
  37. package/dist/module/{Project.js → src/Project.js} +46 -38
  38. package/dist/module/{Puppeteer.js → src/Puppeteer.js} +51 -40
  39. package/dist/module/{SubPackages → src/SubPackages}/react-dom/jsx/web.js +37 -38
  40. package/dist/module/src/SubPackages/react-test-renderer/jsx/index.js +34 -0
  41. package/dist/module/src/esbuildConfigs/inputFilesPlugin.js +74 -0
  42. package/dist/module/{esbuildConfigs → src/esbuildConfigs}/node.js +4 -2
  43. package/dist/module/{esbuildConfigs → src/esbuildConfigs}/web.js +4 -4
  44. package/dist/module/{lib → src/lib}/abstractBase.js +80 -24
  45. package/dist/module/{lib → src/lib}/basebuilder.js +14 -3
  46. package/dist/module/{lib → src/lib}/core.js +47 -3
  47. package/dist/module/testeranto.js +13 -0
  48. package/dist/module/tsconfig.module.tsbuildinfo +1 -1
  49. package/dist/types/build-tests.d.ts +3 -0
  50. package/dist/types/init-docs.d.ts +2 -0
  51. package/dist/types/run-tests.d.ts +2 -0
  52. package/dist/types/src/Aider.d.ts +1 -0
  53. package/dist/types/{PM → src/PM}/index.d.ts +1 -1
  54. package/dist/types/{PM → src/PM}/main.d.ts +7 -1
  55. package/dist/types/{Project.d.ts → src/Project.d.ts} +6 -1
  56. package/dist/types/{Types.d.ts → src/Types.d.ts} +3 -2
  57. package/dist/types/{lib → src/lib}/abstractBase.d.ts +1 -0
  58. package/dist/types/testeranto.d.ts +16 -0
  59. package/dist/types/tsconfig.types.tsbuildinfo +1 -1
  60. package/init-docs.ts +5 -0
  61. package/package.json +54 -29
  62. package/run-tests.ts +9 -0
  63. package/secret +1 -0
  64. package/secret.env +2 -0
  65. package/src/Aider.ts +168 -0
  66. package/src/Init.ts +0 -31
  67. package/src/PM/index.ts +1 -1
  68. package/src/PM/main.ts +71 -61
  69. package/src/PM/node.ts +1 -1
  70. package/src/Project.ts +55 -48
  71. package/src/Puppeteer.ts +66 -52
  72. package/src/SubPackages/react-dom/jsx/web.ts +46 -49
  73. package/src/SubPackages/react-test-renderer/jsx/index.ts +25 -2
  74. package/src/Types.ts +3 -1
  75. package/src/esbuildConfigs/inputFilesPlugin.ts +78 -31
  76. package/src/esbuildConfigs/node.ts +2 -2
  77. package/src/esbuildConfigs/web.ts +4 -4
  78. package/src/lib/abstractBase.ts +88 -30
  79. package/src/lib/basebuilder.ts +17 -3
  80. package/src/lib/core.ts +55 -13
  81. package/testeranto.ts +13 -0
  82. package/tsconfig.common.json +12 -4
  83. package/tsconfig.json +9 -2
  84. package/tsconfig.module.json +2 -2
  85. package/tsconfig.types.json +1 -1
  86. package/Report.Dockerfile +0 -44
  87. package/dist/common/Features.js +0 -51
  88. package/dist/common/Init.js +0 -30
  89. package/dist/common/Reporter.js +0 -112
  90. package/dist/common/Scheduler.js +0 -1
  91. package/dist/common/TaskManBackEnd.js +0 -167
  92. package/dist/common/esbuildConfigs/inputFilesPlugin.js +0 -49
  93. package/dist/common/mongooseSchemas.js +0 -56
  94. package/dist/common/preload.js +0 -15
  95. package/dist/common/report.html.js +0 -31
  96. package/dist/module/ExampleTab.js +0 -112
  97. package/dist/module/Features.js +0 -41
  98. package/dist/module/Init.js +0 -25
  99. package/dist/module/Reporter.js +0 -107
  100. package/dist/module/Scheduler.js +0 -1
  101. package/dist/module/SubPackages/react-test-renderer/jsx/index.js +0 -19
  102. package/dist/module/TaskManBackEnd.js +0 -162
  103. package/dist/module/TaskManFrontEnd.js +0 -605
  104. package/dist/module/esbuildConfigs/inputFilesPlugin.js +0 -44
  105. package/dist/module/mongooseSchemas.js +0 -50
  106. package/dist/module/preload.js +0 -15
  107. package/dist/module/report.html.js +0 -29
  108. package/dist/prebuild/TaskManBackEnd.mjs +0 -170
  109. package/dist/prebuild/TaskManFrontEnd.css +0 -12301
  110. package/dist/prebuild/TaskManFrontEnd.js +0 -81262
  111. package/dist/types/Features.d.ts +0 -35
  112. package/dist/types/Reporter.d.ts +0 -1
  113. package/dist/types/Scheduler.d.ts +0 -0
  114. package/dist/types/TaskManBackEnd.d.ts +0 -3
  115. package/dist/types/mongooseSchemas.d.ts +0 -124
  116. package/dist/types/preload.d.ts +0 -0
  117. package/dist/types/report.html.d.ts +0 -2
  118. package/src/ExampleTab.tsx +0 -219
  119. package/src/Features.ts +0 -64
  120. package/src/Reporter.ts +0 -126
  121. package/src/Scheduler.ts +0 -0
  122. package/src/TaskManBackEnd.ts +0 -226
  123. package/src/TaskManFrontEnd.tsx +0 -1254
  124. package/src/mongooseSchemas.ts +0 -105
  125. package/src/preload.ts +0 -17
  126. package/src/report.html.ts +0 -29
  127. package/tests/Rectangle.test.ts +0 -189
  128. package/trash/TaskMan.Dockerfile +0 -23
  129. package/trash/TaskMan1.Dockerfile +0 -43
  130. package/trash/devBot.dockerfile +0 -12
  131. package/trash/docker-compose-dev.yml +0 -9
  132. package/trash/docker-compose-prod.yml +0 -18
  133. package/trash/electronBuild.ts +0 -32
  134. /package/dist/common/{Node.js → src/Node.js} +0 -0
  135. /package/dist/common/{PM → src/PM}/index.js +0 -0
  136. /package/dist/common/{PM → src/PM}/web.js +0 -0
  137. /package/dist/common/{SubPackages → src/SubPackages}/puppeteer.js +0 -0
  138. /package/dist/common/{SubPackages → src/SubPackages}/react/component/node.js +0 -0
  139. /package/dist/common/{SubPackages → src/SubPackages}/react/component/web.js +0 -0
  140. /package/dist/common/{SubPackages → src/SubPackages}/react/jsx/index.js +0 -0
  141. /package/dist/common/{SubPackages → src/SubPackages}/react/jsx/node.js +0 -0
  142. /package/dist/common/{SubPackages → src/SubPackages}/react/jsx/web.js +0 -0
  143. /package/dist/common/{SubPackages → src/SubPackages}/react-dom/component/node.js +0 -0
  144. /package/dist/common/{SubPackages → src/SubPackages}/react-dom/component/web.js +0 -0
  145. /package/dist/common/{SubPackages → src/SubPackages}/react-dom/jsx/index.js +0 -0
  146. /package/dist/common/{SubPackages → src/SubPackages}/react-dom/jsx/node.js +0 -0
  147. /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/MemoExoticComponent/node.js +0 -0
  148. /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/component/index.js +0 -0
  149. /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/component/interface.js +0 -0
  150. /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/component/node.js +0 -0
  151. /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/component/web.js +0 -0
  152. /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/fc/node.js +0 -0
  153. /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/fc/web.js +0 -0
  154. /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/jsx/node.js +0 -0
  155. /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/jsx/web.js +0 -0
  156. /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/jsx-promised/index.js +0 -0
  157. /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/jsx-promised/node.js +0 -0
  158. /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/jsx-promised/web.js +0 -0
  159. /package/dist/common/{Types.js → src/Types.js} +0 -0
  160. /package/dist/common/{Web.js → src/Web.js} +0 -0
  161. /package/dist/common/{esbuildConfigs → src/esbuildConfigs}/features.js +0 -0
  162. /package/dist/common/{esbuildConfigs → src/esbuildConfigs}/index.js +0 -0
  163. /package/dist/common/{esbuildConfigs → src/esbuildConfigs}/report.js +0 -0
  164. /package/dist/common/{esbuildConfigs → src/esbuildConfigs}/tests.js +0 -0
  165. /package/dist/common/{lib → src/lib}/classBuilder.js +0 -0
  166. /package/dist/common/{lib → src/lib}/index.js +0 -0
  167. /package/dist/common/{lib → src/lib}/types.js +0 -0
  168. /package/dist/common/{puppeteerConfiger.js → src/puppeteerConfiger.js} +0 -0
  169. /package/dist/common/{utils.js → src/utils.js} +0 -0
  170. /package/dist/common/{web.html.js → src/web.html.js} +0 -0
  171. /package/dist/module/{Node.js → src/Node.js} +0 -0
  172. /package/dist/module/{PM → src/PM}/index.js +0 -0
  173. /package/dist/module/{PM → src/PM}/web.js +0 -0
  174. /package/dist/module/{SubPackages → src/SubPackages}/puppeteer.js +0 -0
  175. /package/dist/module/{SubPackages → src/SubPackages}/react/component/node.js +0 -0
  176. /package/dist/module/{SubPackages → src/SubPackages}/react/component/web.js +0 -0
  177. /package/dist/module/{SubPackages → src/SubPackages}/react/jsx/index.js +0 -0
  178. /package/dist/module/{SubPackages → src/SubPackages}/react/jsx/node.js +0 -0
  179. /package/dist/module/{SubPackages → src/SubPackages}/react/jsx/web.js +0 -0
  180. /package/dist/module/{SubPackages → src/SubPackages}/react-dom/component/node.js +0 -0
  181. /package/dist/module/{SubPackages → src/SubPackages}/react-dom/component/web.js +0 -0
  182. /package/dist/module/{SubPackages → src/SubPackages}/react-dom/jsx/index.js +0 -0
  183. /package/dist/module/{SubPackages → src/SubPackages}/react-dom/jsx/node.js +0 -0
  184. /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/MemoExoticComponent/node.js +0 -0
  185. /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/component/index.js +0 -0
  186. /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/component/interface.js +0 -0
  187. /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/component/node.js +0 -0
  188. /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/component/web.js +0 -0
  189. /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/fc/node.js +0 -0
  190. /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/fc/web.js +0 -0
  191. /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/jsx/node.js +0 -0
  192. /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/jsx/web.js +0 -0
  193. /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/jsx-promised/index.js +0 -0
  194. /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/jsx-promised/node.js +0 -0
  195. /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/jsx-promised/web.js +0 -0
  196. /package/dist/module/{Types.js → src/Types.js} +0 -0
  197. /package/dist/module/{Web.js → src/Web.js} +0 -0
  198. /package/dist/module/{esbuildConfigs → src/esbuildConfigs}/features.js +0 -0
  199. /package/dist/module/{esbuildConfigs → src/esbuildConfigs}/index.js +0 -0
  200. /package/dist/module/{esbuildConfigs → src/esbuildConfigs}/report.js +0 -0
  201. /package/dist/module/{esbuildConfigs → src/esbuildConfigs}/tests.js +0 -0
  202. /package/dist/module/{lib → src/lib}/classBuilder.js +0 -0
  203. /package/dist/module/{lib → src/lib}/index.js +0 -0
  204. /package/dist/module/{lib → src/lib}/types.js +0 -0
  205. /package/dist/module/{puppeteerConfiger.js → src/puppeteerConfiger.js} +0 -0
  206. /package/dist/module/{utils.js → src/utils.js} +0 -0
  207. /package/dist/module/{web.html.js → src/web.html.js} +0 -0
  208. /package/dist/types/{Init.d.ts → src/Init.d.ts} +0 -0
  209. /package/dist/types/{Node.d.ts → src/Node.d.ts} +0 -0
  210. /package/dist/types/{PM → src/PM}/node.d.ts +0 -0
  211. /package/dist/types/{PM → src/PM}/web.d.ts +0 -0
  212. /package/dist/types/{Puppeteer.d.ts → src/Puppeteer.d.ts} +0 -0
  213. /package/dist/types/{SubPackages → src/SubPackages}/puppeteer.d.ts +0 -0
  214. /package/dist/types/{SubPackages → src/SubPackages}/react/component/node.d.ts +0 -0
  215. /package/dist/types/{SubPackages → src/SubPackages}/react/component/web.d.ts +0 -0
  216. /package/dist/types/{SubPackages → src/SubPackages}/react/jsx/index.d.ts +0 -0
  217. /package/dist/types/{SubPackages → src/SubPackages}/react/jsx/node.d.ts +0 -0
  218. /package/dist/types/{SubPackages → src/SubPackages}/react/jsx/web.d.ts +0 -0
  219. /package/dist/types/{SubPackages → src/SubPackages}/react-dom/component/node.d.ts +0 -0
  220. /package/dist/types/{SubPackages → src/SubPackages}/react-dom/component/web.d.ts +0 -0
  221. /package/dist/types/{SubPackages → src/SubPackages}/react-dom/jsx/index.d.ts +0 -0
  222. /package/dist/types/{SubPackages → src/SubPackages}/react-dom/jsx/node.d.ts +0 -0
  223. /package/dist/types/{SubPackages → src/SubPackages}/react-dom/jsx/web.d.ts +0 -0
  224. /package/dist/types/{SubPackages → src/SubPackages}/react-test-renderer/MemoExoticComponent/node.d.ts +0 -0
  225. /package/dist/types/{SubPackages → src/SubPackages}/react-test-renderer/component/index.d.ts +0 -0
  226. /package/dist/types/{SubPackages → src/SubPackages}/react-test-renderer/component/interface.d.ts +0 -0
  227. /package/dist/types/{SubPackages → src/SubPackages}/react-test-renderer/component/node.d.ts +0 -0
  228. /package/dist/types/{SubPackages → src/SubPackages}/react-test-renderer/component/web.d.ts +0 -0
  229. /package/dist/types/{SubPackages → src/SubPackages}/react-test-renderer/fc/node.d.ts +0 -0
  230. /package/dist/types/{SubPackages → src/SubPackages}/react-test-renderer/fc/web.d.ts +0 -0
  231. /package/dist/types/{SubPackages → src/SubPackages}/react-test-renderer/jsx/index.d.ts +0 -0
  232. /package/dist/types/{SubPackages → src/SubPackages}/react-test-renderer/jsx/node.d.ts +0 -0
  233. /package/dist/types/{SubPackages → src/SubPackages}/react-test-renderer/jsx/web.d.ts +0 -0
  234. /package/dist/types/{SubPackages → src/SubPackages}/react-test-renderer/jsx-promised/index.d.ts +0 -0
  235. /package/dist/types/{SubPackages → src/SubPackages}/react-test-renderer/jsx-promised/node.d.ts +0 -0
  236. /package/dist/types/{SubPackages → src/SubPackages}/react-test-renderer/jsx-promised/web.d.ts +0 -0
  237. /package/dist/types/{Web.d.ts → src/Web.d.ts} +0 -0
  238. /package/dist/types/{esbuildConfigs → src/esbuildConfigs}/features.d.ts +0 -0
  239. /package/dist/types/{esbuildConfigs → src/esbuildConfigs}/index.d.ts +0 -0
  240. /package/dist/types/{esbuildConfigs → src/esbuildConfigs}/inputFilesPlugin.d.ts +0 -0
  241. /package/dist/types/{esbuildConfigs → src/esbuildConfigs}/node.d.ts +0 -0
  242. /package/dist/types/{esbuildConfigs → src/esbuildConfigs}/report.d.ts +0 -0
  243. /package/dist/types/{esbuildConfigs → src/esbuildConfigs}/tests.d.ts +0 -0
  244. /package/dist/types/{esbuildConfigs → src/esbuildConfigs}/web.d.ts +0 -0
  245. /package/dist/types/{lib → src/lib}/basebuilder.d.ts +0 -0
  246. /package/dist/types/{lib → src/lib}/classBuilder.d.ts +0 -0
  247. /package/dist/types/{lib → src/lib}/core.d.ts +0 -0
  248. /package/dist/types/{lib → src/lib}/index.d.ts +0 -0
  249. /package/dist/types/{lib → src/lib}/types.d.ts +0 -0
  250. /package/dist/types/{puppeteerConfiger.d.ts → src/puppeteerConfiger.d.ts} +0 -0
  251. /package/dist/types/{utils.d.ts → src/utils.d.ts} +0 -0
  252. /package/dist/types/{web.html.d.ts → src/web.html.d.ts} +0 -0
@@ -1,35 +0,0 @@
1
- import Graph from "graphology/dist/graphology.umd.js";
2
- declare const DirectedGraph: any;
3
- declare abstract class TesterantoGraph {
4
- name: string;
5
- abstract graph: any;
6
- constructor(name: string);
7
- }
8
- export declare class BaseFeature {
9
- name: string;
10
- constructor(name: string);
11
- }
12
- export declare class TesterantoGraphUndirected implements TesterantoGraph {
13
- name: string;
14
- graph: Graph;
15
- constructor(name: string);
16
- connect(a: any, b: any, relation?: string): void;
17
- }
18
- export declare class TesterantoGraphDirected implements TesterantoGraph {
19
- name: string;
20
- graph: Graph;
21
- constructor(name: string);
22
- connect(to: any, from: any, relation?: string): void;
23
- }
24
- export declare class TesterantoGraphDirectedAcyclic implements TesterantoGraph {
25
- name: string;
26
- graph: Graph;
27
- constructor(name: string);
28
- connect(to: any, from: any, relation?: string): void;
29
- }
30
- export declare type IT_FeatureNetwork = {
31
- name: string;
32
- };
33
- export { DirectedGraph };
34
- declare const _default: {};
35
- export default _default;
@@ -1 +0,0 @@
1
- export {};
File without changes
@@ -1,3 +0,0 @@
1
- import { IBaseConfig } from "./lib/types";
2
- declare const _default: (partialConfig: IBaseConfig) => void;
3
- export default _default;
@@ -1,124 +0,0 @@
1
- import mongoose from "mongoose";
2
- export interface IUser {
3
- email: string;
4
- channels: string[];
5
- dmgroups: string[];
6
- }
7
- export declare const userSchema: mongoose.Schema<IUser, mongoose.Model<IUser, any, any, any, mongoose.Document<unknown, any, IUser> & IUser & {
8
- _id: mongoose.Types.ObjectId;
9
- } & {
10
- __v: number;
11
- }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, IUser, mongoose.Document<unknown, {}, mongoose.FlatRecord<IUser>> & mongoose.FlatRecord<IUser> & {
12
- _id: mongoose.Types.ObjectId;
13
- } & {
14
- __v: number;
15
- }>;
16
- export interface IKanban {
17
- title: string;
18
- }
19
- export declare const kanbanSchema: mongoose.Schema<IKanban, mongoose.Model<IKanban, any, any, any, mongoose.Document<unknown, any, IKanban> & IKanban & {
20
- _id: mongoose.Types.ObjectId;
21
- } & {
22
- __v: number;
23
- }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, IKanban, mongoose.Document<unknown, {}, mongoose.FlatRecord<IKanban>> & mongoose.FlatRecord<IKanban> & {
24
- _id: mongoose.Types.ObjectId;
25
- } & {
26
- __v: number;
27
- }>;
28
- export interface IGantt {
29
- name: string;
30
- type: "task" | "milestone" | "project";
31
- start: Date;
32
- end: Date;
33
- }
34
- export declare const ganttSchema: mongoose.Schema<IGantt, mongoose.Model<IGantt, any, any, any, mongoose.Document<unknown, any, IGantt> & IGantt & {
35
- _id: mongoose.Types.ObjectId;
36
- } & {
37
- __v: number;
38
- }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, IGantt, mongoose.Document<unknown, {}, mongoose.FlatRecord<IGantt>> & mongoose.FlatRecord<IGantt> & {
39
- _id: mongoose.Types.ObjectId;
40
- } & {
41
- __v: number;
42
- }>;
43
- export interface IFeature {
44
- title: string;
45
- state: string;
46
- owner: {
47
- type: mongoose.Schema.Types.ObjectId;
48
- required: true;
49
- ref: "User";
50
- };
51
- }
52
- export declare const featuresSchema: mongoose.Schema<IFeature, mongoose.Model<IFeature, any, any, any, mongoose.Document<unknown, any, IFeature> & IFeature & {
53
- _id: mongoose.Types.ObjectId;
54
- } & {
55
- __v: number;
56
- }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, IFeature, mongoose.Document<unknown, {}, mongoose.FlatRecord<IFeature>> & mongoose.FlatRecord<IFeature> & {
57
- _id: mongoose.Types.ObjectId;
58
- } & {
59
- __v: number;
60
- }>;
61
- export declare const channelsFeature: mongoose.Schema<IChatChannel, mongoose.Model<IChatChannel, any, any, any, mongoose.Document<unknown, any, IChatChannel> & IChatChannel & {
62
- _id: mongoose.Types.ObjectId;
63
- } & {
64
- __v: number;
65
- }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, IChatChannel, mongoose.Document<unknown, {}, mongoose.FlatRecord<IChatChannel>> & mongoose.FlatRecord<IChatChannel> & {
66
- _id: mongoose.Types.ObjectId;
67
- } & {
68
- __v: number;
69
- }>;
70
- export declare const chatCatMessageSchema: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
71
- user: mongoose.Types.ObjectId;
72
- room: mongoose.Types.ObjectId;
73
- timestamp: NativeDate;
74
- text?: string | null | undefined;
75
- }, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
76
- user: mongoose.Types.ObjectId;
77
- room: mongoose.Types.ObjectId;
78
- timestamp: NativeDate;
79
- text?: string | null | undefined;
80
- }>> & mongoose.FlatRecord<{
81
- user: mongoose.Types.ObjectId;
82
- room: mongoose.Types.ObjectId;
83
- timestamp: NativeDate;
84
- text?: string | null | undefined;
85
- }> & {
86
- _id: mongoose.Types.ObjectId;
87
- } & {
88
- __v: number;
89
- }>;
90
- export interface IChatChannel {
91
- users: string[];
92
- messages: [{
93
- type: mongoose.Schema.Types.ObjectId;
94
- ref: "Message";
95
- }];
96
- }
97
- export interface IChatCatHuddle {
98
- users: {
99
- type: String;
100
- unique: true;
101
- required: true;
102
- }[];
103
- }
104
- export declare const HuddleSchema: mongoose.Schema<IChatCatHuddle, mongoose.Model<IChatCatHuddle, any, any, any, mongoose.Document<unknown, any, IChatCatHuddle> & IChatCatHuddle & {
105
- _id: mongoose.Types.ObjectId;
106
- } & {
107
- __v: number;
108
- }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, IChatCatHuddle, mongoose.Document<unknown, {}, mongoose.FlatRecord<IChatCatHuddle>> & mongoose.FlatRecord<IChatCatHuddle> & {
109
- _id: mongoose.Types.ObjectId;
110
- } & {
111
- __v: number;
112
- }>;
113
- export interface IChatCatRoom {
114
- name: string;
115
- }
116
- export declare const RoomSchema: mongoose.Schema<IChatCatRoom, mongoose.Model<IChatCatRoom, any, any, any, mongoose.Document<unknown, any, IChatCatRoom> & IChatCatRoom & {
117
- _id: mongoose.Types.ObjectId;
118
- } & {
119
- __v: number;
120
- }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, IChatCatRoom, mongoose.Document<unknown, {}, mongoose.FlatRecord<IChatCatRoom>> & mongoose.FlatRecord<IChatCatRoom> & {
121
- _id: mongoose.Types.ObjectId;
122
- } & {
123
- __v: number;
124
- }>;
File without changes
@@ -1,2 +0,0 @@
1
- declare const _default: () => string;
2
- export default _default;
@@ -1,219 +0,0 @@
1
- import React, { useEffect, useState } from "react";
2
- import Col from 'react-bootstrap/Col';
3
- import Nav from 'react-bootstrap/Nav';
4
- import Row from 'react-bootstrap/Row';
5
- import Tab from 'react-bootstrap/Tab';
6
- import Tabs from 'react-bootstrap/Tabs';
7
-
8
- import 'bootstrap/dist/css/bootstrap.min.css';
9
-
10
- const queryString = window.location.search;
11
-
12
- // Create a URLSearchParams object
13
- const urlParams = new URLSearchParams(queryString);
14
- console.log("urlParams", urlParams.has(
15
- "local"
16
- ))
17
- // Get the value of a specific parameter
18
- const isLocal = urlParams.get("local");
19
-
20
- const urlFixer = (url: string): string => {
21
- if (isLocal) {
22
- return `file:///Users/adam/Code/kokomoBay/${url}`;
23
- } else {
24
- return `https://chromapdx.github.io/kokomoBay/${url}`;
25
- }
26
-
27
- }
28
-
29
- const TextTab = (props: { url: string }) => {
30
-
31
- const [text, setText] = useState('');
32
-
33
- useEffect(() => {
34
- fetch(props.url) // Replace with your API endpoint
35
- .then(response => response.text())
36
- .then(data => setText(data))
37
- .catch(error => console.error('Error fetching text:', error));
38
- }, []);
39
-
40
- return <code><pre>{text}</pre></code>
41
- }
42
-
43
- export default () => {
44
-
45
- return (
46
- <Tab.Container id="left-tabs-example5" defaultActiveKey="examples-0">
47
- <Row>
48
- <Col sm={3} lg={2}>
49
- <Nav variant="pills" className="flex-column">
50
-
51
- <Nav.Link eventKey={`manual-example-rectangle`}>
52
- RECTANGLE
53
- </Nav.Link>
54
-
55
- <Nav.Link eventKey={`manual-example-ClassicalComponent`}>
56
- ClassicalComponent
57
- </Nav.Link>
58
-
59
- <Nav.Link eventKey={`manual-example-react+sol`}>
60
- React and solidity
61
- </Nav.Link>
62
-
63
- </Nav>
64
- </Col>
65
-
66
- <Col sm={3} lg={2}>
67
- <Tab.Content>
68
-
69
- <Tab.Pane eventKey={`manual-example-rectangle`} key={`manual-example-rectangle`}>
70
- <pre>
71
- In this contrived example, we are testing the Rectangle class. Node that because it uses no web-specific, nor node-specific language features, it can be run in either runtime, thought it more efficient and reasonable to test in node.
72
- </pre>
73
- </Tab.Pane>
74
-
75
- <Tab.Pane eventKey={`manual-example-ClassicalComponent`} key={`manual-example-ClassicalComponent`}>
76
- <pre>Testing a react component with the react-test-renderer package.</pre>
77
- </Tab.Pane>
78
-
79
- <Tab.Pane eventKey={`manual-example-react+sol`} key={`manual-example-react+sol`}>
80
- <pre>Testing a react component which is backed by a solidity contract. This test is performed _on_ the server but but _through_ the browser. The react element is renderer into an chromium window and accessed by puppeteer.</pre>
81
- </Tab.Pane>
82
-
83
-
84
- </Tab.Content>
85
- </Col>
86
-
87
-
88
- <Col >
89
- <Tab.Content>
90
-
91
- <Tab.Pane eventKey={`manual-example-rectangle`} key={`manual-example-rectangle`}>
92
-
93
-
94
- <Tabs
95
- defaultActiveKey="profile"
96
- id="uncontrolled-tab-example"
97
- className="mb-3"
98
- >
99
- <Tab eventKey="Rectangle.ts" title="Rectangle.ts">
100
- {/* <TextTab url="file:///Users/adam/Code/kokomoBay/src/Rectangle.ts" /> */}
101
- <TextTab url={urlFixer("src/Rectangle.ts")} />
102
- </Tab>
103
- <Tab eventKey="Rectangle.test.specification.ts" title="Rectangle.test.specification.ts">
104
- {/* <TextTab url="file:///Users/adam/Code/kokomoBay/src/Rectangle.test.specification.ts" /> */}
105
- <TextTab url={urlFixer("src/Rectangle.test.specification.ts")} />
106
- </Tab>
107
- <Tab eventKey="Rectangle.test.shape.ts" title="Rectangle.test.shape.ts">
108
- {/* <TextTab url="file:///Users/adam/Code/kokomoBay/src/Rectangle.test.shape.ts" /> */}
109
- <TextTab url={urlFixer("src/Rectangle.test.shape.ts")} />
110
- </Tab>
111
- <Tab eventKey="Rectangle.test.implementation.ts" title="Rectangle.test.implementation.ts">
112
- {/* <TextTab url="file:///Users/adam/Code/kokomoBay/src/Rectangle.test.implementation.ts" /> */}
113
- <TextTab url={urlFixer("src/Rectangle.test.implementation.ts")} />
114
- </Tab>
115
-
116
- <Tab eventKey="Rectangle.test.interface.ts" title="Rectangle.test.interface.ts">
117
- {/* <TextTab url="file:///Users/adam/Code/kokomoBay/src/Rectangle.test.interface.ts" /> */}
118
- <TextTab url={urlFixer("src/Rectangle.test.interface.ts")} />
119
- </Tab>
120
- <Tab eventKey="Rectangle.config" title="Rectangle.config">
121
- <code><pre>{`
122
- ...
123
-
124
- // Run the test in node
125
- "./src/Rectangle/Rectangle.test.node.ts",
126
- "node",
127
- { ports: 0 },
128
- [],
129
- ],
130
-
131
- // Run the same test in chromium too!
132
- "./src/Rectangle/Rectangle.test.web.ts",
133
- "web",
134
- { ports: 0 },
135
- [],
136
- ],
137
-
138
- ...
139
- `}</pre></code>
140
- </Tab>
141
- </Tabs>
142
- </Tab.Pane>
143
-
144
- <Tab.Pane eventKey={`manual-example-ClassicalComponent`} key={`manual-example-ClassicalComponent`}>
145
- <Tabs
146
- defaultActiveKey="profile"
147
- id="uncontrolled-tab-example"
148
- className="mb-3"
149
- >
150
- <Tab eventKey="ClassicalComponent/index.tsx" title="ClassicalComponent/index.tsx">
151
- <TextTab url={urlFixer("src/ClassicalComponent/index.tsx")} />
152
- {/* <TextTab url="file:///Users/adam/Code/kokomoBay/src/ClassicalComponent/index.tsx" /> */}
153
- </Tab>
154
- <Tab eventKey="ClassicalComponent/test.specification.ts" title="ClassicalComponent/test.specification.ts">
155
- {/* <TextTab url="file:///Users/adam/Code/kokomoBay/src/ClassicalComponent/test.specification.ts" /> */}
156
- <TextTab url={urlFixer("src/ClassicalComponent/test.specification.ts")} />
157
- </Tab>
158
- <Tab eventKey="ClassicalComponent/test.shape.ts" title="ClassicalComponent/test.shape.ts">
159
- {/* <TextTab url="file:///Users/adam/Code/kokomoBay/src/ClassicalComponent/test.shape.ts" /> */}
160
- <TextTab url={urlFixer("src/ClassicalComponent/test.shape.ts")} />
161
- </Tab>
162
- <Tab eventKey="ClassicalComponent/react-test-renderer/test.implementation.ts" title="ClassicalComponent/react-test-renderer/test.implementation.ts">
163
- {/* <TextTab url="file:///Users/adam/Code/kokomoBay/src/ClassicalComponent/react-test-renderer/test.implementation.ts" /> */}
164
- <TextTab url={urlFixer("src/ClassicalComponent/react-test-renderer/test.implementation.ts")} />
165
- </Tab>
166
-
167
- <Tab eventKey="react-test-renderer/test.interface.ts" title="react-test-renderer/test.interface.ts">
168
- <TextTab url="https://raw.githubusercontent.com/adamwong246/testeranto/master/src/subPackages/react-test-renderer/component/interface.ts" />
169
- </Tab>
170
-
171
- </Tabs>
172
-
173
- </Tab.Pane>
174
- <Tab.Pane eventKey={`manual-example-react+sol`} key={`manual-example-react+sol`}>
175
-
176
-
177
- <Tabs
178
- defaultActiveKey="profile"
179
- id="uncontrolled-tab-example"
180
- className="mb-3"
181
- >
182
- <Tab eventKey="contracts/MyBaseContract.sol" title="MyBaseContract.sol">
183
- <TextTab url={urlFixer("contracts/MyBaseContract.sol")} />
184
- </Tab>
185
- <Tab eventKey="src/MyFirstContractUI.tsx" title="MyFirstContractUI.tsx">
186
- <TextTab url={urlFixer("src/MyFirstContractUI.tsx")} />
187
- </Tab>
188
-
189
- <Tab eventKey="src/MyFirstContract.specification.test.ts" title="MyFirstContract.specification.test.ts">
190
- <TextTab url={urlFixer("src/MyFirstContract.specification.test.ts")} />
191
- </Tab>
192
- <Tab eventKey="src/MyFirstContract.solidity-react.interface.test.ts" title="MyFirstContract.solidity-react.interface.test.ts">
193
- <TextTab url={urlFixer("src/MyFirstContract.solidity-react.interface.test.ts")} />
194
-
195
- </Tab>
196
- <Tab eventKey="src/MyFirstContract.solidity-react.implementation.test.ts" title="MyFirstContract.solidity-react.implementation.test.ts">
197
- <TextTab url={urlFixer("src/MyFirstContract.solidity-react.implementation.test.ts")} />
198
- </Tab>
199
- <Tab eventKey="src/MyFirstContract.solidity-react.shape.test.ts" title="MyFirstContract.solidity-react.shape.test.ts">
200
- <TextTab url={urlFixer("src/MyFirstContract.solidity-react.shape.test.ts")} />
201
- </Tab>
202
-
203
- <Tab eventKey="MyFirstContract.solidity-react-example-jpg" title="screenshot">
204
-
205
- <img src={urlFixer("docs/node/src/MyFirstContract.solidity-react.testeranto/suite-0/given-test1/when/0/afterEach/andWhen.jpg")} />
206
- </Tab>
207
-
208
-
209
- </Tabs>
210
-
211
- </Tab.Pane>
212
- </Tab.Content>
213
- </Col>
214
-
215
-
216
- </Row>
217
- </Tab.Container>
218
- );
219
- };
package/src/Features.ts DELETED
@@ -1,64 +0,0 @@
1
- import Graph from "graphology/dist/graphology.umd.js";
2
-
3
- const { DirectedGraph, UndirectedGraph } = Graph;
4
-
5
- abstract class TesterantoGraph {
6
- name: string;
7
- abstract graph;
8
-
9
- constructor(name: string) {
10
- this.name = name;
11
- }
12
- }
13
-
14
- export class BaseFeature {
15
- name: string;
16
- constructor(name: string) {
17
- this.name = name;
18
- }
19
- }
20
-
21
- export class TesterantoGraphUndirected implements TesterantoGraph {
22
- name: string;
23
- graph: Graph;
24
- constructor(name: string) {
25
- this.name = name;
26
- this.graph = new UndirectedGraph();
27
- }
28
- connect(a, b, relation?: string) {
29
- this.graph.mergeEdge(a, b, { type: relation });
30
- }
31
- }
32
-
33
- export class TesterantoGraphDirected implements TesterantoGraph {
34
- name: string;
35
- graph: Graph;
36
- constructor(name: string) {
37
- this.name = name;
38
- this.graph = new DirectedGraph();
39
- }
40
- connect(to, from, relation?: string) {
41
- this.graph.mergeEdge(to, from, { type: relation });
42
- }
43
- }
44
-
45
- export class TesterantoGraphDirectedAcyclic implements TesterantoGraph {
46
- name: string;
47
- graph: Graph;
48
- constructor(name: string) {
49
- this.name = name;
50
- this.graph = new DirectedGraph();
51
- }
52
- connect(to, from, relation?: string) {
53
- this.graph.mergeEdge(to, from, { type: relation });
54
- }
55
- }
56
-
57
- export type IT_FeatureNetwork = {
58
- name: string;
59
- // graph: DirectedGraph
60
- };
61
-
62
- export { DirectedGraph };
63
-
64
- export default {};
package/src/Reporter.ts DELETED
@@ -1,126 +0,0 @@
1
- import readline from "readline";
2
- import fs from "fs";
3
- import { jsonc } from "jsonc";
4
- import puppeteer from "puppeteer-core";
5
-
6
- import { IBuiltConfig, IRunTime } from "./lib/types";
7
-
8
- // import { PM_Main } from "./PM/main.js";
9
-
10
- // var mode: "DEV" | "PROD" = process.argv[2] === "-dev" ? "DEV" : "PROD";
11
-
12
- // const node2web: Record<string, string[]> = {};
13
- // const web2node: Record<string, string[]> = {};
14
- // const childProcesses: Record<string, "loaded" | "running" | "done"> = {};
15
-
16
- readline.emitKeypressEvents(process.stdin);
17
- if (process.stdin.isTTY) process.stdin.setRawMode(true);
18
-
19
- console.log("\n Puppeteer is running. Press 'q' to quit\n");
20
- process.stdin.on("keypress", (str, key) => {
21
- if (key.name === "q") {
22
- process.exit();
23
- }
24
- });
25
-
26
- const main = async () => {
27
- const configs = jsonc.parse(
28
- (await fs.readFileSync("./docs/testeranto.json")).toString()
29
- ) as IBuiltConfig;
30
-
31
- // const pm = new PM_Main(configs);
32
-
33
- // await puppeteer.launch(options);
34
- const browser = await puppeteer.launch(
35
- {
36
- waitForInitialPage: false,
37
- executablePath: "/opt/homebrew/bin/chromium",
38
- headless: false,
39
- args: [
40
- "--allow-file-access-from-files",
41
- "--allow-running-insecure-content",
42
- // "--auto-open-devtools-for-tabs",
43
- "--disable-dev-shm-usage",
44
- "--disable-extensions",
45
- "--disable-gpu",
46
- "--disable-setuid-sandbox",
47
- "--disable-site-isolation-trials",
48
- "--disable-web-security",
49
- "--disable-web-security",
50
- "--no-first-run",
51
- "--no-sandbox",
52
- "--no-startup-window",
53
- "--no-zygote",
54
- "--reduce-security-for-testing",
55
- "--remote-allow-origins=*",
56
- // "--remote-allow-origins=ws://localhost:3234",
57
- "--unsafely-treat-insecure-origin-as-secure=*",
58
- // "--disable-features=IsolateOrigins",
59
- // "--single-process",
60
- // "--unsafely-treat-insecure-origin-as-secure",
61
- // "--unsafely-treat-insecure-origin-as-secure=ws://192.168.0.101:3234",
62
- // `--remote-debugging-port=3234`,
63
- ],
64
- }
65
- // "."
66
- );
67
-
68
- console.log("Creating new page...");
69
- const page = await browser.newPage();
70
-
71
- await page.setViewport({ width: 0, height: 0 });
72
-
73
- console.log("Requesting url...");
74
- await page.goto(`file://${process.cwd()}/docs/report.html?local=true`);
75
-
76
- // configs.tests.forEach(([test, runtime, secondaryArtifacts]) => {
77
- // if (runtime === "node") {
78
- // pm.launchNode(test, destinationOfRuntime(test, "node"));
79
- // } else if (runtime === "web") {
80
- // pm.launchWeb(test, destinationOfRuntime(test, "web"));
81
- // } else {
82
- // console.error("runtime makes no sense", runtime);
83
- // }
84
- // });
85
-
86
- // console.log("ready and watching for changes...", configs.buildDir);
87
- // fs.watch(
88
- // configs.buildDir,
89
- // {
90
- // recursive: true,
91
- // },
92
- // (eventType, changedFile) => {
93
- // if (changedFile) {
94
- // configs.tests.forEach(([test, runtime, secondaryArtifacts]) => {
95
- // if (eventType === "change" || eventType === "rename") {
96
- // if (
97
- // changedFile ===
98
- // test
99
- // .replace("./", "node/")
100
- // .split(".")
101
- // .slice(0, -1)
102
- // .concat("mjs")
103
- // .join(".")
104
- // ) {
105
- // pm.launchNode(test, destinationOfRuntime(test, "node"));
106
- // }
107
-
108
- // if (
109
- // changedFile ===
110
- // test
111
- // .replace("./", "web/")
112
- // .split(".")
113
- // .slice(0, -1)
114
- // .concat("mjs")
115
- // .join(".")
116
- // ) {
117
- // pm.launchWeb(test, destinationOfRuntime(test, "web"));
118
- // }
119
- // }
120
- // });
121
- // }
122
- // }
123
- // );
124
- };
125
-
126
- main();
package/src/Scheduler.ts DELETED
File without changes