testeranto 0.49.10 → 0.70.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 (250) hide show
  1. package/.nvmrc +1 -0
  2. package/README.md +92 -9
  3. package/dist/cjs-shim.js +12 -0
  4. package/dist/common/Features.js +2 -3
  5. package/dist/common/Node.js +37 -62
  6. package/dist/common/NodeWriter.js +7 -9
  7. package/dist/common/Project.js +130 -627
  8. package/dist/common/SubPackages/puppeteer.js +19 -0
  9. package/dist/common/{subPackages → SubPackages}/react/component/node.js +4 -4
  10. package/dist/common/{subPackages → SubPackages}/react/component/web.js +4 -4
  11. package/dist/common/SubPackages/react/jsx/index.js +13 -0
  12. package/dist/common/SubPackages/react/jsx/node.js +10 -0
  13. package/dist/common/SubPackages/react/jsx/web.js +10 -0
  14. package/dist/common/{subPackages → SubPackages}/react-dom/component/node.js +6 -6
  15. package/dist/common/{subPackages → SubPackages}/react-dom/component/web.js +11 -12
  16. package/dist/common/SubPackages/react-dom/jsx/node.js +39 -0
  17. package/dist/common/{subPackages → SubPackages}/react-dom/jsx/web.js +19 -20
  18. package/dist/common/{subPackages → SubPackages}/react-test-renderer/MemoExoticComponent/node.js +3 -3
  19. package/dist/common/{subPackages → SubPackages}/react-test-renderer/component/index.js +25 -15
  20. package/dist/common/{subPackages/react-test-renderer/jsx → SubPackages/react-test-renderer/component}/node.js +3 -5
  21. package/dist/common/{subPackages/react-test-renderer/jsx → SubPackages/react-test-renderer/component}/web.js +3 -5
  22. package/dist/common/{subPackages → SubPackages}/react-test-renderer/fc/node.js +4 -4
  23. package/dist/common/{subPackages → SubPackages}/react-test-renderer/fc/web.js +4 -4
  24. package/dist/common/{subPackages → SubPackages}/react-test-renderer/jsx/index.js +8 -3
  25. package/dist/common/{subPackages/react-test-renderer/jsx-promised → SubPackages/react-test-renderer/jsx}/node.js +4 -4
  26. package/dist/common/{subPackages/react → SubPackages/react-test-renderer}/jsx/web.js +4 -4
  27. package/dist/common/{subPackages → SubPackages}/react-test-renderer/jsx-promised/index.js +3 -3
  28. package/dist/common/{subPackages/react/jsx → SubPackages/react-test-renderer/jsx-promised}/node.js +2 -2
  29. package/dist/common/Types.js +2 -0
  30. package/dist/common/Web.js +49 -113
  31. package/dist/common/electron.js +256 -42
  32. package/dist/common/esbuildConfigs/features.js +14 -0
  33. package/dist/common/esbuildConfigs/index.js +20 -0
  34. package/dist/common/esbuildConfigs/node.js +37 -0
  35. package/dist/common/esbuildConfigs/report.js +13 -0
  36. package/dist/common/esbuildConfigs/tests.js +13 -0
  37. package/dist/common/esbuildConfigs/web.js +53 -0
  38. package/dist/common/lib/abstractBase.js +200 -0
  39. package/dist/common/lib/basebuilder.js +86 -0
  40. package/dist/common/lib/classBuilder.js +40 -0
  41. package/dist/common/lib/core.js +81 -0
  42. package/dist/common/lib/index.js +21 -0
  43. package/dist/common/lib/types.js +2 -0
  44. package/dist/common/preload.js +15 -24
  45. package/dist/common/puppeteerConfiger.js +24 -0
  46. package/dist/common/report.html.js +31 -0
  47. package/dist/common/tsconfig.common.tsbuildinfo +1 -1
  48. package/dist/common/web.html.js +22 -0
  49. package/dist/module/Features.js +2 -3
  50. package/dist/module/Node.js +37 -62
  51. package/dist/module/NodeWriter.js +7 -9
  52. package/dist/module/Project.js +131 -605
  53. package/dist/module/SubPackages/puppeteer.js +14 -0
  54. package/dist/module/{subPackages → SubPackages}/react/component/node.js +3 -3
  55. package/dist/module/{subPackages → SubPackages}/react/component/web.js +3 -3
  56. package/dist/module/SubPackages/react/jsx/index.js +10 -0
  57. package/dist/module/SubPackages/react/jsx/node.js +5 -0
  58. package/dist/module/SubPackages/react/jsx/web.js +5 -0
  59. package/dist/module/{subPackages → SubPackages}/react-dom/component/node.js +7 -7
  60. package/dist/module/{subPackages → SubPackages}/react-dom/component/web.js +10 -11
  61. package/dist/module/SubPackages/react-dom/jsx/node.js +31 -0
  62. package/dist/module/{subPackages → SubPackages}/react-dom/jsx/web.js +20 -21
  63. package/dist/module/{subPackages → SubPackages}/react-test-renderer/MemoExoticComponent/node.js +3 -3
  64. package/dist/module/{subPackages → SubPackages}/react-test-renderer/component/index.js +22 -15
  65. package/dist/module/{subPackages → SubPackages}/react-test-renderer/component/node.js +2 -2
  66. package/dist/module/{subPackages → SubPackages}/react-test-renderer/component/web.js +2 -2
  67. package/dist/module/{subPackages → SubPackages}/react-test-renderer/fc/node.js +3 -3
  68. package/dist/module/{subPackages → SubPackages}/react-test-renderer/fc/web.js +3 -3
  69. package/dist/module/{subPackages → SubPackages}/react-test-renderer/jsx/index.js +8 -3
  70. package/dist/module/SubPackages/react-test-renderer/jsx/node.js +5 -0
  71. package/dist/module/SubPackages/react-test-renderer/jsx/web.js +5 -0
  72. package/dist/module/{subPackages → SubPackages}/react-test-renderer/jsx-promised/index.js +3 -3
  73. package/dist/module/{subPackages/react-test-renderer/jsx → SubPackages/react-test-renderer/jsx-promised}/node.js +1 -1
  74. package/dist/module/Types.js +2 -0
  75. package/dist/module/Web.js +49 -113
  76. package/dist/module/electron.js +257 -43
  77. package/dist/module/esbuildConfigs/features.js +12 -0
  78. package/dist/module/esbuildConfigs/index.js +18 -0
  79. package/dist/module/esbuildConfigs/node.js +32 -0
  80. package/dist/module/esbuildConfigs/report.js +11 -0
  81. package/dist/module/esbuildConfigs/tests.js +11 -0
  82. package/dist/module/esbuildConfigs/web.js +48 -0
  83. package/dist/module/lib/abstractBase.js +192 -0
  84. package/dist/module/lib/basebuilder.js +82 -0
  85. package/dist/module/lib/classBuilder.js +36 -0
  86. package/dist/module/lib/core.js +78 -0
  87. package/dist/module/lib/index.js +17 -0
  88. package/dist/module/lib/types.js +1 -0
  89. package/dist/module/preload.js +12 -24
  90. package/dist/module/puppeteerConfiger.js +19 -0
  91. package/dist/module/report.html.js +29 -0
  92. package/dist/module/tsconfig.module.tsbuildinfo +1 -1
  93. package/dist/module/web.html.js +20 -0
  94. package/dist/prebuild/Report.css +10326 -0
  95. package/dist/prebuild/Report.js +37456 -0
  96. package/dist/types/Features.d.ts +5 -5
  97. package/dist/types/Node.d.ts +5 -11
  98. package/dist/types/NodeWriter.d.ts +1 -1
  99. package/dist/types/Project.d.ts +2 -28
  100. package/dist/types/SubPackages/puppeteer.d.ts +6 -0
  101. package/dist/types/SubPackages/react/component/node.d.ts +7 -0
  102. package/dist/types/SubPackages/react/component/web.d.ts +7 -0
  103. package/dist/types/SubPackages/react/jsx/index.d.ts +15 -0
  104. package/dist/types/SubPackages/react/jsx/node.d.ts +4 -0
  105. package/dist/types/SubPackages/react/jsx/web.d.ts +4 -0
  106. package/dist/types/SubPackages/react-dom/component/node.d.ts +12 -0
  107. package/dist/types/SubPackages/react-dom/component/web.d.ts +5 -0
  108. package/dist/types/SubPackages/react-dom/jsx/node.d.ts +6 -0
  109. package/dist/types/SubPackages/react-dom/jsx/web.d.ts +5 -0
  110. package/dist/types/SubPackages/react-test-renderer/MemoExoticComponent/node.d.ts +5 -0
  111. package/dist/types/{subPackages → SubPackages}/react-test-renderer/component/index.d.ts +6 -6
  112. package/dist/types/{subPackages → SubPackages}/react-test-renderer/component/node.d.ts +4 -4
  113. package/dist/types/SubPackages/react-test-renderer/component/web.d.ts +4 -0
  114. package/dist/types/SubPackages/react-test-renderer/fc/node.d.ts +8 -0
  115. package/dist/types/SubPackages/react-test-renderer/fc/web.d.ts +8 -0
  116. package/dist/types/{subPackages → SubPackages}/react-test-renderer/jsx/index.d.ts +5 -4
  117. package/dist/types/SubPackages/react-test-renderer/jsx/node.d.ts +9 -0
  118. package/dist/types/SubPackages/react-test-renderer/jsx/web.d.ts +9 -0
  119. package/dist/types/{subPackages → SubPackages}/react-test-renderer/jsx-promised/index.d.ts +4 -4
  120. package/dist/types/SubPackages/react-test-renderer/jsx-promised/node.d.ts +5 -0
  121. package/dist/types/SubPackages/react-test-renderer/jsx-promised/web.d.ts +5 -0
  122. package/dist/types/Types.d.ts +49 -17
  123. package/dist/types/Web.d.ts +5 -11
  124. package/dist/types/esbuildConfigs/features.d.ts +4 -0
  125. package/dist/types/esbuildConfigs/index.d.ts +4 -0
  126. package/dist/types/esbuildConfigs/node.d.ts +4 -0
  127. package/dist/types/esbuildConfigs/report.d.ts +4 -0
  128. package/dist/types/esbuildConfigs/tests.d.ts +4 -0
  129. package/dist/types/esbuildConfigs/web.d.ts +4 -0
  130. package/dist/types/lib/abstractBase.d.ts +103 -0
  131. package/dist/types/lib/basebuilder.d.ts +25 -0
  132. package/dist/types/lib/classBuilder.d.ts +7 -0
  133. package/dist/types/lib/core.d.ts +8 -0
  134. package/dist/types/lib/index.d.ts +58 -0
  135. package/dist/types/lib/types.d.ts +70 -0
  136. package/dist/types/puppeteerConfiger.d.ts +4 -0
  137. package/dist/types/report.html.d.ts +2 -0
  138. package/dist/types/tsconfig.types.tsbuildinfo +1 -1
  139. package/dist/types/web.html.d.ts +2 -0
  140. package/electronBuild.ts +32 -0
  141. package/index.html +30 -0
  142. package/package.json +123 -87
  143. package/src/Features.ts +2 -4
  144. package/src/Node.ts +79 -155
  145. package/src/NodeWriter.ts +22 -22
  146. package/src/Project.ts +185 -783
  147. package/src/Report.tsx +30 -15
  148. package/src/SubPackages/puppeteer.ts +51 -0
  149. package/src/SubPackages/react/component/node.ts +43 -0
  150. package/src/SubPackages/react/component/web.ts +43 -0
  151. package/src/SubPackages/react/jsx/index.ts +32 -0
  152. package/src/SubPackages/react/jsx/node.ts +29 -0
  153. package/src/SubPackages/react/jsx/web.ts +30 -0
  154. package/src/{subPackages → SubPackages}/react-dom/component/node.ts +24 -44
  155. package/src/SubPackages/react-dom/component/web.ts +104 -0
  156. package/src/{subPackages → SubPackages}/react-dom/jsx/index.ts +0 -1
  157. package/src/SubPackages/react-dom/jsx/node.ts +68 -0
  158. package/src/SubPackages/react-dom/jsx/web.ts +102 -0
  159. package/src/SubPackages/react-test-renderer/MemoExoticComponent/node.ts +38 -0
  160. package/src/{subPackages → SubPackages}/react-test-renderer/component/index.ts +37 -49
  161. package/src/SubPackages/react-test-renderer/component/node.ts +16 -0
  162. package/src/SubPackages/react-test-renderer/component/web.ts +16 -0
  163. package/src/SubPackages/react-test-renderer/fc/node.ts +49 -0
  164. package/src/SubPackages/react-test-renderer/fc/web.ts +48 -0
  165. package/src/SubPackages/react-test-renderer/jsx/index.ts +49 -0
  166. package/src/SubPackages/react-test-renderer/jsx/node.ts +20 -0
  167. package/src/SubPackages/react-test-renderer/jsx/web.ts +20 -0
  168. package/src/{subPackages → SubPackages}/react-test-renderer/jsx-promised/index.ts +15 -26
  169. package/src/SubPackages/react-test-renderer/jsx-promised/node.ts +19 -0
  170. package/src/SubPackages/react-test-renderer/jsx-promised/web.ts +22 -0
  171. package/src/Types.ts +114 -17
  172. package/src/Web.ts +100 -225
  173. package/src/cjs-shim.js +12 -0
  174. package/src/electron.ts +303 -45
  175. package/src/esbuildConfigs/features.ts +17 -0
  176. package/src/esbuildConfigs/index.ts +22 -0
  177. package/src/esbuildConfigs/node.ts +60 -0
  178. package/src/esbuildConfigs/report.ts +15 -0
  179. package/src/esbuildConfigs/tests.ts +14 -0
  180. package/src/esbuildConfigs/web.ts +73 -0
  181. package/src/lib/abstractBase.ts +412 -0
  182. package/src/lib/basebuilder.ts +228 -0
  183. package/src/lib/classBuilder.ts +118 -0
  184. package/src/lib/core.ts +214 -0
  185. package/src/lib/index.ts +117 -0
  186. package/src/lib/types.ts +206 -0
  187. package/src/preload.ts +13 -27
  188. package/src/puppeteerConfiger.ts +26 -0
  189. package/src/report.html.ts +29 -0
  190. package/src/web.html.ts +20 -0
  191. package/tests/Rectangle.test.ts +189 -0
  192. package/tsconfig.json +19 -6
  193. package/tsconfig.module.json +15 -4
  194. package/tsconfig.types.json +14 -4
  195. package/yarn-error.log +3144 -0
  196. package/dist/common/core.js +0 -397
  197. package/dist/common/subPackages/react/jsx/index.js +0 -26
  198. package/dist/common/subPackages/react-dom/jsx/node.js +0 -95
  199. package/dist/common/subPackages/react-test-renderer/component/node.js +0 -8
  200. package/dist/common/subPackages/react-test-renderer/component/web.js +0 -8
  201. package/dist/module/Report.js +0 -186
  202. package/dist/module/core.js +0 -388
  203. package/dist/module/subPackages/react/jsx/index.js +0 -22
  204. package/dist/module/subPackages/react/jsx/node.js +0 -5
  205. package/dist/module/subPackages/react/jsx/web.js +0 -5
  206. package/dist/module/subPackages/react-dom/jsx/node.js +0 -87
  207. package/dist/module/subPackages/react-test-renderer/jsx/web.js +0 -5
  208. package/dist/module/subPackages/react-test-renderer/jsx-promised/node.js +0 -5
  209. package/dist/types/core.d.ts +0 -220
  210. package/dist/types/subPackages/react/component/node.d.ts +0 -12
  211. package/dist/types/subPackages/react/component/web.d.ts +0 -12
  212. package/dist/types/subPackages/react/jsx/index.d.ts +0 -15
  213. package/dist/types/subPackages/react/jsx/node.d.ts +0 -4
  214. package/dist/types/subPackages/react/jsx/web.d.ts +0 -4
  215. package/dist/types/subPackages/react-dom/component/node.d.ts +0 -14
  216. package/dist/types/subPackages/react-dom/component/web.d.ts +0 -19
  217. package/dist/types/subPackages/react-dom/jsx/node.d.ts +0 -8
  218. package/dist/types/subPackages/react-dom/jsx/web.d.ts +0 -5
  219. package/dist/types/subPackages/react-test-renderer/MemoExoticComponent/node.d.ts +0 -8
  220. package/dist/types/subPackages/react-test-renderer/component/web.d.ts +0 -9
  221. package/dist/types/subPackages/react-test-renderer/fc/node.d.ts +0 -9
  222. package/dist/types/subPackages/react-test-renderer/fc/web.d.ts +0 -9
  223. package/dist/types/subPackages/react-test-renderer/jsx/node.d.ts +0 -4
  224. package/dist/types/subPackages/react-test-renderer/jsx/web.d.ts +0 -4
  225. package/dist/types/subPackages/react-test-renderer/jsx-promised/node.d.ts +0 -4
  226. package/dist/types/subPackages/react-test-renderer/jsx-promised/web.d.ts +0 -4
  227. package/src/core.ts +0 -1399
  228. package/src/subPackages/react/component/node.ts +0 -75
  229. package/src/subPackages/react/component/web.ts +0 -80
  230. package/src/subPackages/react/jsx/index.ts +0 -64
  231. package/src/subPackages/react/jsx/node.ts +0 -29
  232. package/src/subPackages/react/jsx/web.ts +0 -29
  233. package/src/subPackages/react-dom/component/web.ts +0 -129
  234. package/src/subPackages/react-dom/jsx/node.ts +0 -145
  235. package/src/subPackages/react-dom/jsx/web.ts +0 -145
  236. package/src/subPackages/react-test-renderer/MemoExoticComponent/node.ts +0 -67
  237. package/src/subPackages/react-test-renderer/component/node.ts +0 -30
  238. package/src/subPackages/react-test-renderer/component/web.ts +0 -30
  239. package/src/subPackages/react-test-renderer/fc/node.ts +0 -77
  240. package/src/subPackages/react-test-renderer/fc/web.ts +0 -77
  241. package/src/subPackages/react-test-renderer/jsx/index.ts +0 -51
  242. package/src/subPackages/react-test-renderer/jsx/node.ts +0 -31
  243. package/src/subPackages/react-test-renderer/jsx/web.ts +0 -31
  244. package/src/subPackages/react-test-renderer/jsx-promised/node.ts +0 -31
  245. package/src/subPackages/react-test-renderer/jsx-promised/web.ts +0 -31
  246. /package/dist/common/{subPackages → SubPackages}/react-dom/jsx/index.js +0 -0
  247. /package/dist/common/{subPackages → SubPackages}/react-test-renderer/jsx-promised/web.js +0 -0
  248. /package/dist/module/{subPackages → SubPackages}/react-dom/jsx/index.js +0 -0
  249. /package/dist/module/{subPackages → SubPackages}/react-test-renderer/jsx-promised/web.js +0 -0
  250. /package/dist/types/{subPackages → SubPackages}/react-dom/jsx/index.d.ts +0 -0
