testeranto 0.135.0 → 0.140.1

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 (187) hide show
  1. package/.aider.chat.history.md +13976 -0
  2. package/.aider.input.history +530 -0
  3. package/.aider.tags.cache.v3/{d8/b0/a8966fcd65890fd9f70d7afe8141.val → bd/91/b71f967fd074cf4b757081b429b7.val} +0 -0
  4. package/.aider.tags.cache.v3/cache.db +0 -0
  5. package/.aider.tags.cache.v3/{8e/ec/2d4659a1589a0187a757ab1cbefa.val → fb/96/b0f91c7e75e08fc5a6907633cf99.val} +0 -0
  6. package/README.md +29 -135
  7. package/bundle.js +1 -1
  8. package/dist/common/src/Init.js +4 -1
  9. package/dist/common/src/Node.js +1 -1
  10. package/dist/common/src/PM/__tests__/nodeSidecar.testeranto.js +2 -2
  11. package/dist/common/src/Web.js +2 -2
  12. package/dist/common/src/build.js +7 -73
  13. package/dist/common/src/defaultConfig.js +0 -1
  14. package/dist/common/src/lib/abstractBase.js +2 -0
  15. package/dist/common/src/lib/basebuilder.js +4 -0
  16. package/dist/common/src/lib/core.js +2 -0
  17. package/dist/common/src/run.js +1 -1
  18. package/dist/common/src/utils/buildTemplates.js +88 -0
  19. package/dist/common/tsconfig.common.tsbuildinfo +1 -1
  20. package/dist/module/src/Init.js +4 -1
  21. package/dist/module/src/Node.js +1 -1
  22. package/dist/module/src/PM/__tests__/nodeSidecar.testeranto.js +2 -2
  23. package/dist/module/src/Project.js +41 -47
  24. package/dist/module/src/TestReport.js +34 -31
  25. package/dist/module/src/Web.js +2 -2
  26. package/dist/module/src/build.js +7 -73
  27. package/dist/module/src/defaultConfig.js +0 -1
  28. package/dist/module/src/lib/abstractBase.js +2 -0
  29. package/dist/module/src/lib/basebuilder.js +4 -0
  30. package/dist/module/src/lib/core.js +2 -0
  31. package/dist/module/src/run.js +1 -1
  32. package/dist/module/src/utils/buildTemplates.js +82 -0
  33. package/dist/module/tsconfig.module.tsbuildinfo +1 -1
  34. package/dist/prebuild/Project.js +62 -13
  35. package/dist/prebuild/TestReport.js +39 -18
  36. package/dist/prebuild/build.mjs +96 -73
  37. package/dist/prebuild/init-docs.mjs +0 -4
  38. package/dist/tsconfig.tsbuildinfo +1 -0
  39. package/dist/types/src/CoreTypes.d.ts +5 -3
  40. package/dist/types/src/Node.d.ts +3 -3
  41. package/dist/types/src/PM/__tests__/nodeSidecar.testeranto.d.ts +17 -1
  42. package/dist/types/src/PM/__tests__/pureSidecar.testeranto.d.ts +17 -1
  43. package/dist/types/src/PM/__tests__/webSidecar.testeranto.d.ts +17 -1
  44. package/dist/types/src/PM/nodeSidecar.d.ts +2 -2
  45. package/dist/types/src/Pure.d.ts +3 -3
  46. package/dist/types/src/Types.d.ts +18 -14
  47. package/dist/types/src/Web.d.ts +3 -3
  48. package/dist/types/src/lib/abstractBase.d.ts +8 -8
  49. package/dist/types/src/lib/basebuilder.d.ts +3 -3
  50. package/dist/types/src/lib/classBuilder.d.ts +2 -2
  51. package/dist/types/src/lib/core.d.ts +2 -2
  52. package/dist/types/src/lib/index.d.ts +7 -6
  53. package/dist/types/src/lib/types.d.ts +8 -8
  54. package/dist/types/src/mothership/test.d.ts +20 -1
  55. package/dist/types/src/utils/buildTemplates.d.ts +3 -0
  56. package/dist/types/tsconfig.types.tsbuildinfo +1 -1
  57. package/docs/index.md +344 -54
  58. package/docs/style.md +116 -0
  59. package/docs.html +537 -0
  60. package/example.css +351 -0
  61. package/fonts/M_PLUS_Rounded_1c/MPLUSRounded1c-Black.ttf +0 -0
  62. package/fonts/M_PLUS_Rounded_1c/MPLUSRounded1c-Bold.ttf +0 -0
  63. package/fonts/M_PLUS_Rounded_1c/MPLUSRounded1c-ExtraBold.ttf +0 -0
  64. package/fonts/M_PLUS_Rounded_1c/MPLUSRounded1c-Light.ttf +0 -0
  65. package/fonts/M_PLUS_Rounded_1c/MPLUSRounded1c-Medium.ttf +0 -0
  66. package/fonts/M_PLUS_Rounded_1c/MPLUSRounded1c-Regular.ttf +0 -0
  67. package/fonts/M_PLUS_Rounded_1c/MPLUSRounded1c-Thin.ttf +0 -0
  68. package/fonts/M_PLUS_Rounded_1c/OFL.txt +91 -0
  69. package/index.html +246 -24
  70. package/logo.svg +72 -0
  71. package/package.json +6 -2
  72. package/scripts/compile-docs.js +89 -0
  73. package/src/CoreTypes.ts +24 -43
  74. package/src/Init.ts +4 -4
  75. package/src/Node.ts +6 -20
  76. package/src/PM/__tests__/nodeSidecar.testeranto.ts +13 -20
  77. package/src/PM/__tests__/pureSidecar.testeranto.ts +8 -15
  78. package/src/PM/__tests__/webSidecar.testeranto.ts +8 -15
  79. package/src/PM/nodeSidecar.ts +2 -2
  80. package/src/PM/pure.ts +0 -4
  81. package/src/Project.tsx +289 -292
  82. package/src/Pure.ts +13 -14
  83. package/src/PureSidecar.ts +1 -0
  84. package/src/TestReport.tsx +179 -165
  85. package/src/Types.ts +29 -144
  86. package/src/Web.ts +15 -11
  87. package/src/build.ts +22 -73
  88. package/src/defaultConfig.ts +2 -1
  89. package/src/lib/BaseSuite.test.ts +457 -0
  90. package/src/lib/BaseSuite.ts +155 -0
  91. package/src/lib/abstractBase.ts +7 -162
  92. package/src/lib/basebuilder.ts +11 -11
  93. package/src/lib/classBuilder.ts +8 -3
  94. package/src/lib/core.ts +12 -12
  95. package/src/lib/index.ts +21 -24
  96. package/src/lib/types.ts +23 -9
  97. package/src/mothership/test.ts +13 -10
  98. package/src/run.ts +1 -1
  99. package/src/style.css +1 -1
  100. package/src/utils/buildTemplates.ts +88 -0
  101. package/style.css +496 -0
  102. package/testeranto/bundles/node/{mothership/chunk-V2EQEXU2.mjs → allTests/chunk-4PJCC2XT.mjs} +66 -59
  103. package/testeranto/bundles/node/allTests/metafile.json +4151 -0
  104. package/testeranto/bundles/node/allTests/src/PM/__tests__/nodeSidecar.testeranto.mjs +187 -0
  105. package/testeranto/bundles/node/{mothership → allTests}/src/PM/__tests__/pureSidecar.testeranto.mjs +1 -1
  106. package/testeranto/bundles/node/{mothership → allTests}/src/PM/__tests__/webSidecar.testeranto.mjs +1 -1
  107. package/testeranto/bundles/node/allTests/src/lib/BaseSuite.test.mjs +305 -0
  108. package/testeranto/bundles/node/{mothership → allTests}/src/mothership/test.mjs +1 -1
  109. package/testeranto/dev.html +29 -0
  110. package/testeranto/index.html +28 -27
  111. package/testeranto/reports/allTests/config.json +57 -0
  112. package/testeranto/reports/{mothership/index.html → allTests/dev.html} +2 -0
  113. package/testeranto/reports/allTests/index.html +26 -0
  114. package/testeranto/reports/{mothership/src/PM/__tests__/sidecar.testeranto/node/index.html → allTests/src/PM/__tests__/nodeSidecar.testeranto/node/dev.html} +4 -3
  115. package/testeranto/reports/allTests/src/PM/__tests__/nodeSidecar.testeranto/node/index.html +21 -0
  116. package/testeranto/reports/allTests/src/PM/__tests__/nodeSidecar.testeranto/node/lint_errors.json +80 -0
  117. package/testeranto/reports/allTests/src/PM/__tests__/nodeSidecar.testeranto/node/message +1 -0
  118. package/testeranto/reports/allTests/src/PM/__tests__/nodeSidecar.testeranto/node/prompt.txt +8 -0
  119. package/testeranto/reports/allTests/src/PM/__tests__/nodeSidecar.testeranto/node/type_errors.txt +28 -0
  120. package/testeranto/reports/{mothership/src/PM/__tests__/webSidecar.testeranto/node/index.html → allTests/src/PM/__tests__/pureSidecar.testeranto/node/dev.html} +4 -3
  121. package/testeranto/reports/allTests/src/PM/__tests__/pureSidecar.testeranto/node/index.html +21 -0
  122. package/testeranto/reports/{mothership → allTests}/src/PM/__tests__/pureSidecar.testeranto/node/lint_errors.json +12 -12
  123. package/testeranto/reports/allTests/src/PM/__tests__/pureSidecar.testeranto/node/message +1 -0
  124. package/testeranto/reports/allTests/src/PM/__tests__/pureSidecar.testeranto/node/prompt.txt +8 -0
  125. package/testeranto/reports/allTests/src/PM/__tests__/pureSidecar.testeranto/node/type_errors.txt +32 -0
  126. package/testeranto/reports/{mothership/src/PM/__tests__/nodeSidecar.testeranto/node/index.html → allTests/src/PM/__tests__/webSidecar.testeranto/node/dev.html} +4 -3
  127. package/testeranto/reports/allTests/src/PM/__tests__/webSidecar.testeranto/node/index.html +21 -0
  128. package/testeranto/reports/{mothership → allTests}/src/PM/__tests__/webSidecar.testeranto/node/lint_errors.json +12 -12
  129. package/testeranto/reports/allTests/src/PM/__tests__/webSidecar.testeranto/node/message +1 -0
  130. package/testeranto/reports/allTests/src/PM/__tests__/webSidecar.testeranto/node/prompt.txt +8 -0
  131. package/testeranto/reports/allTests/src/PM/__tests__/webSidecar.testeranto/node/type_errors.txt +32 -0
  132. package/testeranto/reports/allTests/src/lib/BaseSuite.test/node/console_log.txt +35 -0
  133. package/testeranto/reports/{mothership/src/PM/__tests__/pureSidecar.testeranto/node/index.html → allTests/src/lib/BaseSuite.test/node/dev.html} +4 -3
  134. package/testeranto/reports/allTests/src/lib/BaseSuite.test/node/index.html +21 -0
  135. package/testeranto/reports/allTests/src/lib/BaseSuite.test/node/lint_errors.json +608 -0
  136. package/testeranto/reports/allTests/src/lib/BaseSuite.test/node/message +1 -0
  137. package/testeranto/reports/allTests/src/lib/BaseSuite.test/node/prompt.txt +7 -0
  138. package/testeranto/reports/allTests/src/lib/BaseSuite.test/node/type_errors.txt +68 -0
  139. package/testeranto/reports/allTests/src/mothership/test/node/dev.html +21 -0
  140. package/testeranto/reports/allTests/src/mothership/test/node/index.html +21 -0
  141. package/testeranto/reports/allTests/src/mothership/test/node/message +1 -0
  142. package/testeranto/reports/allTests/src/mothership/test/node/prompt.txt +8 -0
  143. package/testeranto/reports/allTests/src/mothership/test/node/type_errors.txt +24 -0
  144. package/testeranto/reports/allTests/summary.json +37 -0
  145. package/testeranto.config.ts +16 -26
  146. package/tsc.log +66 -69
  147. package/dist/common/src/SP__Polygon.test.js +0 -10
  148. package/dist/module/src/ReportClient.js +0 -132
  149. package/dist/module/src/SP__Polygon.test.js +0 -8
  150. package/dist/prebuild/ReportClient.js +0 -3
  151. package/dist/types/src/SP__Polygon.test.d.ts +0 -1
  152. package/src/ReportClient.tsx +0 -164
  153. package/src/SP__Polygon.test.ts +0 -13
  154. package/testeranto/ReportClient.css +0 -11367
  155. package/testeranto/ReportClient.js +0 -24641
  156. package/testeranto/bundles/node/mothership/metafile.json +0 -389
  157. package/testeranto/bundles/node/mothership/src/PM/__tests__/nodeSidecar.testeranto.mjs +0 -1219
  158. package/testeranto/bundles/node/mothership/src/PM/__tests__/sidecar.testeranto.mjs +0 -1199
  159. package/testeranto/reports/mothership/config.json +0 -25
  160. package/testeranto/reports/mothership/src/PM/__tests__/nodeSidecar.testeranto/node/console_log.txt +0 -0
  161. package/testeranto/reports/mothership/src/PM/__tests__/nodeSidecar.testeranto/node/lint_errors.json +0 -1564
  162. package/testeranto/reports/mothership/src/PM/__tests__/nodeSidecar.testeranto/node/prompt.txt +0 -22
  163. package/testeranto/reports/mothership/src/PM/__tests__/nodeSidecar.testeranto/node/type_errors.txt +0 -35
  164. package/testeranto/reports/mothership/src/PM/__tests__/pureSidecar.testeranto/node/prompt.txt +0 -12
  165. package/testeranto/reports/mothership/src/PM/__tests__/pureSidecar.testeranto/node/type_errors.txt +0 -26
  166. package/testeranto/reports/mothership/src/PM/__tests__/sidecar.testeranto/node/bdd_errors.txt +0 -1
  167. package/testeranto/reports/mothership/src/PM/__tests__/sidecar.testeranto/node/console_log.txt +0 -0
  168. package/testeranto/reports/mothership/src/PM/__tests__/sidecar.testeranto/node/lint_errors.json +0 -1564
  169. package/testeranto/reports/mothership/src/PM/__tests__/sidecar.testeranto/node/log.txt +0 -0
  170. package/testeranto/reports/mothership/src/PM/__tests__/sidecar.testeranto/node/prompt.txt +0 -22
  171. package/testeranto/reports/mothership/src/PM/__tests__/sidecar.testeranto/node/tests.json +0 -56
  172. package/testeranto/reports/mothership/src/PM/__tests__/sidecar.testeranto/node/type_errors.txt +0 -29
  173. package/testeranto/reports/mothership/src/PM/__tests__/webSidecar.testeranto/node/prompt.txt +0 -12
  174. package/testeranto/reports/mothership/src/PM/__tests__/webSidecar.testeranto/node/type_errors.txt +0 -26
  175. package/testeranto/reports/mothership/src/mothership/test/node/bdd_errors.txt +0 -1
  176. package/testeranto/reports/mothership/src/mothership/test/node/console_log.txt +0 -4
  177. package/testeranto/reports/mothership/src/mothership/test/node/index.html +0 -20
  178. package/testeranto/reports/mothership/src/mothership/test/node/log.txt +0 -0
  179. package/testeranto/reports/mothership/src/mothership/test/node/prompt.txt +0 -12
  180. package/testeranto/reports/mothership/src/mothership/test/node/tests.json +0 -24
  181. package/testeranto/reports/mothership/src/mothership/test/node/type_errors.txt +0 -18
  182. package/testeranto/reports/mothership/summary.json +0 -9
  183. /package/testeranto/bundles/node/{mothership → allTests}/chunk-PG6KUKNP.mjs +0 -0
  184. /package/testeranto/bundles/pure/{mothership → allTests}/metafile.json +0 -0
  185. /package/testeranto/bundles/web/{mothership → allTests}/metafile.json +0 -0
  186. /package/testeranto/reports/{mothership/src/PM/__tests__/nodeSidecar.testeranto → allTests/src/lib/BaseSuite.test}/node/log.txt +0 -0
  187. /package/testeranto/reports/{mothership → allTests}/src/mothership/test/node/lint_errors.json +0 -0
