testeranto 0.74.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 +8 -3
  73. package/dist/types/{PM → src/PM}/node.d.ts +2 -0
  74. package/dist/types/{PM → src/PM}/web.d.ts +1 -0
  75. package/dist/types/{Project.d.ts → src/Project.d.ts} +1 -1
  76. package/dist/types/src/Puppeteer.d.ts +2 -0
  77. package/dist/types/src/SubPackages/puppeteer.d.ts +6 -0
  78. package/dist/types/{SubPackages → src/SubPackages}/react/component/node.d.ts +1 -1
  79. package/dist/types/{SubPackages → src/SubPackages}/react/component/web.d.ts +1 -1
  80. package/dist/types/src/SubPackages/react/jsx/node.d.ts +4 -0
  81. package/dist/types/src/SubPackages/react/jsx/web.d.ts +4 -0
  82. package/dist/types/{SubPackages → src/SubPackages}/react-dom/component/node.d.ts +2 -2
  83. package/dist/types/src/SubPackages/react-dom/component/web.d.ts +11 -0
  84. package/dist/types/src/SubPackages/react-dom/jsx/node.d.ts +6 -0
  85. package/dist/types/src/SubPackages/react-dom/jsx/web.d.ts +5 -0
  86. package/dist/types/src/SubPackages/react-test-renderer/MemoExoticComponent/node.d.ts +5 -0
  87. package/dist/types/{SubPackages → src/SubPackages}/react-test-renderer/component/index.d.ts +0 -7
  88. package/dist/types/src/SubPackages/react-test-renderer/component/interface.d.ts +9 -0
  89. package/dist/types/{SubPackages → src/SubPackages}/react-test-renderer/component/node.d.ts +1 -2
  90. package/dist/types/src/SubPackages/react-test-renderer/component/web.d.ts +3 -0
  91. package/dist/types/{SubPackages → src/SubPackages}/react-test-renderer/fc/node.d.ts +1 -1
  92. package/dist/types/{SubPackages → src/SubPackages}/react-test-renderer/fc/web.d.ts +1 -1
  93. package/dist/types/{SubPackages → src/SubPackages}/react-test-renderer/jsx/node.d.ts +1 -2
  94. package/dist/types/{SubPackages → src/SubPackages}/react-test-renderer/jsx/web.d.ts +1 -2
  95. package/dist/types/src/SubPackages/react-test-renderer/jsx-promised/node.d.ts +4 -0
  96. package/dist/types/src/SubPackages/react-test-renderer/jsx-promised/web.d.ts +4 -0
  97. package/dist/types/src/Types.d.ts +51 -0
  98. package/dist/types/src/Web.d.ts +6 -0
  99. package/dist/types/src/esbuildConfigs/inputFilesPlugin.d.ts +5 -0
  100. package/dist/types/{lib → src/lib}/abstractBase.d.ts +8 -8
  101. package/dist/types/{lib → src/lib}/basebuilder.d.ts +1 -1
  102. package/dist/types/{lib → src/lib}/classBuilder.d.ts +1 -1
  103. package/dist/types/{lib → src/lib}/core.d.ts +1 -1
  104. package/dist/types/{lib → src/lib}/index.d.ts +5 -5
  105. package/dist/types/{lib → src/lib}/types.d.ts +15 -15
  106. package/dist/types/src/utils.d.ts +2 -0
  107. package/dist/types/testeranto.d.ts +16 -0
  108. package/dist/types/tsconfig.types.tsbuildinfo +1 -1
  109. package/docker-compose.yml +37 -0
  110. package/init-docs.ts +5 -0
  111. package/package.json +72 -25
  112. package/run-tests.ts +9 -0
  113. package/src/Aider.ts +125 -0
  114. package/src/Init.ts +20 -0
  115. package/src/Node.ts +31 -2
  116. package/src/PM/index.ts +7 -84
  117. package/src/PM/main.ts +400 -16
  118. package/src/PM/node.ts +6 -0
  119. package/src/PM/web.ts +4 -0
  120. package/src/Project.ts +33 -84
  121. package/src/Puppeteer.ts +115 -62
  122. package/src/SubPackages/react-dom/component/web.ts +10 -30
  123. package/src/SubPackages/react-dom/jsx/web.ts +110 -76
  124. package/src/SubPackages/react-test-renderer/component/index.ts +0 -66
  125. package/src/SubPackages/react-test-renderer/component/interface.ts +48 -0
  126. package/src/SubPackages/react-test-renderer/component/node.ts +2 -1
  127. package/src/SubPackages/react-test-renderer/component/web.ts +2 -1
  128. package/src/Types.ts +138 -29
  129. package/src/Web.ts +32 -2
  130. package/src/esbuildConfigs/index.ts +1 -0
  131. package/src/esbuildConfigs/inputFilesPlugin.ts +67 -0
  132. package/src/esbuildConfigs/node.ts +4 -2
  133. package/src/esbuildConfigs/report.ts +13 -13
  134. package/src/esbuildConfigs/web.ts +4 -0
  135. package/src/lib/abstractBase.ts +366 -36
  136. package/src/lib/basebuilder.ts +26 -52
  137. package/src/lib/classBuilder.ts +14 -2
  138. package/src/lib/core.ts +18 -7
  139. package/src/lib/index.ts +115 -7
  140. package/src/lib/types.ts +143 -37
  141. package/src/utils.ts +15 -0
  142. package/testeranto.ts +13 -0
  143. package/tsconfig.common.json +12 -4
  144. package/tsconfig.json +9 -3
  145. package/tsconfig.module.json +2 -3
  146. package/tsconfig.types.json +1 -2
  147. package/dist/common/Features.js +0 -84
  148. package/dist/common/PM/index.js +0 -71
  149. package/dist/common/Reporter.js +0 -119
  150. package/dist/common/Scheduler.js +0 -1
  151. package/dist/common/SubPackages/react-dom/jsx/web.js +0 -93
  152. package/dist/common/esbuildConfigs/report.js +0 -13
  153. package/dist/common/lib/abstractBase.js +0 -348
  154. package/dist/common/preload.js +0 -15
  155. package/dist/common/report.html.js +0 -31
  156. package/dist/module/Features.js +0 -73
  157. package/dist/module/PM/index.js +0 -67
  158. package/dist/module/PM/main.js +0 -340
  159. package/dist/module/Reporter.js +0 -114
  160. package/dist/module/Scheduler.js +0 -1
  161. package/dist/module/SubPackages/react-dom/jsx/web.js +0 -65
  162. package/dist/module/Types.js +0 -3
  163. package/dist/module/esbuildConfigs/report.js +0 -11
  164. package/dist/module/lib/abstractBase.js +0 -340
  165. package/dist/module/preload.js +0 -15
  166. package/dist/module/report.html.js +0 -29
  167. package/dist/prebuild/Report.css +0 -11358
  168. package/dist/prebuild/Report.js +0 -37585
  169. package/dist/types/Features.d.ts +0 -68
  170. package/dist/types/Node.d.ts +0 -6
  171. package/dist/types/SubPackages/puppeteer.d.ts +0 -6
  172. package/dist/types/SubPackages/react/jsx/node.d.ts +0 -4
  173. package/dist/types/SubPackages/react/jsx/web.d.ts +0 -4
  174. package/dist/types/SubPackages/react-dom/component/web.d.ts +0 -5
  175. package/dist/types/SubPackages/react-dom/jsx/node.d.ts +0 -6
  176. package/dist/types/SubPackages/react-dom/jsx/web.d.ts +0 -5
  177. package/dist/types/SubPackages/react-test-renderer/MemoExoticComponent/node.d.ts +0 -5
  178. package/dist/types/SubPackages/react-test-renderer/component/web.d.ts +0 -4
  179. package/dist/types/SubPackages/react-test-renderer/jsx-promised/node.d.ts +0 -5
  180. package/dist/types/SubPackages/react-test-renderer/jsx-promised/web.d.ts +0 -5
  181. package/dist/types/Types.d.ts +0 -50
  182. package/dist/types/Web.d.ts +0 -6
  183. package/dist/types/esbuildConfigs/report.d.ts +0 -4
  184. package/dist/types/preload.d.ts +0 -0
  185. package/dist/types/report.html.d.ts +0 -2
  186. package/electronBuild.ts +0 -32
  187. package/src/Features.ts +0 -118
  188. package/src/Report.tsx +0 -521
  189. package/src/Reporter.ts +0 -134
  190. package/src/Scheduler.ts +0 -0
  191. package/src/preload.ts +0 -17
  192. package/src/report.html.ts +0 -29
  193. package/tests/Rectangle.test.ts +0 -189
  194. /package/dist/common/{SubPackages → src/SubPackages}/puppeteer.js +0 -0
  195. /package/dist/common/{SubPackages → src/SubPackages}/react/component/node.js +0 -0
  196. /package/dist/common/{SubPackages → src/SubPackages}/react/component/web.js +0 -0
  197. /package/dist/common/{SubPackages → src/SubPackages}/react/jsx/index.js +0 -0
  198. /package/dist/common/{SubPackages → src/SubPackages}/react/jsx/node.js +0 -0
  199. /package/dist/common/{SubPackages → src/SubPackages}/react/jsx/web.js +0 -0
  200. /package/dist/common/{SubPackages → src/SubPackages}/react-dom/component/node.js +0 -0
  201. /package/dist/common/{SubPackages → src/SubPackages}/react-dom/jsx/index.js +0 -0
  202. /package/dist/common/{SubPackages → src/SubPackages}/react-dom/jsx/node.js +0 -0
  203. /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/MemoExoticComponent/node.js +0 -0
  204. /package/dist/common/{lib/types.js → src/SubPackages/react-test-renderer/component/index.js} +0 -0
  205. /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/fc/node.js +0 -0
  206. /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/fc/web.js +0 -0
  207. /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/jsx/index.js +0 -0
  208. /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/jsx/node.js +0 -0
  209. /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/jsx/web.js +0 -0
  210. /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/jsx-promised/index.js +0 -0
  211. /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/jsx-promised/node.js +0 -0
  212. /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/jsx-promised/web.js +0 -0
  213. /package/dist/common/{Web.js → src/Web.js} +0 -0
  214. /package/dist/common/{esbuildConfigs → src/esbuildConfigs}/features.js +0 -0
  215. /package/dist/common/{esbuildConfigs → src/esbuildConfigs}/tests.js +0 -0
  216. /package/dist/common/{lib → src/lib}/index.js +0 -0
  217. /package/dist/common/{puppeteerConfiger.js → src/puppeteerConfiger.js} +0 -0
  218. /package/dist/common/{web.html.js → src/web.html.js} +0 -0
  219. /package/dist/module/{SubPackages → src/SubPackages}/puppeteer.js +0 -0
  220. /package/dist/module/{SubPackages → src/SubPackages}/react/component/node.js +0 -0
  221. /package/dist/module/{SubPackages → src/SubPackages}/react/component/web.js +0 -0
  222. /package/dist/module/{SubPackages → src/SubPackages}/react/jsx/index.js +0 -0
  223. /package/dist/module/{SubPackages → src/SubPackages}/react/jsx/node.js +0 -0
  224. /package/dist/module/{SubPackages → src/SubPackages}/react/jsx/web.js +0 -0
  225. /package/dist/module/{SubPackages → src/SubPackages}/react-dom/component/node.js +0 -0
  226. /package/dist/module/{SubPackages → src/SubPackages}/react-dom/jsx/index.js +0 -0
  227. /package/dist/module/{SubPackages → src/SubPackages}/react-dom/jsx/node.js +0 -0
  228. /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/MemoExoticComponent/node.js +0 -0
  229. /package/dist/module/{lib/types.js → src/SubPackages/react-test-renderer/component/index.js} +0 -0
  230. /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/fc/node.js +0 -0
  231. /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/fc/web.js +0 -0
  232. /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/jsx/index.js +0 -0
  233. /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/jsx/node.js +0 -0
  234. /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/jsx/web.js +0 -0
  235. /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/jsx-promised/index.js +0 -0
  236. /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/jsx-promised/node.js +0 -0
  237. /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/jsx-promised/web.js +0 -0
  238. /package/dist/{types/Puppeteer.d.ts → module/src/Types.js} +0 -0
  239. /package/dist/module/{Web.js → src/Web.js} +0 -0
  240. /package/dist/module/{esbuildConfigs → src/esbuildConfigs}/features.js +0 -0
  241. /package/dist/module/{esbuildConfigs → src/esbuildConfigs}/tests.js +0 -0
  242. /package/dist/module/{lib → src/lib}/index.js +0 -0
  243. /package/dist/{types/Reporter.d.ts → module/src/lib/types.js} +0 -0
  244. /package/dist/module/{puppeteerConfiger.js → src/puppeteerConfiger.js} +0 -0
  245. /package/dist/module/{web.html.js → src/web.html.js} +0 -0
  246. /package/dist/types/{SubPackages → src/SubPackages}/react/jsx/index.d.ts +0 -0
  247. /package/dist/types/{SubPackages → src/SubPackages}/react-dom/jsx/index.d.ts +0 -0
  248. /package/dist/types/{SubPackages → src/SubPackages}/react-test-renderer/jsx/index.d.ts +0 -0
  249. /package/dist/types/{SubPackages → src/SubPackages}/react-test-renderer/jsx-promised/index.d.ts +0 -0
  250. /package/dist/types/{esbuildConfigs → src/esbuildConfigs}/features.d.ts +0 -0
  251. /package/dist/types/{esbuildConfigs → src/esbuildConfigs}/index.d.ts +0 -0
  252. /package/dist/types/{esbuildConfigs → src/esbuildConfigs}/node.d.ts +0 -0
  253. /package/dist/types/{Scheduler.d.ts → src/esbuildConfigs/report.d.ts} +0 -0
  254. /package/dist/types/{esbuildConfigs → src/esbuildConfigs}/tests.d.ts +0 -0
  255. /package/dist/types/{esbuildConfigs → src/esbuildConfigs}/web.d.ts +0 -0
  256. /package/dist/types/{puppeteerConfiger.d.ts → src/puppeteerConfiger.d.ts} +0 -0
  257. /package/dist/types/{web.html.d.ts → src/web.html.d.ts} +0 -0