@@ -1,4 +1,4 @@
1
- import Graph from "graphology";
1
+ import Graph from "graphology/dist/graphology.umd.js";
2
2
  declare const DirectedGraph: any;
3
3
  declare abstract class TesterantoGraph {
4
4
  name: string;
@@ -44,19 +44,19 @@ export declare class TesterantoFeatures {
44
44
  features: {
45
45
  inNetworks: {
46
46
  network: string;
47
- neighbors: string[];
47
+ neighbors: any;
48
48
  }[];
49
49
  name: string;
50
50
  }[];
51
51
  networks: ({
52
52
  name: string;
53
- graph: Graph<import("graphology-types").Attributes, import("graphology-types").Attributes, import("graphology-types").Attributes>;
53
+ graph: Graph;
54
54
  } | {
55
55
  name: string;
56
- graph: Graph<import("graphology-types").Attributes, import("graphology-types").Attributes, import("graphology-types").Attributes>;
56
+ graph: Graph;
57
57
  } | {
58
58
  name: string;
59
- graph: Graph<import("graphology-types").Attributes, import("graphology-types").Attributes, import("graphology-types").Attributes>;
59
+ graph: Graph;
60
60
  })[];
61
61
  };
62
62
  }
@@ -1,12 +1,6 @@
1
- import { ITTestResourceConfiguration, ITTestResourceRequest, ITTestShape, ITestArtificer, ITestSpecification } from "./core.js";
2
- declare const _default: <TestShape extends ITTestShape, IInput, ISubject, IStore, ISelection, IWhenShape, IThenShape, IState>(input: IInput, testSpecification: ITestSpecification<TestShape, ISubject, IStore, ISelection, IThenShape>, testImplementation: any, testInterface: {
3
- actionHandler?: ((b: (...any: any[]) => any) => any) | undefined;
4
- andWhen: (store: IStore, actioner: any, testResource: ITTestResourceConfiguration) => Promise<ISelection>;
5
- butThen?: ((store: IStore, callback: any, testResource: ITTestResourceConfiguration) => Promise<ISelection>) | undefined;
6
- assertioner?: ((t: IThenShape) => any) | undefined;
7
- afterAll?: ((store: IStore, artificer: ITestArtificer) => any) | undefined;
8
- afterEach?: ((store: IStore, key: string, artificer: ITestArtificer) => Promise<unknown>) | undefined;
9
- beforeAll?: ((input: IInput, artificer: ITestArtificer) => Promise<ISubject>) | undefined;
10
- beforeEach?: ((subject: ISubject, initialValues: any, testResource: ITTestResourceConfiguration, artificer: ITestArtificer) => Promise<IStore>) | undefined;
11
- }, testResourceRequirement?: ITTestResourceRequest) => Promise<void>;
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<any, any>>(input: ITestShape["iinput"], testSpecification: ITestSpecification<ITestShape>, testImplementation: ITestImplementation<ITestShape, object>, testInterface: Partial<INodeTestInterface<ITestShape>>, testResourceRequirement?: ITTestResourceRequest) => Promise<Testeranto<ITestShape>>;
12
6
  export default _default;