package/src/Types.ts CHANGED
@@ -8,29 +8,26 @@ import {
8
8
  BaseThen,
9
9
  BaseGiven,
10
10
  BaseCheck,
11
- BaseSuite,
12
11
  IGivens,
13
12
  } from "./lib/abstractBase.js";
14
13
 
15
- import { Ibdd_in, Ibdd_out } from "./CoreTypes.js";
14
+ import { Ibdd_in_any, Ibdd_out_any } from "./CoreTypes.js";
15
+ import { BaseSuite } from "./lib/BaseSuite.js";
16
+
17
+ export type ISummary = Record<
18
+ string,
19
+ {
20
+ runTimeError: string;
21
+ typeErrors: number;
22
+ staticErrors: number;
23
+ prompt: string;
24
+ failingFeatures: object;
25
+ }
26
+ >;
16
27
 
17
28
  export type SuiteSpecification<
18
- I extends Ibdd_in<
19
- unknown,
20
- unknown,
21
- unknown,
22
- unknown,
23
- unknown,
24
- unknown,
25
- unknown
26
- >,
27
- O extends Ibdd_out<
28
- TestSuiteShape,
29
- TestGivenShape,
30
- TestWhenShape,
31
- TestThenShape,
32
- TestCheckShape
33
- >
29
+ I extends Ibdd_in_any,
30
+ O extends Ibdd_out_any
34
31
  > = {
35
32
  [K in keyof O["suites"]]: (
36
33
  name: string,
@@ -109,22 +106,8 @@ export type ProjectConfig = {
109
106
  };
110
107
 
111
108
  export type GivenSpecification<
112
- I extends Ibdd_in<
113
- unknown,
114
- unknown,
115
- unknown,
116
- unknown,
117
- unknown,
118
- unknown,
119
- unknown
120
- >,
121
- O extends Ibdd_out<
122
- TestSuiteShape,
123
- TestGivenShape,
124
- TestWhenShape,
125
- TestThenShape,
126
- TestCheckShape
127
- >
109
+ I extends Ibdd_in_any,
110
+ O extends Ibdd_out_any
128
111
  > = {
129
112
  [K in keyof O["givens"]]: (
130
113
  features: string[],
@@ -134,101 +117,31 @@ export type GivenSpecification<
134
117
  ) => BaseGiven<I>;
135
118
  };
136
119
 
137
- export type WhenSpecification<
138
- I extends Ibdd_in<
139
- unknown,
140
- unknown,
141
- unknown,
142
- unknown,
143
- unknown,
144
- unknown,
145
- unknown
146
- >,
147
- O extends Ibdd_out<
148
- TestSuiteShape,
149
- TestGivenShape,
150
- TestWhenShape,
151
- TestThenShape,
152
- TestCheckShape
153
- >
154
- > = {
120
+ export type WhenSpecification<I extends Ibdd_in_any, O extends Ibdd_out_any> = {
155
121
  [K in keyof O["whens"]]: (...xtrasC: O["whens"][K]) => BaseWhen<I>;
156
122
  };
157
123
 
158
- export type ThenSpecification<
159
- I extends Ibdd_in<
160
- unknown,
161
- unknown,
162
- unknown,
163
- unknown,
164
- unknown,
165
- unknown,
166
- unknown
167
- >,
168
- O extends Ibdd_out<
169
- TestSuiteShape,
170
- TestGivenShape,
171
- TestWhenShape,
172
- TestThenShape,
173
- TestCheckShape
174
- >
175
- > = {
124
+ export type ThenSpecification<I extends Ibdd_in_any, O extends Ibdd_out_any> = {
176
125
  [K in keyof O["thens"]]: (...xtrasD: O["thens"][K]) => BaseThen<I>;
177
126
  };
178
127
 
179
128
  //////////////////////////////////////////////////////////////////////////////////////////////////////////////
180
129
 
181
130
  // Base implementation types
182
- export type TestSuiteImplementation<
183
- O extends Ibdd_out<
184
- TestSuiteShape,
185
- TestGivenShape,
186
- TestWhenShape,
187
- TestThenShape,
188
- TestCheckShape
189
- >
190
- > = {
131
+ export type TestSuiteImplementation<O extends Ibdd_out_any> = {
191
132
  [K in keyof O["suites"]]: string;
192
133
  };
193
134
 
194
135
  export type TestGivenImplementation<
195
- I extends Ibdd_in<
196
- unknown,
197
- unknown,
198
- unknown,
199
- unknown,
200
- unknown,
201
- unknown,
202
- unknown
203
- >,
204
- O extends Ibdd_out<
205
- TestSuiteShape,
206
- TestGivenShape,
207
- TestWhenShape,
208
- TestThenShape,
209
- TestCheckShape
210
- >
136
+ I extends Ibdd_in_any,
137
+ O extends Ibdd_out_any
211
138
  > = {
212
139
  [K in keyof O["givens"]]: (...Ig: O["givens"][K]) => I["given"];
213
140
  };
214
141
 
215
142
  export type TestWhenImplementation<
216
- I extends Ibdd_in<
217
- unknown,
218
- unknown,
219
- unknown,
220
- unknown,
221
- unknown,
222
- unknown,
223
- unknown
224
- >,
225
- O extends Ibdd_out<
226
- TestSuiteShape,
227
- TestGivenShape,
228
- TestWhenShape,
229
- TestThenShape,
230
- TestCheckShape
231
- >
143
+ I extends Ibdd_in_any,
144
+ O extends Ibdd_out_any
232
145
  > = {
233
146
  [K in keyof O["whens"]]: (
234
147
  ...Iw: O["whens"][K]
@@ -240,22 +153,8 @@ export type TestWhenImplementation<
240
153
  };
241
154
 
242
155
  export type TestThenImplementation<
243
- I extends Ibdd_in<
244
- unknown,
245
- unknown,
246
- unknown,
247
- unknown,
248
- unknown,
249
- unknown,
250
- unknown
251
- >,
252
- O extends Ibdd_out<
253
- TestSuiteShape,
254
- TestGivenShape,
255
- TestWhenShape,
256
- TestThenShape,
257
- TestCheckShape
258
- >
156
+ I extends Ibdd_in_any,
157
+ O extends Ibdd_out_any
259
158
  > = {
260
159
  [K in keyof O["thens"]]: (
261
160
  ...It: O["thens"][K]
@@ -263,22 +162,8 @@ export type TestThenImplementation<
263
162
  };
264
163
 
265
164
  export type TestCheckImplementation<
266
- I extends Ibdd_in<
267
- unknown,
268
- unknown,
269
- unknown,
270
- unknown,
271
- unknown,
272
- unknown,
273
- unknown
274
- >,
275
- O extends Ibdd_out<
276
- TestSuiteShape,
277
- TestGivenShape,
278
- TestWhenShape,
279
- TestThenShape,
280
- TestCheckShape
281
- >
165
+ I extends Ibdd_in_any,
166
+ O extends Ibdd_out_any
282
167
  > = {
283
168
  [K in keyof O["checks"]]: (...Ic: O["checks"][K]) => I["given"];
284
169
  };
@@ -309,7 +194,6 @@ export type ITestconfig = {
309
194
  clearScreen: boolean;
310
195
  debugger: boolean;
311
196
  externals: string[];
312
- externalTests: Record<string, { watch: string[]; exec: string }>;
313
197
  featureIngestor: (s: string) => Promise<string>;
314
198
  importPlugins: IPluginFactory[];
315
199
  minify: boolean;
@@ -324,4 +208,5 @@ export type IBuiltConfig = { buildDir: string } & ITestconfig;
324
208
 
325
209
  export type IProject = {
326
210
  projects: Record<string, ITestconfig>;
211
+ reportDomain: string;
327
212
  };
package/src/Web.ts CHANGED
@@ -1,9 +1,15 @@
1
- import { PM_Web } from "./PM/web";
2
- import type {
1
+ /* eslint-disable @typescript-eslint/no-unused-vars */
2
+ /* eslint-disable @typescript-eslint/no-explicit-any */
3
+
4
+ import {
5
+ ITestSpecification,
3
6
  ITestImplementation,
4
7
  ITestInterface,
5
- ITestSpecification,
6
- } from "./Types";
8
+ Ibdd_in_any,
9
+ Ibdd_out,
10
+ } from "./CoreTypes";
11
+ import { PM_Web } from "./PM/web";
12
+
7
13
  import Testeranto from "./lib/core.js";
8
14
  import {
9
15
  ITTestResourceConfiguration,
@@ -14,15 +20,13 @@ import {
14
20
  let errorCallback = (e: any) => {};
15
21
  let unhandledrejectionCallback = (event: PromiseRejectionEvent) => {
16
22
  console.log("window.addEventListener unhandledrejection", event);
17
- // cb({ error: event.reason.message });
18
- // throw event;
19
23
  };
20
24
 
21
- export class WebTesteranto<I extends IT, O extends OT, M> extends Testeranto<
22
- I,
23
- O,
25
+ export class WebTesteranto<
26
+ I extends Ibdd_in_any,
27
+ O extends Ibdd_out,
24
28
  M
25
- > {
29
+ > extends Testeranto<I, O, M> {
26
30
  constructor(
27
31
  input: I["iinput"],
28
32
  testSpecification: ITestSpecification<I, O>,
@@ -79,7 +83,7 @@ export class WebTesteranto<I extends IT, O extends OT, M> extends Testeranto<
79
83
  }
80
84
  }
81
85
 
82
- export default async <I extends IT, O extends OT, M>(
86
+ export default async <I extends Ibdd_in_any, O extends Ibdd_out, M>(
83
87
  input: I["iinput"],
84
88
  testSpecification: ITestSpecification<I, O>,
85
89
  testImplementation: ITestImplementation<I, O, M>,
package/src/build.ts CHANGED
@@ -19,6 +19,12 @@ import {
19
19
  IRunTime,
20
20
  ITestTypes,
21
21
  } from "./Types.js";
22
+ import { config } from "process";
23
+ import {
24
+ idkPage,
25
+ testReportPage,
26
+ testsReportPage,
27
+ } from "./utils/buildTemplates.js";
22
28
 
23
29
  readline.emitKeypressEvents(process.stdin);
24
30
  if (process.stdin.isTTY) process.stdin.setRawMode(true);
@@ -152,30 +158,12 @@ import(process.cwd() + "/" + "testeranto.config.ts").then(async (module) => {
152
158
 
153
159
  fs.writeFileSync(
154
160
  `${process.cwd()}/testeranto/reports/${testName}/index.html`,
155
- `
156
- <!DOCTYPE html>
157
- <html lang="en">
158
-
159
- <head>
160
- <meta name="description" content="Webpage description goes here" />
161
- <meta charset="utf-8" />
162
- <title>${pckge.name} - testeranto</title>
163
- <meta name="viewport" content="width=device-width, initial-scale=1" />
164
- <meta name="author" content="" />
165
-
166
- <link rel="stylesheet" href="../ReportClient.css" />
167
- <script type="module" src="../ReportClient.js"></script>
168
-
169
- </head>
170
-
171
- <body>
172
- <div id="root">
173
- react is loading
174
- </div>
175
- </body>
176
-
177
- </html>
178
- `
161
+ testReportPage(pckge.name, bigConfig.reportDomain)
162
+ );
163
+
164
+ fs.writeFileSync(
165
+ `${process.cwd()}/testeranto/reports/${testName}/dev.html`,
166
+ testReportPage(pckge.name, "/")
179
167
  );
180
168
 
181
169
  fs.writeFileSync(
@@ -185,35 +173,12 @@ import(process.cwd() + "/" + "testeranto.config.ts").then(async (module) => {
185
173
 
186
174
  fs.writeFileSync(
187
175
  `${process.cwd()}/testeranto/index.html`,
188
- `
189
- <!DOCTYPE html>
190
- <html lang="en">
191
-
192
- <head>
193
- <meta name="description" content="Webpage description goes here" />
194
- <meta charset="utf-8" />
195
- <title>${pckge.name} - testeranto</title>
196
- <meta name="viewport" content="width=device-width, initial-scale=1" />
197
- <meta name="author" content="" />
198
- <base href="https://adamwong246.github.io/spacetrash_v8" target="_blank">
199
-
200
- <script type="application/json" id="bigConfig">
201
- ${JSON.stringify(Object.keys(bigConfig.projects))}
202
- </script>
203
-
204
- <link rel="stylesheet" href="/reports/Project.css" />
205
- <script type="module" src="/reports/Project.js"></script>
206
-
207
- </head>
208
-
209
- <body>
210
- <div id="root">
211
- react is loading
212
- </div>
213
- </body>
214
-
215
- </html>
216
- `
176
+ testsReportPage(pckge.name, bigConfig.reportDomain, bigConfig.projects)
177
+ );
178
+
179
+ fs.writeFileSync(
180
+ `${process.cwd()}/testeranto/dev.html`,
181
+ testsReportPage(pckge.name, "/", bigConfig.projects)
217
182
  );
218
183
 
219
184
  Promise.resolve(
@@ -281,29 +246,13 @@ import(process.cwd() + "/" + "testeranto.config.ts").then(async (module) => {
281
246
  .join(".")}/${runtime}`;
282
247
 
283
248
  await fs.mkdirSync(folder, { recursive: true });
249
+
284
250
  fs.writeFileSync(
285
251
  `${folder}/index.html`,
286
- `
287
- <!DOCTYPE html>
288
- <html lang="en">
289
-
290
- <head>
291
- <meta name="description" content="Webpage description goes here" />
292
- <meta charset="utf-8" />
293
- <title>${testName} - testeranto</title>
294
- <meta name="viewport" content="width=device-width, initial-scale=1" />
295
- <meta name="author" content="" />
296
-
297
- <link rel="stylesheet" href="../../../../../../TestReport.css" />
298
- <script src="../../../../../../TestReport.js"></script>
299
-
300
- </head>
301
-
302
- <body>
303
- <div id="root"/>
304
- </body>
305
- `
252
+ idkPage(testName, bigConfig.reportDomain)
306
253
  );
254
+
255
+ fs.writeFileSync(`${folder}/dev.html`, idkPage(testName, ""));
307
256
  });
308
257
  });
309
258
 
@@ -1,3 +1,4 @@
1
+ /* eslint-disable @typescript-eslint/no-unused-vars */
1
2
  import { ITestconfig } from "./lib";
2
3
 
3
4
  const config: ITestconfig = {
@@ -11,7 +12,7 @@ const config: ITestconfig = {
11
12
  nodePlugins: [],
12
13
  webPlugins: [],
13
14
  importPlugins: [],
14
- externalTests: {},
15
+
15
16
  featureIngestor: function (s: string): Promise<string> {
16
17
  throw new Error("Function not implemented.");
17
18
  },