@@ -0,0 +1,3 @@
1
+ import { ITProject } from "./src/Project";
2
+ declare const _default: ITProject;
3
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: Promise<void>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: Promise<void>;
2
+ export default _default;
@@ -0,0 +1 @@
1
+ export declare const execCommand: (command: any) => Promise<void>;
@@ -0,0 +1,2 @@
1
+ declare const _default: (partialConfig: any) => Promise<void>;
2
+ export default _default;
@@ -0,0 +1,6 @@
1
+ import Testeranto from "./lib/core.js";
2
+ import { ITTestResourceRequest } from "./lib/index.js";
3
+ import type { IBaseTest, ITestImplementation, ITestSpecification } from "./Types.js";
4
+ import { INodeTestInterface } from "./lib/types.js";
5
+ declare const _default: <ITestShape extends IBaseTest<unknown, unknown, unknown, unknown, unknown, unknown, unknown, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>>(input: ITestShape["iinput"], testSpecification: ITestSpecification<ITestShape>, testImplementation: ITestImplementation<ITestShape, object>, testInterface: Partial<INodeTestInterface<ITestShape>>, testResourceRequirement?: ITTestResourceRequest) => Promise<Testeranto<ITestShape>>;
6
+ export default _default;
@@ -1,4 +1,4 @@
1
- import { Browser } from "puppeteer-core/lib/esm/puppeteer/puppeteer-core-browser";
1
+ import { Browser, Page } from "puppeteer-core/lib/esm/puppeteer/puppeteer-core-browser";
2
2
  import { ITLog, ITTestResourceConfiguration } from "../lib";