@@ -1,2 +1,2 @@
1
- import { ILogWriter } from "./core";
1
+ import { ILogWriter } from "./lib/index.js";
2
2
  export declare const NodeWriter: ILogWriter;
@@ -1,33 +1,7 @@
1
- import WebSocket from 'ws';
2
- import { TesterantoFeatures } from "./Features";
3
- import { IBaseConfig, IRunTime, ITestTypes } from "./Types";
4
- import { ITTestResourceRequirement } from './core';
5
- declare type ISchedulerProtocols = `ipc` | `ws`;
1
+ import { IBaseConfig, IRunTime } from "./lib/types.js";
6
2
  export declare class ITProject {
7
- clearScreen: boolean;
8
- devMode: boolean;
9
- exitCodes: Record<number, string>;
10
- features: TesterantoFeatures;
3
+ config: IBaseConfig;
11
4
  mode: `up` | `down`;
12
- ports: Record<string, string>;
13
- tests: ITestTypes[];
14
- websockets: Record<string, WebSocket>;
15
- resourceQueue: {
16
- requirement: ITTestResourceRequirement;
17
- protocol: ISchedulerProtocols;
18
- }[];
19
- private spinCycle;
20
- private spinAnimation;
21
5
  constructor(config: IBaseConfig);
22
- requestResource(requirement: ITTestResourceRequirement, protocol: ISchedulerProtocols): void;
23
6
  getSecondaryEndpointsPoints(runtime?: IRunTime): string[];
24
- initiateShutdown(reason: string): void;
25
- private shutdown;
26
- private spinner;
27
- private releaseTestResourceWs;
28
- private releaseTestResourcePm2;
29
- private allocateViaWs;
30
- private allocateViaIpc;
31
- private mainLoop;
32
7
  }
33
- export {};
@@ -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 IBaseTest<any, 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;
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ import { IBaseTest, ITestImplementation, ITestSpecification } from "../../../Types";
3
+ declare type IInput = typeof React.Component;
4
+ export declare type IImpl<ISpec extends IBaseTest, IState> = ITestImplementation<ISpec, object>;
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>>;
7
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ import { IBaseTest, ITestImplementation, ITestSpecification } from "../../../Types";
3
+ declare type IInput = typeof React.Component;
4
+ export declare type IImpl<ISpec extends IBaseTest, IState> = ITestImplementation<ISpec, object>;
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>>;
7
+ export default _default;
@@ -0,0 +1,15 @@
1
+ import { CElement } from "react";
2
+ import { IBaseTest, ITestImplementation, ITestSpecification } from "../../../Types";
3
+ export declare type IWhenShape = any;
4
+ export declare type IThenShape = any;
5
+ export declare type InitialState = unknown;
6
+ export declare type IInput = () => JSX.Element;
7
+ export declare type ISelection = CElement<any, any>;
8
+ export declare type IStore = CElement<any, any>;
9
+ export declare type ISubject = CElement<any, any>;
10
+ export declare type ITestImpl<ITestShape extends IBaseTest> = ITestImplementation<ITestShape>;
11
+ export declare type ITestSpec<ITestShape extends IBaseTest> = ITestSpecification<ITestShape>;
12
+ export declare const testInterface: {
13
+ beforeEach: (x: any, ndx: any, testRsource: any, artificer: any) => Promise<IStore>;
14
+ andWhen: (s: IStore, whenCB: any) => Promise<ISelection>;
15
+ };
@@ -0,0 +1,4 @@
1
+ import { IBaseTest, IPartialInterface } from "../../../Types";
2
+ import { ITestImpl, ITestSpec, IInput } from "./index.js";
3
+ declare const _default: <ITestShape extends IBaseTest<any, 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 { IBaseTest, IPartialWebInterface } from "../../../Types";
2
+ import { ITestImpl, ITestSpec, IInput } from "./index.js";
3
+ declare const _default: <ITestShape extends IBaseTest<any, 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;
@@ -0,0 +1,12 @@
1
+ import React, { ReactNode } from "react";
2
+ import { renderToStaticMarkup, renderToStaticNodeStream } from "react-dom/server";
3
+ import Stream from "stream";
4
+ import { IBaseTest, ITestImplementation, ITestSpecification } from "../../../Types";
5
+ declare type IInput = typeof React.Component;
6
+ export declare type IThenShape = any;
7
+ export declare type ISelection = ReactNode;
8
+ export declare type IStore = ReactNode;
9
+ export declare type ISubject = ReactNode;
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>>;
12
+ export default _default;
@@ -0,0 +1,5 @@
1
+ import React from "react";
2
+ import { IBaseTest, ITestImplementation, ITestSpecification } from "../../../Types";
3
+ declare type IInput = typeof React.Component;
4
+ declare const _default: <ITestShape extends IBaseTest<any, any>, IWhen, IGiven>(testInput: IInput, testSpecifications: ITestSpecification<ITestShape>, testImplementations: any) => void;
5
+ export default _default;
@@ -0,0 +1,6 @@
1
+ import { renderToStaticMarkup, renderToStaticNodeStream } from "react-dom/server";
2
+ import Stream from 'stream';
3
+ import { IBaseTest, ITestImplementation, ITestSpecification } from "../../../Types";
4
+ export { renderToStaticMarkup, renderToStaticNodeStream, Stream };
5
+ declare const _default: <ITestShape extends IBaseTest<any, 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 { IBaseTest, ITestImplementation, ITestSpecification } from "../../../Types";
2
+ import type { IInput } from "./index";
3
+ export declare type ISubject = HTMLElement;
4
+ declare const _default: <ITestShape extends IBaseTest<any, any>>(testImplementations: ITestImplementation<ITestShape, object>, testSpecifications: ITestSpecification<ITestShape>, testInput: IInput) => void;
5
+ export default _default;
@@ -0,0 +1,5 @@
1
+ import React from "react";
2
+ import { IBaseTest, ITestImplementation, ITestSpecification } from "../../../Types";
3
+ declare type IInput = React.MemoExoticComponent<() => JSX.Element>;
4
+ declare const _default: <ITestShape extends IBaseTest<any, any>, PropShape>(testImplementations: ITestImplementation<ITestShape, object>, testSpecifications: ITestSpecification<ITestShape>, testInput: IInput) => Promise<import("../../../lib/core").default<ITestShape>>;
5
+ export default _default;
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import renderer from "react-test-renderer";
3
- import { ITTestShape, ITestImplementation, ITestSpecification } from "../../../core";
3
+ import type { IBaseTest, ITestImplementation, ITestSpecification } from "../../../Types";
4
4
  export declare type ISuper<T> = T extends infer U ? U : object;