3
3
  export declare abstract class PM {
4
4
  server: any;
@@ -8,7 +8,7 @@ export declare abstract class PM {
8
8
  abstract testArtiFactoryfileWriter(tLog: ITLog, callback: (Promise: any) => void): any;
9
9
  abstract createWriteStream(filepath: string): any;
10
10
  abstract writeFileSync(fp: string, contents: string): any;
11
- abstract mkdirSync(): any;
11
+ abstract mkdirSync(a: string): any;
12
12
  abstract existsSync(fp: string): boolean;
13
13
  abstract write(accessObject: {
14
14
  uid: number;
@@ -16,4 +16,5 @@ export declare abstract class PM {
16
16
  abstract end(accessObject: {
17
17
  uid: number;
18
18
  }): boolean;
19
+ abstract customScreenShot(opts: object, page: Page): any;
19
20
  }
@@ -1,17 +1,22 @@
1
1
  /// <reference types="node" />
2
+ /// <reference types="node" />
3
+ /// <reference types="node" />
2
4
  import fs from "fs";
3
5
  import { PassThrough } from "stream";
4
- import { ITLog } from "../lib";
5
- import { IBuiltConfig } from "../lib/types";
6
+ import { IBuiltConfig, ITestTypes } from "../lib/types";
6
7
  import { PM } from "./index.js";
8
+ import { ITLog } from "../lib/index.js";
7
9
  export declare class PM_Main extends PM {
10
+ customScreenShot(opts: object): void;
8
11
  configs: IBuiltConfig;
9
12
  ports: Record<number, boolean>;
10
13
  queue: any[];
11
14
  constructor(configs: IBuiltConfig);
12
15
  startPuppeteer(options: any, destfolder: string): Promise<any>;
13
16
  launchNode: (src: string, dest: string) => Promise<void>;
14
- launchWeb: (t: string, dest: string) => void;
17
+ launchWebSideCar: (src: string, dest: string, testConfig: ITestTypes) => Promise<unknown>;
18
+ launchNodeSideCar: (src: string, dest: string, testConfig: ITestTypes) => Promise<void>;
19
+ launchWeb: (t: string, dest: string, sidecars: ITestTypes[]) => void;
15
20
  end(accessObject: {
16
21
  uid: number;
17
22
  }): boolean;
@@ -3,11 +3,13 @@
3
3
  import { PassThrough } from "stream";
4
4
  import { ITLog, ITTestResourceConfiguration } from "../lib";
5
5
  import { PM } from "./index.js";
6
+ import { Page } from "puppeteer-core/lib/esm/puppeteer";
6
7
  declare type PuppetMasterServer = Record<string, Promise<any>>;
7
8
  export declare class PM_Node extends PM {
8
9
  server: PuppetMasterServer;
9
10
  testResourceConfiguration: ITTestResourceConfiguration;
10
11
  constructor(t: ITTestResourceConfiguration);
12
+ customScreenShot(opts: object, page: Page): any;
11
13
  existsSync(destFolder: string): boolean;
12
14
  mkdirSync(): any;
13
15
  write(writeObject: {
@@ -7,6 +7,7 @@ declare type PuppetMasterServer = Record<string, Promise<any>>;
7
7
  export declare class PM_Web extends PM {
8
8
  server: PuppetMasterServer;
9
9
  constructor(t: ITTestResourceConfiguration);
10
+ customScreenShot(opts: object): void;
10
11
  existsSync(destFolder: string): boolean;
11
12
  mkdirSync(): any;
12
13
  write(writeObject: {
@@ -2,6 +2,6 @@ import { IBaseConfig, IRunTime } from "./lib/types.js";
2
2
  export declare class ITProject {
3
3
  config: IBaseConfig;
4
4
  mode: `up` | `down`;
5
- constructor(config: IBaseConfig);
5
+ constructor(configs: IBaseConfig);
6
6
  getSecondaryEndpointsPoints(runtime?: IRunTime): string[];
7
7
  }
@@ -0,0 +1,2 @@
1
+ declare const _default: (partialConfig: any) => Promise<void>;
2
+ export default _default;
@@ -0,0 +1,6 @@
1
+ import { IBaseTest, IPartialNodeInterface, ITestImplementation, ITestSpecification } from "../Types";
2
+ declare type IInput = string;
3
+ export declare type IImpl<ISpec extends IBaseTest> = ITestImplementation<ISpec>;
4
+ export declare type ISpec<T extends IBaseTest> = ITestSpecification<T>;
5
+ declare const _default: <ITestShape extends any>(testInput: IInput, testSpecifications: ISpec<ITestShape>, testImplementations: ITestImplementation<ITestShape, object>, testInterface?: Partial<import("../lib/types.js").INodeTestInterface<ITestShape>> | undefined) => Promise<import("../lib/core.js").default<ITestShape>>;
6
+ export default _default;
@@ -3,5 +3,5 @@ import { IBaseTest, ITestImplementation, ITestSpecification } from "../../../Typ
3
3
  declare type IInput = typeof React.Component;
4
4
  export declare type IImpl<ISpec extends IBaseTest, IState> = ITestImplementation<ISpec, object>;
5
5
  export declare type ISpec<T extends IBaseTest> = ITestSpecification<T>;
6
- declare const _default: <ITestShape extends IBaseTest<any, any>, IState>(testImplementations: ITestImplementation<ITestShape, object>, testSpecifications: ISpec<ITestShape>, testInput: IInput) => Promise<import("../../../lib/core.js").default<ITestShape>>;
6
+ declare const _default: <ITestShape extends any, IState>(testImplementations: ITestImplementation<ITestShape, object>, testSpecifications: ISpec<ITestShape>, testInput: IInput) => Promise<import("../../../lib/core.js").default<ITestShape>>;
7
7
  export default _default;
@@ -3,5 +3,5 @@ import { IBaseTest, ITestImplementation, ITestSpecification } from "../../../Typ
3
3
  declare type IInput = typeof React.Component;
4
4
  export declare type IImpl<ISpec extends IBaseTest, IState> = ITestImplementation<ISpec, object>;
5
5
  export declare type ISpec<T extends IBaseTest> = ITestSpecification<T>;
6
- declare const _default: <ITestShape extends IBaseTest<any, any>>(testImplementations: ITestImplementation<ITestShape, object>, testSpecifications: ISpec<ITestShape>, testInput: IInput) => Promise<import("../../../lib/core.js").default<ITestShape>>;
6
+ declare const _default: <ITestShape extends any>(testImplementations: ITestImplementation<ITestShape, object>, testSpecifications: ISpec<ITestShape>, testInput: IInput) => Promise<import("../../../lib/core.js").default<ITestShape>>;
7
7
  export default _default;
@@ -0,0 +1,4 @@
1
+ import { IPartialInterface } from "../../../Types";
2
+ import { ITestImpl, ITestSpec, IInput } from "./index.js";
3
+ declare const _default: <ITestShape extends any>(testImplementations: ITestImpl<ITestShape>, testSpecifications: ITestSpec<ITestShape>, testInput: IInput, testInterface: Partial<import("../../../lib/types.js").ITestInterface<ITestShape>>) => Promise<import("../../../lib/core.js").default<ITestShape>>;
4
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import { IPartialWebInterface } from "../../../Types";
2
+ import { ITestImpl, ITestSpec, IInput } from "./index.js";
3
+ declare const _default: <ITestShape extends any>(testImplementations: ITestImpl<ITestShape>, testSpecifications: ITestSpec<ITestShape>, testInput: IInput, testInterface: Partial<import("../../../lib/types").IWebTestInterface<ITestShape>>) => Promise<import("../../../lib/core").default<ITestShape>>;
4
+ export default _default;
@@ -1,12 +1,12 @@
1
1
  import React, { ReactNode } from "react";
2
2
  import { renderToStaticMarkup, renderToStaticNodeStream } from "react-dom/server";
3
3
  import Stream from "stream";
4
- import { IBaseTest, ITestImplementation, ITestSpecification } from "../../../Types";
4
+ import { ITestImplementation, ITestSpecification } from "../../../Types";
5
5
  declare type IInput = typeof React.Component;
6
6
  export declare type IThenShape = any;
7
7
  export declare type ISelection = ReactNode;
8
8
  export declare type IStore = ReactNode;
9
9
  export declare type ISubject = ReactNode;
10
10
  export { renderToStaticMarkup, renderToStaticNodeStream, Stream };
11
- declare const _default: <ITestShape extends IBaseTest<any, any>>(testImplementations: ITestImplementation<ITestShape, object>, testSpecifications: ITestSpecification<ITestShape>, testInput: IInput) => Promise<import("../../../lib/core.js").default<ITestShape>>;
11
+ declare const _default: <ITestShape extends any>(testImplementations: ITestImplementation<ITestShape, object>, testSpecifications: ITestSpecification<ITestShape>, testInput: IInput) => Promise<import("../../../lib/core.js").default<ITestShape>>;
12
12
  export default _default;
@@ -0,0 +1,11 @@
1
+ import React from "react";
2
+ import ReactDom from "react-dom/client";
3
+ import { IPartialWebInterface, ITestImplementation, ITestSpecification } from "../../../Types";
4
+ declare type IInput = typeof React.Component;
5
+ export declare type IStore = {
6
+ htmlElement: HTMLElement;
7
+ reactElement: any;
8
+ domRoot: ReactDom.Root;
9
+ };
10
+ declare const _default: <ITestShape extends any, IWhen, IGiven>(testInput: IInput, testSpecifications: ITestSpecification<ITestShape>, testImplementations: any, testInterface?: IPartialWebInterface<any>) => Promise<import("../../../lib/core.js").default<ITestShape>>;
11
+ export default _default;
@@ -0,0 +1,6 @@
1
+ import { renderToStaticMarkup, renderToStaticNodeStream } from "react-dom/server";
2
+ import Stream from 'stream';
3
+ import { ITestImplementation, ITestSpecification } from "../../../Types";
4
+ export { renderToStaticMarkup, renderToStaticNodeStream, Stream };
5
+ declare const _default: <ITestShape extends any>(testImplementations: any, testSpecifications: ITestSpecification<ITestShape>, testInput: ITestShape["iinput"]) => Promise<import("../../../lib/core.js").default<ITestShape>>;
6
+ export default _default;
@@ -0,0 +1,5 @@
1
+ import { ITestImplementation, ITestSpecification } from "../../../Types";
2
+ import type { IInput } from "./index";
3
+ export declare type ISubject = HTMLElement;
4
+ declare const _default: <ITestShape extends any>(testImplementations: ITestImplementation<ITestShape, object>, testSpecifications: ITestSpecification<ITestShape>, testInput: IInput) => Promise<import("../../../lib/core.js").default<ITestShape>>;
5
+ export default _default;
@@ -0,0 +1,5 @@
1
+ import React from "react";
2
+ import { ITestImplementation, ITestSpecification } from "../../../Types";
3
+ declare type IInput = React.MemoExoticComponent<() => JSX.Element>;
4
+ declare const _default: <ITestShape extends any, PropShape>(testImplementations: ITestImplementation<ITestShape, object>, testSpecifications: ITestSpecification<ITestShape>, testInput: IInput) => Promise<import("../../../lib/core").default<ITestShape>>;
5
+ export default _default;
@@ -11,10 +11,3 @@ export declare type IStore = renderer.ReactTestRenderer;
11
11
  export declare type ISubject = renderer.ReactTestRenderer;
12
12
  export declare type IImpl<ITestShape extends IBaseTest> = ITestImplementation<ITestShape>;
13
13
  export declare type ISpec<ITestShape extends IBaseTest> = ITestSpecification<ITestShape>;
14
- export declare const testInterface: {
15
- beforeEach: (CComponent: any, propsAndChildren: any) => Promise<renderer.ReactTestRenderer>;
16
- andWhen: (renderer: renderer.ReactTestRenderer, whenCB: any) => Promise<renderer.ReactTestRenderer>;
17
- butThen: (s: IStore, thenCB: any, tr: any) => Promise<ISelection>;
18
- afterEach: (store: IStore, ndx: any, artificer: any) => Promise<{}>;
19
- afterAll: (store: IStore, artificer: any) => void;
20
- };
@@ -0,0 +1,9 @@
1
+ import renderer from "react-test-renderer";
2
+ import { ISelection, IStore } from ".";
3
+ export declare const testInterface: {
4
+ beforeEach: (CComponent: any, propsAndChildren: any) => Promise<renderer.ReactTestRenderer>;
5
+ andWhen: (renderer: renderer.ReactTestRenderer, whenCB: any) => Promise<renderer.ReactTestRenderer>;
6
+ butThen: (s: IStore, thenCB: any, tr: any) => Promise<ISelection>;
7
+ afterEach: (store: IStore, ndx: any, artificer: any) => Promise<{}>;
8
+ afterAll: (store: IStore, artificer: any) => void;
9
+ };
@@ -1,7 +1,6 @@
1
1
  /// <reference types="react" />
2
- import type { IBaseTest } from "../../../Types";
3
2
  import { IImpl, ISpec, IInput } from "./index.js";
4
- declare const _default: <ITestShape extends IBaseTest<any, any>, IProps, IState>(testImplementations: IImpl<ITestShape>, testSpecifications: ISpec<ITestShape>, testInput: {
3
+ declare const _default: <ITestShape extends any, IProps, IState>(testImplementations: IImpl<ITestShape>, testSpecifications: ISpec<ITestShape>, testInput: {
5
4
  new (props: IProps | Readonly<IProps>): import("react").Component<IProps, IState, any>;
6
5
  new (props: IProps, context: any): import("react").Component<IProps, IState, any>;
7
6
  contextType?: import("react").Context<any> | undefined;
@@ -0,0 +1,3 @@
1
+ import { IImpl, ISpec, IInput } from "./index.js";
2
+ declare const _default: <ITestShape extends any, IProps, IState>(testImplementations: IImpl<ITestShape>, testSpecifications: ISpec<ITestShape>, testInput: IInput<any, any>) => Promise<import("../../../lib/core").default<ITestShape>>;
3
+ export default _default;
@@ -4,5 +4,5 @@ export declare type IInput = React.FC;
4
4
  export declare type IWhenShape = unknown;
5
5
  export declare type IThenShape = unknown;
6
6
  export declare type ISpec<ITestShape extends IBaseTest> = ITestSpecification<ITestShape>;
7
- declare const _default: <ITestShape extends IBaseTest<any, any>>(testImplementations: ITestImplementation<ITestShape, object>, testSpecifications: ISpec<ITestShape>, testInput: IInput) => Promise<import("../../../lib/core.js").default<ITestShape>>;
7
+ declare const _default: <ITestShape extends any>(testImplementations: ITestImplementation<ITestShape, object>, testSpecifications: ISpec<ITestShape>, testInput: IInput) => Promise<import("../../../lib/core.js").default<ITestShape>>;
8
8
  export default _default;
@@ -4,5 +4,5 @@ export declare type IInput = React.FC;
4
4
  export declare type IWhenShape = unknown;
5
5
  export declare type IThenShape = unknown;
6
6
  export declare type ISpec<ITestShape extends IBaseTest> = ITestSpecification<ITestShape>;
7
- declare const _default: <ITestShape extends IBaseTest<any, any>, IPropShape>(testImplementations: ITestImplementation<ITestShape, object>, testSpecifications: ISpec<ITestShape>, testInput: IInput) => Promise<import("../../../lib/core").default<ITestShape>>;
7
+ declare const _default: <ITestShape extends any, IPropShape>(testImplementations: ITestImplementation<ITestShape, object>, testSpecifications: ISpec<ITestShape>, testInput: IInput) => Promise<import("../../../lib/core").default<ITestShape>>;
8
8
  export default _default;
@@ -1,7 +1,6 @@
1
- import { IBaseTest } from "../../../Types";
2
1
  import type { ITestImpl, ITestSpec } from "../jsx-promised";
3
2
  import { IInput } from "./index.js";
4
- declare const _default: <ITestShape extends IBaseTest<any, any>>(testImplementations: ITestImpl<ITestShape>, testSpecifications: ITestSpec<ITestShape>, testInput: IInput, testInterface2?: {
3
+ declare const _default: <ITestShape extends any>(testImplementations: ITestImpl<ITestShape>, testSpecifications: ITestSpec<ITestShape>, testInput: IInput, testInterface2?: {
5
4
  butThen: (s: import("react-test-renderer").ReactTestRenderer, thenCB: any, tr: any) => Promise<import("react-test-renderer").ReactTestRenderer>;
6
5
  beforeEach: (CComponent: any, props: any) => Promise<import("react-test-renderer").ReactTestRenderer>;
7
6
  andWhen: (renderer: import("react-test-renderer").ReactTestRenderer, whenCB: (any: any) => any) => Promise<import("react-test-renderer").ReactTestRenderer>;
@@ -1,7 +1,6 @@
1
- import { IBaseTest } from "../../../Types";
2
1
  import { ITestImpl, ITestSpec } from "../jsx-promised";
3
2
  import { IInput } from "./index.js";
4
- declare const _default: <ITestShape extends IBaseTest<any, any>>(testImplementations: ITestImpl<ITestShape>, testSpecifications: ITestSpec<ITestShape>, testInput: IInput, testInterface2?: {
3
+ declare const _default: <ITestShape extends any>(testImplementations: ITestImpl<ITestShape>, testSpecifications: ITestSpec<ITestShape>, testInput: IInput, testInterface2?: {
5
4
  butThen: (s: import("react-test-renderer").ReactTestRenderer, thenCB: any, tr: any) => Promise<import("react-test-renderer").ReactTestRenderer>;
6
5
  beforeEach: (CComponent: any, props: any) => Promise<import("react-test-renderer").ReactTestRenderer>;
7
6
  andWhen: (renderer: import("react-test-renderer").ReactTestRenderer, whenCB: (any: any) => any) => Promise<import("react-test-renderer").ReactTestRenderer>;
@@ -0,0 +1,4 @@
1
+ import { IInput } from ".";
2
+ import { ITestImpl, ITestSpec } from "../../react/jsx";
3
+ declare const _default: <ITestShape extends any>(testImplementations: ITestImpl<ITestShape>, testSpecifications: ITestSpec<ITestShape>, testInput: IInput) => Promise<import("../../../lib/core").default<ITestShape>>;
4
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import { ITestImpl, ITestSpec } from "../../react/jsx";
2
+ import { IInput } from "./index";
3
+ declare const _default: <ITestShape extends any>(testImplementations: ITestImpl<ITestShape>, testSpecifications: ITestSpec<ITestShape>, testInput: IInput) => Promise<import("../../../lib/core").default<ITestShape>>;
4
+ export default _default;
@@ -0,0 +1,51 @@
1
+ import { ITTestResourceRequest, ITestCheckCallback } from "./lib/index.js";
2
+ import { IGivens, BaseCheck, BaseSuite, BaseWhen, BaseThen, BaseGiven } from "./lib/abstractBase.js";
3
+ import Testeranto from "./lib/core.js";
4
+ import { INodeTestInterface, ITestInterface, IWebTestInterface } from "./lib/types.js";
5
+ import { PM } from "./PM/index.js";
6
+ export declare type IPartialInterface<I extends IBaseTest<unknown, unknown, unknown, unknown, unknown, unknown, unknown, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>> = Partial<ITestInterface<I>>;
7
+ export declare type IPartialNodeInterface<I extends IBaseTest<unknown, unknown, unknown, unknown, unknown, unknown, unknown, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>> = Partial<INodeTestInterface<I>>;
8
+ export declare type IPartialWebInterface<I extends IBaseTest<unknown, unknown, unknown, unknown, unknown, unknown, unknown, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>> = Partial<IWebTestInterface<I>>;
9
+ export declare type IEntry<ITestShape extends IBaseTest<unknown, unknown, unknown, unknown, unknown, unknown, unknown, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>> = (input: ITestShape["iinput"], testSpecification: ITestSpecification<ITestShape>, testImplementation: ITestImplementation<ITestShape, object>, testInterface: IPartialInterface<ITestShape>, testResourceRequirement: ITTestResourceRequest) => Promise<Testeranto<ITestShape>>;
10
+ export declare type ITestSpecification<ITestShape extends IBaseTest<unknown, unknown, unknown, unknown, unknown, unknown, unknown, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>> = (Suite: {
11
+ [K in keyof ITestShape["suites"]]: (name: string, givens: IGivens<ITestShape>, checks: BaseCheck<ITestShape>[]) => BaseSuite<ITestShape>;
12
+ }, Given: {
13
+ [K in keyof ITestShape["givens"]]: (features: string[], whens: BaseWhen<ITestShape>[], thens: BaseThen<ITestShape>[], ...xtrasB: ITestShape["givens"][K]) => BaseGiven<ITestShape>;
14
+ }, When: {
15
+ [K in keyof ITestShape["whens"]]: (...xtrasC: ITestShape["whens"][K]) => BaseWhen<ITestShape>;
16
+ }, Then: {
17
+ [K in keyof ITestShape["thens"]]: (...xtrasD: ITestShape["thens"][K]) => BaseThen<ITestShape>;
18
+ }, Check: ITestCheckCallback<ITestShape>) => any[];
19
+ export declare type ITestImplementation<ITestShape extends IBaseTest<unknown, unknown, unknown, unknown, unknown, unknown, unknown, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>, IMod = object> = Modify<{
20
+ suites: {
21
+ [K in keyof ITestShape["suites"]]: string;
22
+ };
23
+ givens: {
24
+ [K in keyof ITestShape["givens"]]: (...Ig: ITestShape["givens"][K]) => ITestShape["given"];
25
+ };
26
+ whens: {
27
+ [K in keyof ITestShape["whens"]]: (...Iw: ITestShape["whens"][K]) => (zel: ITestShape["iselection"], utils: PM) => ITestShape["when"];
28
+ };
29
+ thens: {
30
+ [K in keyof ITestShape["thens"]]: (...It: ITestShape["thens"][K]) => (ssel: ITestShape["iselection"]) => ITestShape["then"];
31
+ };
32
+ checks: {
33
+ [K in keyof ITestShape["checks"]]: (...Ic: ITestShape["checks"][K]) => ITestShape["given"];
34
+ };
35
+ }, IMod>;
36
+ declare type Modify<T, R> = Omit<T, keyof R> & R;
37
+ export declare type IBaseTest<IInput, ISubject, IStore, ISelection, IGiven, IWhen, IThen, ISuites extends Record<string, any>, IGivens extends Record<string, any>, IWhens extends Record<string, any>, IThens extends Record<string, any>, IChecks extends Record<string, any>> = {
38
+ iinput: IInput;
39
+ isubject: ISubject;
40
+ istore: IStore;
41
+ iselection: ISelection;
42
+ given: IGiven;
43
+ when: IWhen;
44
+ then: IThen;
45
+ suites: ISuites;
46
+ givens: IGivens;
47
+ whens: IWhens;
48
+ thens: IThens;
49
+ checks: IChecks;
50
+ };
51
+ export {};
@@ -0,0 +1,6 @@
1
+ import type { IBaseTest, ITestImplementation, ITestSpecification } from "./Types";
2
+ import Testeranto from "./lib/core.js";
3
+ import { ITTestResourceRequest } from "./lib/index.js";
4
+ import { IWebTestInterface } from "./lib/types";
5
+ declare const _default: <ITestShape extends IBaseTest<unknown, unknown, unknown, unknown, unknown, unknown, unknown, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>>(input: ITestShape["iinput"], testSpecification: ITestSpecification<ITestShape>, testImplementation: ITestImplementation<ITestShape, object>, testInterface: Partial<IWebTestInterface<ITestShape>>, testResourceRequirement?: ITTestResourceRequest) => Promise<Testeranto<ITestShape>>;
6
+ export default _default;
@@ -0,0 +1,5 @@
1
+ declare const _default: (platform: "web" | "node", entryPoints: Set<string> | string[]) => {
2
+ name: string;
3
+ setup(build: any): void;
4
+ };
5
+ export default _default;
@@ -1,8 +1,8 @@
1
1
  import { IBaseTest } from "../Types";
2
- import { ITTestResourceConfiguration, ITestArtifactory, ITLog } from ".";
3
2
  import { PM } from "../PM/index.js";
4
- export declare type IGivens<ITestShape extends IBaseTest> = Record<string, BaseGiven<ITestShape>>;
5
- export declare abstract class BaseSuite<ITestShape extends IBaseTest> {
3
+ import { ITTestResourceConfiguration, ITestArtifactory, ITLog } from ".";
4
+ export declare type IGivens<ITestShape extends IBaseTest<unknown, unknown, unknown, unknown, unknown, unknown, unknown, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>> = Record<string, BaseGiven<ITestShape>>;
5
+ export declare abstract class BaseSuite<ITestShape extends IBaseTest<unknown, unknown, unknown, unknown, unknown, unknown, unknown, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>> {
6
6
  name: string;
7
7
  givens: IGivens<ITestShape>;
8
8
  checks: BaseCheck<ITestShape>[];
@@ -33,7 +33,7 @@ export declare abstract class BaseSuite<ITestShape extends IBaseTest> {
33
33
  afterAll(store: ITestShape["istore"], artifactory: ITestArtifactory, pm: PM): ITestShape["istore"];
34
34
  run(input: ITestShape["iinput"], testResourceConfiguration: ITTestResourceConfiguration, artifactory: (fPath: string, value: unknown) => void, tLog: (...string: any[]) => void, pm: PM): Promise<BaseSuite<ITestShape>>;
35
35
  }
36
- export declare abstract class BaseGiven<ITestShape extends IBaseTest> {
36
+ export declare abstract class BaseGiven<ITestShape extends IBaseTest<unknown, unknown, unknown, unknown, unknown, unknown, unknown, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>> {
37
37
  name: string;
38
38
  features: string[];
39
39
  whens: BaseWhen<ITestShape>[];
@@ -75,7 +75,7 @@ export declare abstract class BaseWhen<ITestShape extends IBaseTest> {
75
75
  };
76
76
  test(store: ITestShape["istore"], testResourceConfiguration: any, tLog: ITLog, pm: PM, key: string): Promise<any>;
77
77
  }
78
- export declare abstract class BaseThen<ITestShape extends IBaseTest> {
78
+ export declare abstract class BaseThen<ITestShape extends IBaseTest<unknown, unknown, unknown, unknown, unknown, unknown, unknown, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>> {
79
79
  name: string;
80
80
  thenCB: (storeState: ITestShape["iselection"]) => ITestShape["then"];
81
81
  error: boolean;
@@ -84,10 +84,10 @@ export declare abstract class BaseThen<ITestShape extends IBaseTest> {
84
84
  name: string;
85
85
  error: boolean;
86
86
  };
87
- abstract butThen(store: ITestShape["istore"], thenCB: any, testResourceConfiguration?: any): Promise<ITestShape["iselection"]>;
88
- test(store: ITestShape["istore"], testResourceConfiguration: any, tLog: ITLog, pm: PM): Promise<ITestShape["then"] | undefined>;
87
+ abstract butThen(store: ITestShape["istore"], thenCB: any, testResourceConfiguration: ITTestResourceConfiguration, pm: PM): Promise<ITestShape["iselection"]>;
88
+ test(store: ITestShape["istore"], testResourceConfiguration: any, tLog: ITLog, pm: PM, filepath: string): Promise<ITestShape["then"] | undefined>;
89
89
  }
90
- export declare abstract class BaseCheck<ITestShape extends IBaseTest> {
90
+ export declare abstract class BaseCheck<ITestShape extends IBaseTest<unknown, unknown, unknown, unknown, unknown, unknown, unknown, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>> {
91
91
  name: string;
92
92
  features: string[];
93
93
  checkCB: (whens: any, thens: any) => any;
@@ -3,7 +3,7 @@ import { IBaseTest, ITestSpecification } from "../Types.js";
3
3
  import { ISuiteKlasser, IGivenKlasser, IWhenKlasser, IThenKlasser, ICheckKlasser } from "./types.js";
4
4
  import { BaseCheck, BaseWhen, BaseThen, BaseGiven } from "./abstractBase.js";
5
5
  import { PM } from "../PM/index.js";
6
- export declare abstract class BaseBuilder<ITestShape extends IBaseTest, SuiteExtensions, GivenExtensions, WhenExtensions, ThenExtensions, CheckExtensions> {
6
+ export declare abstract class BaseBuilder<ITestShape extends IBaseTest<unknown, unknown, unknown, unknown, unknown, unknown, unknown, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>, SuiteExtensions, GivenExtensions, WhenExtensions, ThenExtensions, CheckExtensions> {
7
7
  readonly input: ITestShape["iinput"];
8
8
  specs: any;
9
9
  assertThis: (t: ITestShape["then"]) => {};
@@ -2,6 +2,6 @@ import { IBaseTest, ITestImplementation, ITestSpecification } from "../Types.js"
2
2
  import { BaseBuilder } from "./basebuilder.js";
3
3
  import { ISuiteKlasser, IGivenKlasser, IWhenKlasser, IThenKlasser, ICheckKlasser } from "./types.js";
4
4
  import { ITTestResourceRequest } from "./index.js";
5
- export declare abstract class ClassBuilder<ITestShape extends IBaseTest> extends BaseBuilder<ITestShape, any, any, any, any, any> {
5
+ export declare abstract class ClassBuilder<ITestShape extends IBaseTest<unknown, unknown, unknown, unknown, unknown, unknown, unknown, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>> extends BaseBuilder<ITestShape, any, any, any, any, any> {
6
6
  constructor(testImplementation: ITestImplementation<ITestShape, any>, testSpecification: ITestSpecification<ITestShape>, input: ITestShape["iinput"], suiteKlasser: ISuiteKlasser<ITestShape>, givenKlasser: IGivenKlasser<ITestShape>, whenKlasser: IWhenKlasser<ITestShape>, thenKlasser: IThenKlasser<ITestShape>, checkKlasser: ICheckKlasser<ITestShape>, testResourceRequirement: ITTestResourceRequest);
7
7
  }
@@ -2,7 +2,7 @@ import { IBaseTest, ITestSpecification, ITestImplementation } from "../Types.js"
2
2
  import { ITestInterface } from "./types.js";
3
3
  import { ITTestResourceRequest } from "./index.js";
4
4
  import { ClassBuilder } from "./classBuilder.js";
5
- export default abstract class Testeranto<ITestShape extends IBaseTest> extends ClassBuilder<ITestShape> {
5
+ export default abstract class Testeranto<ITestShape extends IBaseTest<unknown, unknown, unknown, unknown, unknown, unknown, unknown, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>> extends ClassBuilder<ITestShape> {
6
6
  constructor(input: ITestShape["iinput"], testSpecification: ITestSpecification<ITestShape>, testImplementation: ITestImplementation<ITestShape>, testResourceRequirement: ITTestResourceRequest | undefined, testInterface: Partial<ITestInterface<ITestShape>>);
7
7
  abstract receiveTestResourceConfig(partialTestResource: string): any;
8
8
  }
@@ -2,7 +2,7 @@ import { PM } from "../PM/index.js";
2
2
  import { IBaseTest } from "../Types.js";
3
3
  import { IGivens, BaseCheck, BaseSuite, BaseWhen, BaseThen } from "./abstractBase.js";
4
4
  import { ITestInterface } from "./types.js";
5
- export declare const BaseTestInterface: ITestInterface<IBaseTest>;
5
+ export declare const BaseTestInterface: ITestInterface<IBaseTest<unknown, unknown, unknown, unknown, unknown, unknown, unknown, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>>;
6
6
  export declare const DefaultTestInterface: (p: Partial<ITestInterface<any>>) => ITestInterface<any>;
7
7
  export declare type ITTestResourceConfiguration = {
8
8
  name: string;
@@ -29,14 +29,14 @@ export declare type ITestArtificer = (key: string, data: any) => void;
29
29
  declare type ITest = {
30
30
  toObj(): object;
31
31
  name: string;
32
- givens: IGivens<IBaseTest>;
33
- checks: BaseCheck<IBaseTest>[];
32
+ givens: IGivens<IBaseTest<unknown, unknown, unknown, unknown, unknown, unknown, unknown, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>>;
33
+ checks: BaseCheck<IBaseTest<unknown, unknown, unknown, unknown, unknown, unknown, unknown, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>>[];
34
34
  testResourceConfiguration: ITTestResourceConfiguration;
35
35
  };
36
36
  export declare type ITestJob<T = PM> = {
37
37
  toObj(): object;
38
38
  test: ITest;
39
- runner: (x: ITTestResourceConfiguration, t: ITLog) => Promise<BaseSuite<IBaseTest>>;
39
+ runner: (x: ITTestResourceConfiguration, t: ITLog) => Promise<BaseSuite<IBaseTest<unknown, unknown, unknown, unknown, unknown, unknown, unknown, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>>>;
40
40
  testResourceRequirement: ITTestResourceRequirement;
41
41
  receiveTestResourceConfig: (pm: PM) => Promise<{
42
42
  failed: number;
@@ -49,7 +49,7 @@ export declare type ITestResults = Promise<{
49
49
  }>[];
50
50
  export declare const defaultTestResourceRequirement: ITTestResourceRequest;
51
51
  export declare type ITestArtifactory = (key: string, value: unknown) => unknown;
52
- export declare type ITestCheckCallback<ITestShape extends IBaseTest> = {
52
+ export declare type ITestCheckCallback<ITestShape extends IBaseTest<unknown, unknown, unknown, unknown, unknown, unknown, unknown, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>> = {
53
53
  [K in keyof ITestShape["checks"]]: (name: string, features: string[], callbackA: (whens: {
54
54
  [K in keyof ITestShape["whens"]]: (...unknown: any[]) => BaseWhen<ITestShape>;
55
55
  }, thens: {
@@ -9,14 +9,13 @@ export declare type ITestTypes = [string, IRunTime, {
9
9
  export declare type IJsonConfig = {
10
10
  outdir: string;
11
11
  tests: ITestTypes[];
12
- features: string;
12
+ botEmail: string;
13
13
  };
14
14
  export declare type IBaseConfig = {
15
15
  clearScreen: boolean;
16
16
  debugger: boolean;
17
17
  devMode: boolean;
18
18
  externals: string[];
19
- features: string;
20
19
  minify: boolean;
21
20
  nodePlugins: any[];
22
21
  outbase: string;
@@ -24,39 +23,40 @@ export declare type IBaseConfig = {
24
23
  ports: string[];
25
24
  tests: ITestTypes[];
26
25
  webPlugins: any[];
26
+ botEmail: string;
27
27
  };
28
28
  export declare type IBuiltConfig = {
29
29
  buildDir: string;
30
30
  } & IBaseConfig;
31
- export declare type IWebTestInterface<ITestShape extends IBaseTest> = {
31
+ export declare type IWebTestInterface<ITestShape extends IBaseTest<unknown, unknown, unknown, unknown, unknown, unknown, unknown, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>> = {
32
32
  assertThis: (x: ITestShape["then"]) => void;
33
- andWhen: (store: ITestShape["istore"], whenCB: ITestShape["when"], testResource: ITTestResourceConfiguration) => Promise<ITestShape["istore"]>;
33
+ andWhen: (store: ITestShape["istore"], whenCB: ITestShape["when"], testResource: ITTestResourceConfiguration, utils: PM) => Promise<ITestShape["istore"]>;
34
34
  butThen: (store: ITestShape["istore"], thenCB: any, testResource: ITTestResourceConfiguration) => Promise<ITestShape["iselection"]>;
35
35
  afterAll: (store: ITestShape["istore"], artificer: ITestArtificer, utils: PM) => any;
36
36
  afterEach: (store: ITestShape["istore"], key: string, artificer: ITestArtificer, utils: PM) => Promise<unknown>;
37
37
  beforeAll: (input: ITestShape["iinput"], testResource: ITTestResourceConfiguration, artificer: ITestArtificer, utils: PM) => Promise<ITestShape["isubject"]>;
38
38
  beforeEach: (subject: ITestShape["isubject"], initializer: (c?: any) => ITestShape["given"], artificer: ITestArtificer, testResource: ITTestResourceConfiguration, initialValues: any, utils: PM) => Promise<ITestShape["istore"]>;
39
39
  };
40
- export declare type INodeTestInterface<ITestShape extends IBaseTest> = {
40
+ export declare type INodeTestInterface<ITestShape extends IBaseTest<unknown, unknown, unknown, unknown, unknown, unknown, unknown, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>> = {
41
41
  assertThis: (x: ITestShape["then"]) => void;
42
- andWhen: (store: ITestShape["istore"], whenCB: ITestShape["when"], testResource: ITTestResourceConfiguration) => Promise<ITestShape["istore"]>;
43
- butThen: (store: ITestShape["istore"], thenCB: any, testResource: ITTestResourceConfiguration) => Promise<ITestShape["iselection"]>;
42
+ andWhen: (store: ITestShape["istore"], whenCB: ITestShape["when"], testResource: ITTestResourceConfiguration, utils: PM) => Promise<ITestShape["istore"]>;
43
+ butThen: (store: ITestShape["istore"], thenCB: any, testResource: ITTestResourceConfiguration, utils: PM) => Promise<ITestShape["iselection"]>;
44
44
  afterAll: (store: ITestShape["istore"], artificer: ITestArtificer, pm: PM) => any;
45
45
  afterEach: (store: ITestShape["istore"], key: string, artificer: ITestArtificer, pm: PM) => Promise<unknown>;
46
46
  beforeAll: (input: ITestShape["iinput"], testResource: ITTestResourceConfiguration, artificer: ITestArtificer, pm: PM) => Promise<ITestShape["isubject"]>;
47
- beforeEach: (subject: ITestShape["isubject"], initializer: (c?: any) => ITestShape["given"], artificer: ITestArtificer, testResource: ITTestResourceConfiguration, initialValues: any) => Promise<ITestShape["istore"]>;
47
+ beforeEach: (subject: ITestShape["isubject"], initializer: (c?: any) => ITestShape["given"], artificer: ITestArtificer, testResource: ITTestResourceConfiguration, initialValues: any, pm: PM) => Promise<ITestShape["istore"]>;
48
48
  };
49
- export declare type ITestInterface<ITestShape extends IBaseTest> = {
49
+ export declare type ITestInterface<ITestShape extends IBaseTest<unknown, unknown, unknown, unknown, unknown, unknown, unknown, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>> = {
50
50
  assertThis: (x: ITestShape["then"]) => void;
51
51
  andWhen: (store: ITestShape["istore"], whenCB: ITestShape["when"], testResource: ITTestResourceConfiguration, pm: PM) => Promise<ITestShape["istore"]>;
52
- butThen: (store: ITestShape["istore"], thenCB: any, testResource: ITTestResourceConfiguration) => Promise<ITestShape["iselection"]>;
52
+ butThen: (store: ITestShape["istore"], thenCB: any, testResource: ITTestResourceConfiguration, pm: PM) => Promise<ITestShape["iselection"]>;
53
53
  afterAll: (store: ITestShape["istore"], artificer: ITestArtificer, pm: PM) => any;
54
54
  afterEach: (store: ITestShape["istore"], key: string, artificer: ITestArtificer, pm: PM) => Promise<unknown>;
55
55
  beforeAll: (input: ITestShape["iinput"], testResource: ITTestResourceConfiguration, artificer: ITestArtificer, pm: PM) => Promise<ITestShape["isubject"]>;
56
56
  beforeEach: (subject: ITestShape["isubject"], initializer: (c?: any) => ITestShape["given"], artificer: ITestArtificer, testResource: ITTestResourceConfiguration, initialValues: any, pm: PM) => Promise<ITestShape["istore"]>;
57
57
  };
58
- export declare type ISuiteKlasser<ITestShape extends IBaseTest> = (name: string, index: number, givens: IGivens<ITestShape>, checks: BaseCheck<ITestShape>[]) => BaseSuite<ITestShape>;
59
- export declare type IGivenKlasser<ITestShape extends IBaseTest> = (name: any, features: any, whens: any, thens: any, givenCB: any) => BaseGiven<ITestShape>;
60
- export declare type IWhenKlasser<ITestShape extends IBaseTest> = (s: any, o: any) => BaseWhen<ITestShape>;
61
- export declare type IThenKlasser<ITestShape extends IBaseTest> = (s: any, o: any) => BaseThen<ITestShape>;
62
- export declare type ICheckKlasser<ITestShape extends IBaseTest> = (n: any, f: any, cb: any, w: any, t: any) => BaseCheck<ITestShape>;
58
+ export declare type ISuiteKlasser<ITestShape extends IBaseTest<unknown, unknown, unknown, unknown, unknown, unknown, unknown, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>> = (name: string, index: number, givens: IGivens<ITestShape>, checks: BaseCheck<ITestShape>[]) => BaseSuite<ITestShape>;
59
+ export declare type IGivenKlasser<ITestShape extends IBaseTest<unknown, unknown, unknown, unknown, unknown, unknown, unknown, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>> = (name: any, features: any, whens: any, thens: any, givenCB: any) => BaseGiven<ITestShape>;
60
+ export declare type IWhenKlasser<ITestShape extends IBaseTest<unknown, unknown, unknown, unknown, unknown, unknown, unknown, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>> = (s: any, o: any) => BaseWhen<ITestShape>;
61
+ export declare type IThenKlasser<ITestShape extends IBaseTest<unknown, unknown, unknown, unknown, unknown, unknown, unknown, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>> = (s: any, o: any) => BaseThen<ITestShape>;
62
+ export declare type ICheckKlasser<ITestShape extends IBaseTest<unknown, unknown, unknown, unknown, unknown, unknown, unknown, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>> = (n: any, f: any, cb: any, w: any, t: any) => BaseCheck<ITestShape>;
@@ -0,0 +1,2 @@
1
+ import { IBuiltConfig, IRunTime } from "./lib/types";
2
+ export declare const destinationOfRuntime: (f: string, r: IRunTime, configs: IBuiltConfig) => string;
@@ -0,0 +1,16 @@
1
+ declare const _default: {
2
+ botEmail: string;
3
+ taskman: string;
4
+ outdir: string;
5
+ tests: (string | never[] | {
6
+ ports: number;
7
+ })[][];
8
+ debugger: boolean;
9
+ clearScreen: boolean;
10
+ devMode: boolean;
11
+ minify: boolean;
12
+ outbase: string;
13
+ ports: never[];
14
+ externals: never[];
15
+ };
16
+ export default _default;