5
5
  export declare type IInput<P, S> = typeof React.Component<P, S>;
6
6
  export declare type InitialState = unknown;
@@ -9,12 +9,12 @@ export declare type IThenShape = any;
9
9
  export declare type ISelection = renderer.ReactTestRenderer;
10
10
  export declare type IStore = renderer.ReactTestRenderer;
11
11
  export declare type ISubject = renderer.ReactTestRenderer;
12
- export declare type IImpl<ITestShape extends ITTestShape, IProps> = ITestImplementation<IProps, renderer.ReactTestRenderer, IWhenShape, IThenShape, ITestShape>;
13
- export declare type ISpec<ITestShape extends ITTestShape> = ITestSpecification<ITestShape, ISubject, IStore, ISelection, IThenShape>;
12
+ export declare type IImpl<ITestShape extends IBaseTest> = ITestImplementation<ITestShape>;
13
+ export declare type ISpec<ITestShape extends IBaseTest> = ITestSpecification<ITestShape>;
14
14
  export declare const testInterface: {
15
- beforeEach: (CComponent: any, props: any) => Promise<renderer.ReactTestRenderer>;
16
- andWhen: (renderer: renderer.ReactTestRenderer, actioner: any) => Promise<renderer.ReactTestRenderer>;
17
- butThen: (s: IStore) => Promise<ISelection>;
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
18
  afterEach: (store: IStore, ndx: any, artificer: any) => Promise<{}>;
19
19
  afterAll: (store: IStore, artificer: any) => void;
20
20
  };
@@ -1,9 +1,9 @@
1
1
  /// <reference types="react" />
2
- import { ITTestShape } from "../../../core";
3
- import { IImpl, ISpec, IInput } from ".";
4
- declare const _default: <ITestShape extends ITTestShape, IProps, IState>(testImplementations: IImpl<ITestShape, IProps>, testSpecifications: ISpec<ITestShape>, testInput: {
2
+ import type { IBaseTest } from "../../../Types";
3
+ 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: {
5
5
  new (props: IProps | Readonly<IProps>): import("react").Component<IProps, IState, any>;
6
6
  new (props: IProps, context: any): import("react").Component<IProps, IState, any>;
7
7
  contextType?: import("react").Context<any> | undefined;
8
- }) => Promise<void>;
8
+ }) => Promise<import("../../../lib/core.js").default<ITestShape>>;
9
9
  export default _default;
@@ -0,0 +1,4 @@
1
+ import { IBaseTest } from "../../../Types";
2
+ import { IImpl, ISpec, IInput } from "./index.js";
3
+ declare const _default: <ITestShape extends IBaseTest<any, any>, IProps, IState>(testImplementations: IImpl<ITestShape>, testSpecifications: ISpec<ITestShape>, testInput: IInput<any, any>) => Promise<import("../../../lib/core").default<ITestShape>>;
4
+ export default _default;
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ import { ITestSpecification, ITestImplementation, IBaseTest } from "../../../Types";
3
+ export declare type IInput = React.FC;
4
+ export declare type IWhenShape = unknown;
5
+ export declare type IThenShape = unknown;
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>>;
8
+ export default _default;
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ import { ITestSpecification, ITestImplementation, IBaseTest } from "../../../Types";
3
+ export declare type IInput = React.FC;
4
+ export declare type IWhenShape = unknown;
5
+ export declare type IThenShape = unknown;
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>>;
8
+ export default _default;
@@ -1,5 +1,5 @@
1
1
  import renderer from "react-test-renderer";
2
- import { ITTestShape, ITestImplementation, ITestSpecification } from "../../../core";
2
+ import { IBaseTest, ITestImplementation, ITestSpecification } from "../../../Types";
3
3
  export declare type IWhenShape = any;
4
4
  export declare type IThenShape = any;
5
5
  export declare type InitialState = unknown;
@@ -7,9 +7,10 @@ export declare type IInput = (props?: any) => JSX.Element;
7
7
  export declare type ISelection = renderer.ReactTestRenderer;
8
8
  export declare type IStore = renderer.ReactTestRenderer;
9
9
  export declare type ISubject = renderer.ReactTestRenderer;
10
- export declare type ITestImpl<ITestShape extends ITTestShape> = ITestImplementation<InitialState, ISelection, IWhenShape, IThenShape, ITestShape>;
11
- export declare type ITestSpec<ITestShape extends ITTestShape> = ITestSpecification<ITestShape, ISubject, IStore, ISelection, IThenShape>;
10
+ export declare type ITestImpl<ITestShape extends IBaseTest> = ITestImplementation<ITestShape, object>;
11
+ export declare type ITestSpec<ITestShape extends IBaseTest> = ITestSpecification<ITestShape>;
12
12
  export declare const testInterface: {
13
+ butThen: (s: IStore, thenCB: any, tr: any) => Promise<ISelection>;
13
14
  beforeEach: (CComponent: any, props: any) => Promise<renderer.ReactTestRenderer>;
14
- andWhen: (renderer: renderer.ReactTestRenderer, actioner: () => (any: any) => any) => Promise<renderer.ReactTestRenderer>;
15
+ andWhen: (renderer: renderer.ReactTestRenderer, whenCB: (any: any) => any) => Promise<renderer.ReactTestRenderer>;
15
16
  };
@@ -0,0 +1,9 @@
1
+ import { IBaseTest } from "../../../Types";
2
+ import type { ITestImpl, ITestSpec } from "../jsx-promised";
3
+ import { IInput } from "./index.js";
4
+ declare const _default: <ITestShape extends IBaseTest<any, any>>(testImplementations: ITestImpl<ITestShape>, testSpecifications: ITestSpec<ITestShape>, testInput: IInput, testInterface2?: {
5
+ butThen: (s: import("react-test-renderer").ReactTestRenderer, thenCB: any, tr: any) => Promise<import("react-test-renderer").ReactTestRenderer>;
6
+ beforeEach: (CComponent: any, props: any) => Promise<import("react-test-renderer").ReactTestRenderer>;
7
+ andWhen: (renderer: import("react-test-renderer").ReactTestRenderer, whenCB: (any: any) => any) => Promise<import("react-test-renderer").ReactTestRenderer>;
8
+ }) => Promise<import("../../../lib/core.js").default<ITestShape>>;
9
+ export default _default;
@@ -0,0 +1,9 @@
1
+ import { IBaseTest } from "../../../Types";
2
+ import { ITestImpl, ITestSpec } from "../jsx-promised";
3
+ import { IInput } from "./index.js";
4
+ declare const _default: <ITestShape extends IBaseTest<any, any>>(testImplementations: ITestImpl<ITestShape>, testSpecifications: ITestSpec<ITestShape>, testInput: IInput, testInterface2?: {
5
+ butThen: (s: import("react-test-renderer").ReactTestRenderer, thenCB: any, tr: any) => Promise<import("react-test-renderer").ReactTestRenderer>;
6
+ beforeEach: (CComponent: any, props: any) => Promise<import("react-test-renderer").ReactTestRenderer>;
7
+ andWhen: (renderer: import("react-test-renderer").ReactTestRenderer, whenCB: (any: any) => any) => Promise<import("react-test-renderer").ReactTestRenderer>;
8
+ }) => Promise<import("../../../lib/core").default<ITestShape>>;
9
+ export default _default;
@@ -1,5 +1,5 @@
1
1
  import renderer from "react-test-renderer";
2
- import { ITTestShape, ITestImplementation, ITestSpecification } from "../../../core";
2
+ import { IBaseTest, ITestImplementation, ITestSpecification } from "../../../Types";
3
3
  export declare type IWhenShape = any;
4
4
  export declare type IThenShape = any;
5
5
  export declare type InitialState = unknown;
@@ -7,9 +7,9 @@ export declare type IInput = Promise<JSX.Element>;
7
7
  export declare type ISelection = renderer.ReactTestRenderer;
8
8
  export declare type IStore = renderer.ReactTestRenderer;
9
9
  export declare type ISubject = renderer.ReactTestRenderer;
10
- export declare type ITestImpl<ITestShape extends ITTestShape> = ITestImplementation<InitialState, ISelection, IWhenShape, IThenShape, ITestShape>;
11
- export declare type ITestSpec<ITestShape extends ITTestShape> = ITestSpecification<ITestShape, ISubject, IStore, ISelection, IThenShape>;
10
+ export declare type ITestImpl<ITestShape extends IBaseTest> = ITestImplementation<ITestShape>;
11
+ export declare type ITestSpec<ITestShape extends IBaseTest> = ITestSpecification<ITestShape>;
12
12
  export declare const testInterface: {
13
13
  beforeEach: (CComponent: any) => Promise<renderer.ReactTestRenderer>;
14
- andWhen: (renderer: renderer.ReactTestRenderer, actioner: () => (any: any) => any) => Promise<renderer.ReactTestRenderer>;
14
+ andWhen: (renderer: renderer.ReactTestRenderer, whenCB: () => (any: any) => any) => Promise<renderer.ReactTestRenderer>;
15
15
  };
@@ -0,0 +1,5 @@
1
+ import { IInput } from ".";
2
+ import { IBaseTest } from "../../../Types";
3
+ import { ITestImpl, ITestSpec } from "../../react/jsx";
4
+ declare const _default: <ITestShape extends IBaseTest<any, any>>(testImplementations: ITestImpl<ITestShape>, testSpecifications: ITestSpec<ITestShape>, testInput: IInput) => Promise<import("../../../lib/core").default<ITestShape>>;
5
+ export default _default;
@@ -0,0 +1,5 @@
1
+ import { IBaseTest } from "../../../Types";
2
+ import { ITestImpl, ITestSpec } from "../../react/jsx";
3
+ import { IInput } from "./index";
4
+ declare const _default: <ITestShape extends IBaseTest<any, any>>(testImplementations: ITestImpl<ITestShape>, testSpecifications: ITestSpec<ITestShape>, testInput: IInput) => Promise<import("../../../lib/core").default<ITestShape>>;
5
+ export default _default;
@@ -1,18 +1,50 @@
1
- export declare type IBaseConfig = {
2
- clearScreen: boolean;
3
- devMode: boolean;
4
- features: string;
5
- webPlugins: any[];
6
- nodePlugins: any[];
7
- minify: boolean;
8
- outbase: string;
9
- outdir: string;
10
- ports: string[];
11
- tests: string;
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
+ export declare type IPartialInterface<I extends IBaseTest> = Partial<ITestInterface<I>>;
6
+ export declare type IPartialNodeInterface<I extends IBaseTest> = Partial<INodeTestInterface<I>>;
7
+ export declare type IPartialWebInterface<I extends IBaseTest> = Partial<IWebTestInterface<I>>;
8
+ export declare type IEntry<ITestShape extends IBaseTest> = (input: ITestShape["iinput"], testSpecification: ITestSpecification<ITestShape>, testImplementation: ITestImplementation<ITestShape, object>, testInterface: IPartialInterface<ITestShape>, testResourceRequirement: ITTestResourceRequest) => Promise<Testeranto<ITestShape>>;
9
+ export declare type ITestSpecification<ITestShape extends IBaseTest> = (Suite: {
10
+ [K in keyof ITestShape["suites"]]: (name: string, givens: IGivens<ITestShape>, checks: BaseCheck<ITestShape>[]) => BaseSuite<ITestShape>;
11
+ }, Given: {
12
+ [K in keyof ITestShape["givens"]]: (features: string[], whens: BaseWhen<ITestShape>[], thens: BaseThen<ITestShape>[], ...xtrasB: ITestShape["givens"][K]) => BaseGiven<ITestShape>;
13
+ }, When: {
14
+ [K in keyof ITestShape["whens"]]: (...xtrasC: ITestShape["whens"][K]) => BaseWhen<ITestShape>;
15
+ }, Then: {
16
+ [K in keyof ITestShape["thens"]]: (...xtrasD: ITestShape["thens"][K]) => BaseThen<ITestShape>;
17
+ }, Check: ITestCheckCallback<ITestShape>) => any[];
18
+ export declare type ITestImplementation<ITestShape extends IBaseTest, IMod = object> = Modify<{
19
+ suites: {
20
+ [K in keyof ITestShape["suites"]]: string;
21
+ };
22
+ givens: {
23
+ [K in keyof ITestShape["givens"]]: (...Ig: ITestShape["givens"][K]) => ITestShape["given"];
24
+ };
25
+ whens: {
26
+ [K in keyof ITestShape["whens"]]: (...Iw: ITestShape["whens"][K]) => (zel: ITestShape["iselection"]) => ITestShape["when"];
27
+ };
28
+ thens: {
29
+ [K in keyof ITestShape["thens"]]: (...It: ITestShape["thens"][K]) => (ssel: ITestShape["iselection"]) => ITestShape["then"];
30
+ };
31
+ checks: {
32
+ [K in keyof ITestShape["checks"]]: (...Ic: ITestShape["checks"][K]) => ITestShape["given"];
33
+ };
34
+ }, IMod>;
35
+ declare type Modify<T, R> = Omit<T, keyof R> & R;
36
+ export declare type IBaseTest<Shape = any, II = Shape> = {
37
+ iinput: II;
38
+ isubject: Shape;
39
+ istore: Shape;
40
+ iselection: Shape;
41
+ given: any;
42
+ when: any;
43
+ then: any;
44
+ suites: Record<string, any>;
45
+ givens: Record<string, any>;
46
+ whens: Record<string, any>;
47
+ thens: Record<string, any>;
48
+ checks: Record<string, any>;
12
49
  };
13
- export declare type IRunTime = `node` | `web`;
14
- export declare type ITestTypes = [
15
- string,
16
- IRunTime,
17
- ITestTypes[]
18
- ];
50
+ export {};
@@ -1,12 +1,6 @@
1
- import { ITTestResourceConfiguration, ITTestResourceRequest, ITTestShape, ITestArtificer, ITestSpecification } from "./core";
2
- declare const _default: <TestShape extends ITTestShape, IInput, ISubject, IStore, ISelection, WhenShape, IThenShape, IState>(input: IInput, testSpecification: ITestSpecification<TestShape, ISubject, IStore, ISelection, IThenShape>, testImplementation: any, testInterface: {
3
- actionHandler?: ((b: (...any: any[]) => any) => any) | undefined;
4
- andWhen: (store: IStore, actioner: any, testResource: ITTestResourceConfiguration) => Promise<ISelection>;
5
- butThen?: ((store: IStore, callback: any, testResource: ITTestResourceConfiguration) => Promise<ISelection>) | undefined;
6
- assertioner?: ((t: IThenShape) => any) | undefined;
7
- afterAll?: ((store: IStore, artificer: ITestArtificer) => any) | undefined;
8
- afterEach?: ((store: IStore, key: string, artificer: ITestArtificer) => Promise<unknown>) | undefined;
9
- beforeAll?: ((input: IInput, artificer: ITestArtificer) => Promise<ISubject>) | undefined;
10
- beforeEach?: ((subject: ISubject, initialValues: any, testResource: ITTestResourceConfiguration, artificer: ITestArtificer) => Promise<IStore>) | undefined;
11
- }, testResourceRequirement?: ITTestResourceRequest) => Promise<void>;
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<any, any>>(input: ITestShape["iinput"], testSpecification: ITestSpecification<ITestShape>, testImplementation: ITestImplementation<ITestShape, object>, testInterface: Partial<IWebTestInterface<ITestShape>>, testResourceRequirement?: ITTestResourceRequest) => Promise<Testeranto<ITestShape>>;
12
6
  export default _default;
@@ -0,0 +1,4 @@
1
+ import { BuildOptions } from "esbuild";
2
+ import { IBaseConfig } from "../lib/types";
3
+ declare const _default: (config: IBaseConfig) => BuildOptions;
4
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import { BuildOptions } from "esbuild";
2
+ import { IBaseConfig } from "../lib/types";
3
+ declare const _default: (config: IBaseConfig) => BuildOptions;
4
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import { BuildOptions } from "esbuild";
2
+ import { IBaseConfig } from "../lib/types";
3
+ declare const _default: (config: IBaseConfig, entryPoints: Set<string> | string[]) => BuildOptions;
4
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import { BuildOptions } from "esbuild";
2
+ import { IBaseConfig } from "../lib/types";
3
+ declare const _default: (config: IBaseConfig) => BuildOptions;
4
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import { BuildOptions } from "esbuild";
2
+ import { IBaseConfig } from "../lib/types";
3
+ declare const _default: (config: IBaseConfig) => BuildOptions;
4
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import { BuildOptions } from "esbuild";
2
+ import { IBaseConfig } from "../lib/types.js";
3
+ declare const _default: (config: IBaseConfig, entryPoints: Set<string> | string[]) => BuildOptions;
4
+ export default _default;
@@ -0,0 +1,103 @@
1
+ import { IBaseTest } from "../Types";
2
+ import { ITTestResourceConfiguration, ITestArtifactory, ITLog } from ".";
3
+ import { IUtils } from "./types";
4
+ export declare type IGivens<ITestShape extends IBaseTest> = Record<string, BaseGiven<ITestShape>>;
5
+ export declare abstract class BaseSuite<ITestShape extends IBaseTest> {
6
+ name: string;
7
+ givens: IGivens<ITestShape>;
8
+ checks: BaseCheck<ITestShape>[];
9
+ store: ITestShape["istore"];
10
+ fails: BaseGiven<ITestShape>[];
11
+ testResourceConfiguration: ITTestResourceConfiguration;
12
+ index: number;
13
+ constructor(name: string, index: number, givens?: IGivens<ITestShape>, checks?: BaseCheck<ITestShape>[]);
14
+ toObj(): {
15
+ name: string;
16
+ givens: {
17
+ name: string;
18
+ whens: {
19
+ name: string;
20
+ error: boolean;
21
+ }[];
22
+ thens: {
23
+ name: string;
24
+ error: boolean;
25
+ }[];
26
+ error: (string | Error | undefined)[] | null;
27
+ features: string[];
28
+ }[];
29
+ fails: BaseGiven<ITestShape>[];
30
+ };
31
+ setup(s: ITestShape["iinput"], artifactory: ITestArtifactory, tr: ITTestResourceConfiguration, utils: IUtils): Promise<ITestShape["isubject"]>;
32
+ assertThat(t: ITestShape["then"]): unknown;
33
+ run(input: ITestShape["iinput"], testResourceConfiguration: ITTestResourceConfiguration, artifactory: (fPath: string, value: unknown) => void, tLog: (...string: any[]) => void, utils: IUtils): Promise<BaseSuite<ITestShape>>;
34
+ }
35
+ export declare abstract class BaseGiven<ITestShape extends IBaseTest> {
36
+ name: string;
37
+ features: string[];
38
+ whens: BaseWhen<ITestShape>[];
39
+ thens: BaseThen<ITestShape>[];
40
+ error: Error;
41
+ store: ITestShape["istore"];
42
+ recommendedFsPath: string;
43
+ givenCB: ITestShape["given"];
44
+ initialValues: any;
45
+ constructor(name: string, features: string[], whens: BaseWhen<ITestShape>[], thens: BaseThen<ITestShape>[], givenCB: ITestShape["given"], initialValues: any);
46
+ beforeAll(store: ITestShape["istore"], artifactory: ITestArtifactory): ITestShape["istore"];
47
+ afterAll(store: ITestShape["istore"], artifactory: ITestArtifactory, utils: IUtils): ITestShape["istore"];
48
+ toObj(): {
49
+ name: string;
50
+ whens: {
51
+ name: string;
52
+ error: boolean;
53
+ }[];
54
+ thens: {
55
+ name: string;
56
+ error: boolean;
57
+ }[];
58
+ error: (string | Error | undefined)[] | null;
59
+ features: string[];
60
+ };
61
+ abstract givenThat(subject: ITestShape["isubject"], testResourceConfiguration: any, artifactory: ITestArtifactory, givenCB: ITestShape["given"]): Promise<ITestShape["istore"]>;
62
+ afterEach(store: ITestShape["istore"], key: string, artifactory: ITestArtifactory, utils: IUtils): Promise<unknown>;
63
+ give(subject: ITestShape["isubject"], key: string, testResourceConfiguration: any, tester: any, artifactory: ITestArtifactory, tLog: ITLog, utils: IUtils): Promise<ITestShape["istore"]>;
64
+ }
65
+ export declare abstract class BaseWhen<ITestShape extends IBaseTest> {
66
+ name: string;
67
+ whenCB: (x: ITestShape["iselection"]) => ITestShape["then"];
68
+ error: boolean;
69
+ constructor(name: string, whenCB: (xyz: ITestShape["iselection"]) => ITestShape["then"]);
70
+ abstract andWhen(store: ITestShape["istore"], whenCB: (x: ITestShape["iselection"]) => ITestShape["then"], testResource: any): any;
71
+ toObj(): {
72
+ name: string;
73
+ error: boolean;
74
+ };
75
+ test(store: ITestShape["istore"], testResourceConfiguration: any, tLog: ITLog, utils: IUtils): Promise<any>;
76
+ }
77
+ export declare abstract class BaseThen<ITestShape extends IBaseTest> {
78
+ name: string;
79
+ thenCB: (storeState: ITestShape["iselection"]) => ITestShape["then"];
80
+ error: boolean;
81
+ constructor(name: string, thenCB: (val: ITestShape["iselection"]) => ITestShape["then"]);
82
+ toObj(): {
83
+ name: string;
84
+ error: boolean;
85
+ };
86
+ abstract butThen(store: ITestShape["istore"], thenCB: any, testResourceConfiguration?: any): Promise<ITestShape["iselection"]>;
87
+ test(store: ITestShape["istore"], testResourceConfiguration: any, tLog: ITLog, utils: IUtils): Promise<ITestShape["then"] | undefined>;
88
+ }
89
+ export declare abstract class BaseCheck<ITestShape extends IBaseTest> {
90
+ name: string;
91
+ features: string[];
92
+ checkCB: (whens: any, thens: any) => any;
93
+ whens: {
94
+ [K in keyof ITestShape["whens"]]: (p: any, tc: any) => BaseWhen<ITestShape>;
95
+ };
96
+ thens: {
97
+ [K in keyof ITestShape["thens"]]: (p: any, tc: any) => BaseThen<ITestShape>;
98
+ };
99
+ constructor(name: string, features: string[], checkCB: (whens: any, thens: any) => any, whens: any, thens: any);
100
+ abstract checkThat(subject: ITestShape["isubject"], testResourceConfiguration: any, artifactory: ITestArtifactory): Promise<ITestShape["istore"]>;
101
+ afterEach(store: ITestShape["istore"], key: string, cb: any, utils: IUtils): Promise<unknown>;
102
+ check(subject: ITestShape["isubject"], key: string, testResourceConfiguration: any, tester: any, artifactory: ITestArtifactory, tLog: ITLog, utils: IUtils): Promise<void>;
103
+ }
@@ -0,0 +1,25 @@
1
+ import { ITTestResourceRequest, ITestJob, ILogWriter } from ".";
2
+ import { IBaseTest, ITestSpecification } from "../Types.js";
3
+ import { ISuiteKlasser, IGivenKlasser, IWhenKlasser, IThenKlasser, ICheckKlasser } from "./types.js";
4
+ import { BaseCheck, BaseWhen, BaseThen, BaseGiven } from "./abstractBase.js";
5
+ export declare abstract class BaseBuilder<ITestShape extends IBaseTest, SuiteExtensions, GivenExtensions, WhenExtensions, ThenExtensions, CheckExtensions> {
6
+ readonly input: ITestShape["iinput"];
7
+ specs: any;
8
+ assertThis: (t: ITestShape["then"]) => {};
9
+ testResourceRequirement: ITTestResourceRequest;
10
+ artifacts: Promise<unknown>[];
11
+ testJobs: ITestJob[];
12
+ testSpecification: ITestSpecification<ITestShape>;
13
+ suitesOverrides: Record<keyof SuiteExtensions, ISuiteKlasser<ITestShape>>;
14
+ givenOverides: Record<keyof GivenExtensions, IGivenKlasser<ITestShape>>;
15
+ whenOverides: Record<keyof WhenExtensions, IWhenKlasser<ITestShape>>;
16
+ thenOverides: Record<keyof ThenExtensions, IThenKlasser<ITestShape>>;
17
+ checkOverides: Record<keyof CheckExtensions, ICheckKlasser<ITestShape>>;
18
+ constructor(input: ITestShape["iinput"], suitesOverrides: Record<keyof SuiteExtensions, ISuiteKlasser<ITestShape>>, givenOverides: Record<keyof GivenExtensions, IGivenKlasser<ITestShape>>, whenOverides: Record<keyof WhenExtensions, IWhenKlasser<ITestShape>>, thenOverides: Record<keyof ThenExtensions, IThenKlasser<ITestShape>>, checkOverides: Record<keyof CheckExtensions, ICheckKlasser<ITestShape>>, logWriter: ILogWriter, testResourceRequirement: ITTestResourceRequest, testSpecification: any);
19
+ Specs(): any;
20
+ Suites(): Record<keyof SuiteExtensions, ISuiteKlasser<ITestShape>>;
21
+ Given(): Record<keyof GivenExtensions, (name: string, features: string[], whens: BaseWhen<ITestShape>[], thens: BaseThen<ITestShape>[], gcb: any) => BaseGiven<ITestShape>>;
22
+ When(): Record<keyof WhenExtensions, (arg0: ITestShape["istore"], ...arg1: any) => BaseWhen<ITestShape>>;
23
+ Then(): Record<keyof ThenExtensions, (selection: ITestShape["iselection"], expectation: any) => BaseThen<ITestShape>>;
24
+ Check(): Record<keyof CheckExtensions, (feature: string, callback: (whens: any, thens: any) => any, whens: any, thens: any, x: any) => BaseCheck<ITestShape>>;
25
+ }
@@ -0,0 +1,7 @@
1
+ import { IBaseTest, ITestImplementation, ITestSpecification } from "../Types.js";
2
+ import { BaseBuilder } from "./basebuilder.js";
3
+ import { ILogWriter, ITTestResourceRequest } from ".";
4
+ import { ISuiteKlasser, IGivenKlasser, IWhenKlasser, IThenKlasser, ICheckKlasser } from "./types.js";
5
+ export declare abstract class ClassBuilder<ITestShape extends IBaseTest> extends BaseBuilder<ITestShape, any, any, any, any, any> {
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, logWriter: ILogWriter);
7
+ }