testeranto 0.79.6 → 0.79.7

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 (181) hide show
  1. package/dist/common/Features.js +84 -0
  2. package/dist/common/Node.js +23 -0
  3. package/dist/common/PM/index.js +7 -0
  4. package/dist/common/PM/main.js +641 -0
  5. package/dist/common/PM/node.js +88 -0
  6. package/dist/common/PM/web.js +132 -0
  7. package/dist/common/Project.js +186 -0
  8. package/dist/common/Puppeteer.js +104 -0
  9. package/dist/common/Reporter.js +112 -0
  10. package/dist/common/Scheduler.js +1 -0
  11. package/dist/common/SubPackages/puppeteer.js +21 -0
  12. package/dist/common/SubPackages/react/component/node.js +19 -0
  13. package/dist/common/SubPackages/react/component/web.js +19 -0
  14. package/dist/common/SubPackages/react/jsx/index.js +25 -0
  15. package/dist/common/SubPackages/react/jsx/node.js +10 -0
  16. package/dist/common/SubPackages/react/jsx/web.js +10 -0
  17. package/dist/common/SubPackages/react-dom/component/node.js +101 -0
  18. package/dist/common/SubPackages/react-dom/component/web.js +93 -0
  19. package/dist/common/SubPackages/react-dom/jsx/index.js +2 -0
  20. package/dist/common/SubPackages/react-dom/jsx/node.js +39 -0
  21. package/dist/common/SubPackages/react-dom/jsx/web.js +118 -0
  22. package/dist/common/SubPackages/react-test-renderer/MemoExoticComponent/node.js +44 -0
  23. package/dist/common/SubPackages/react-test-renderer/component/index.js +2 -0
  24. package/dist/common/SubPackages/react-test-renderer/component/interface.js +68 -0
  25. package/dist/common/SubPackages/react-test-renderer/component/node.js +8 -0
  26. package/dist/common/SubPackages/react-test-renderer/component/web.js +8 -0
  27. package/dist/common/SubPackages/react-test-renderer/fc/node.js +50 -0
  28. package/dist/common/SubPackages/react-test-renderer/fc/web.js +50 -0
  29. package/dist/common/SubPackages/react-test-renderer/jsx/index.js +48 -0
  30. package/dist/common/SubPackages/react-test-renderer/jsx/node.js +10 -0
  31. package/dist/common/SubPackages/react-test-renderer/jsx/web.js +10 -0
  32. package/dist/common/SubPackages/react-test-renderer/jsx-promised/index.js +42 -0
  33. package/dist/common/SubPackages/react-test-renderer/jsx-promised/node.js +10 -0
  34. package/dist/common/SubPackages/react-test-renderer/jsx-promised/web.js +10 -0
  35. package/dist/common/TaskManBackEnd.js +174 -0
  36. package/dist/common/Types.js +2 -0
  37. package/dist/common/Web.js +39 -0
  38. package/dist/common/esbuildConfigs/features.js +14 -0
  39. package/dist/common/esbuildConfigs/index.js +21 -0
  40. package/dist/common/esbuildConfigs/inputFilesPlugin.js +49 -0
  41. package/dist/common/esbuildConfigs/node.js +39 -0
  42. package/dist/common/esbuildConfigs/report.js +13 -0
  43. package/dist/common/esbuildConfigs/tests.js +13 -0
  44. package/dist/common/esbuildConfigs/web.js +57 -0
  45. package/dist/common/lib/abstractBase.js +553 -0
  46. package/dist/common/lib/basebuilder.js +79 -0
  47. package/dist/common/lib/classBuilder.js +42 -0
  48. package/dist/common/lib/core.js +75 -0
  49. package/dist/common/lib/index.js +22 -0
  50. package/dist/common/lib/types.js +2 -0
  51. package/dist/common/mongooseSchemas.js +56 -0
  52. package/dist/common/package.json +3 -0
  53. package/dist/common/preload.js +15 -0
  54. package/dist/common/puppeteerConfiger.js +24 -0
  55. package/dist/common/report.html.js +31 -0
  56. package/dist/common/tsconfig.common.tsbuildinfo +1 -0
  57. package/dist/common/utils.js +16 -0
  58. package/dist/common/web.html.js +22 -0
  59. package/dist/module/ExampleTab.js +112 -0
  60. package/dist/module/Features.js +73 -0
  61. package/dist/module/Node.js +18 -0
  62. package/dist/module/PM/index.js +3 -0
  63. package/dist/module/PM/main.js +611 -0
  64. package/dist/module/PM/node.js +81 -0
  65. package/dist/module/PM/web.js +125 -0
  66. package/dist/module/Project.js +179 -0
  67. package/dist/module/Puppeteer.js +99 -0
  68. package/dist/module/Reporter.js +107 -0
  69. package/dist/module/Scheduler.js +1 -0
  70. package/dist/module/SubPackages/puppeteer.js +16 -0
  71. package/dist/module/SubPackages/react/component/node.js +14 -0
  72. package/dist/module/SubPackages/react/component/web.js +14 -0
  73. package/dist/module/SubPackages/react/jsx/index.js +19 -0
  74. package/dist/module/SubPackages/react/jsx/node.js +5 -0
  75. package/dist/module/SubPackages/react/jsx/web.js +5 -0
  76. package/dist/module/SubPackages/react-dom/component/node.js +93 -0
  77. package/dist/module/SubPackages/react-dom/component/web.js +88 -0
  78. package/dist/module/SubPackages/react-dom/jsx/index.js +1 -0
  79. package/dist/module/SubPackages/react-dom/jsx/node.js +31 -0
  80. package/dist/module/SubPackages/react-dom/jsx/web.js +90 -0
  81. package/dist/module/SubPackages/react-test-renderer/MemoExoticComponent/node.js +16 -0
  82. package/dist/module/SubPackages/react-test-renderer/component/index.js +1 -0
  83. package/dist/module/SubPackages/react-test-renderer/component/interface.js +39 -0
  84. package/dist/module/SubPackages/react-test-renderer/component/node.js +3 -0
  85. package/dist/module/SubPackages/react-test-renderer/component/web.js +3 -0
  86. package/dist/module/SubPackages/react-test-renderer/fc/node.js +22 -0
  87. package/dist/module/SubPackages/react-test-renderer/fc/web.js +22 -0
  88. package/dist/module/SubPackages/react-test-renderer/jsx/index.js +19 -0
  89. package/dist/module/SubPackages/react-test-renderer/jsx/node.js +5 -0
  90. package/dist/module/SubPackages/react-test-renderer/jsx/web.js +5 -0
  91. package/dist/module/SubPackages/react-test-renderer/jsx-promised/index.js +16 -0
  92. package/dist/module/SubPackages/react-test-renderer/jsx-promised/node.js +5 -0
  93. package/dist/module/SubPackages/react-test-renderer/jsx-promised/web.js +5 -0
  94. package/dist/module/TaskManBackEnd.js +169 -0
  95. package/dist/module/TaskManFrontEnd.js +600 -0
  96. package/dist/module/Types.js +1 -0
  97. package/dist/module/Web.js +34 -0
  98. package/dist/module/esbuildConfigs/features.js +12 -0
  99. package/dist/module/esbuildConfigs/index.js +19 -0
  100. package/dist/module/esbuildConfigs/inputFilesPlugin.js +44 -0
  101. package/dist/module/esbuildConfigs/node.js +34 -0
  102. package/dist/module/esbuildConfigs/report.js +11 -0
  103. package/dist/module/esbuildConfigs/tests.js +11 -0
  104. package/dist/module/esbuildConfigs/web.js +52 -0
  105. package/dist/module/lib/abstractBase.js +545 -0
  106. package/dist/module/lib/basebuilder.js +75 -0
  107. package/dist/module/lib/classBuilder.js +38 -0
  108. package/dist/module/lib/core.js +72 -0
  109. package/dist/module/lib/index.js +18 -0
  110. package/dist/module/lib/types.js +1 -0
  111. package/dist/module/mongooseSchemas.js +50 -0
  112. package/dist/module/package.json +3 -0
  113. package/dist/module/preload.js +15 -0
  114. package/dist/module/puppeteerConfiger.js +19 -0
  115. package/dist/module/report.html.js +29 -0
  116. package/dist/module/tsconfig.module.tsbuildinfo +1 -0
  117. package/dist/module/utils.js +9 -0
  118. package/dist/module/web.html.js +20 -0
  119. package/dist/prebuild/Report.css +11358 -0
  120. package/dist/prebuild/Report.js +37666 -0
  121. package/dist/prebuild/TaskManBackEnd.mjs +180 -0
  122. package/dist/prebuild/TaskManFrontEnd.css +12301 -0
  123. package/dist/prebuild/TaskManFrontEnd.js +81737 -0
  124. package/dist/types/Features.d.ts +68 -0
  125. package/dist/types/Node.d.ts +6 -0
  126. package/dist/types/PM/index.d.ts +20 -0
  127. package/dist/types/PM/main.d.ts +31 -0
  128. package/dist/types/PM/node.d.ts +27 -0
  129. package/dist/types/PM/web.d.ts +25 -0
  130. package/dist/types/Project.d.ts +7 -0
  131. package/dist/types/Puppeteer.d.ts +1 -0
  132. package/dist/types/Reporter.d.ts +1 -0
  133. package/dist/types/Scheduler.d.ts +0 -0
  134. package/dist/types/SubPackages/puppeteer.d.ts +6 -0
  135. package/dist/types/SubPackages/react/component/node.d.ts +7 -0
  136. package/dist/types/SubPackages/react/component/web.d.ts +7 -0
  137. package/dist/types/SubPackages/react/jsx/index.d.ts +12 -0
  138. package/dist/types/SubPackages/react/jsx/node.d.ts +4 -0
  139. package/dist/types/SubPackages/react/jsx/web.d.ts +4 -0
  140. package/dist/types/SubPackages/react-dom/component/node.d.ts +12 -0
  141. package/dist/types/SubPackages/react-dom/component/web.d.ts +11 -0
  142. package/dist/types/SubPackages/react-dom/jsx/index.d.ts +6 -0
  143. package/dist/types/SubPackages/react-dom/jsx/node.d.ts +6 -0
  144. package/dist/types/SubPackages/react-dom/jsx/web.d.ts +5 -0
  145. package/dist/types/SubPackages/react-test-renderer/MemoExoticComponent/node.d.ts +5 -0
  146. package/dist/types/SubPackages/react-test-renderer/component/index.d.ts +13 -0
  147. package/dist/types/SubPackages/react-test-renderer/component/interface.d.ts +9 -0
  148. package/dist/types/SubPackages/react-test-renderer/component/node.d.ts +8 -0
  149. package/dist/types/SubPackages/react-test-renderer/component/web.d.ts +3 -0
  150. package/dist/types/SubPackages/react-test-renderer/fc/node.d.ts +8 -0
  151. package/dist/types/SubPackages/react-test-renderer/fc/web.d.ts +8 -0
  152. package/dist/types/SubPackages/react-test-renderer/jsx/index.d.ts +16 -0
  153. package/dist/types/SubPackages/react-test-renderer/jsx/node.d.ts +8 -0
  154. package/dist/types/SubPackages/react-test-renderer/jsx/web.d.ts +8 -0
  155. package/dist/types/SubPackages/react-test-renderer/jsx-promised/index.d.ts +15 -0
  156. package/dist/types/SubPackages/react-test-renderer/jsx-promised/node.d.ts +4 -0
  157. package/dist/types/SubPackages/react-test-renderer/jsx-promised/web.d.ts +4 -0
  158. package/dist/types/TaskManBackEnd.d.ts +1 -0
  159. package/dist/types/Types.d.ts +50 -0
  160. package/dist/types/Web.d.ts +6 -0
  161. package/dist/types/esbuildConfigs/features.d.ts +4 -0
  162. package/dist/types/esbuildConfigs/index.d.ts +4 -0
  163. package/dist/types/esbuildConfigs/inputFilesPlugin.d.ts +5 -0
  164. package/dist/types/esbuildConfigs/node.d.ts +4 -0
  165. package/dist/types/esbuildConfigs/report.d.ts +4 -0
  166. package/dist/types/esbuildConfigs/tests.d.ts +4 -0
  167. package/dist/types/esbuildConfigs/web.d.ts +4 -0
  168. package/dist/types/lib/abstractBase.d.ts +104 -0
  169. package/dist/types/lib/basebuilder.d.ts +27 -0
  170. package/dist/types/lib/classBuilder.d.ts +7 -0
  171. package/dist/types/lib/core.d.ts +8 -0
  172. package/dist/types/lib/index.d.ts +59 -0
  173. package/dist/types/lib/types.d.ts +64 -0
  174. package/dist/types/mongooseSchemas.d.ts +124 -0
  175. package/dist/types/preload.d.ts +0 -0
  176. package/dist/types/puppeteerConfiger.d.ts +4 -0
  177. package/dist/types/report.html.d.ts +2 -0
  178. package/dist/types/tsconfig.types.tsbuildinfo +1 -0
  179. package/dist/types/utils.d.ts +2 -0
  180. package/dist/types/web.html.d.ts +2 -0
  181. package/package.json +2 -2
@@ -0,0 +1,68 @@
1
+ import Graph from "graphology/dist/graphology.umd.js";
2
+ declare const DirectedGraph: any;
3
+ declare abstract class TesterantoGraph {
4
+ name: string;
5
+ abstract graph: any;
6
+ constructor(name: string);
7
+ }
8
+ export declare class BaseFeature {
9
+ name: string;
10
+ constructor(name: string);
11
+ }
12
+ export declare class TesterantoGraphUndirected implements TesterantoGraph {
13
+ name: string;
14
+ graph: Graph;
15
+ constructor(name: string);
16
+ connect(a: any, b: any, relation?: string): void;
17
+ }
18
+ export declare class TesterantoGraphDirected implements TesterantoGraph {
19
+ name: string;
20
+ graph: Graph;
21
+ constructor(name: string);
22
+ connect(to: any, from: any, relation?: string): void;
23
+ }
24
+ export declare class TesterantoGraphDirectedAcyclic implements TesterantoGraph {
25
+ name: string;
26
+ graph: Graph;
27
+ constructor(name: string);
28
+ connect(to: any, from: any, relation?: string): void;
29
+ }
30
+ export declare class TesterantoFeatures {
31
+ features: Record<string, BaseFeature>;
32
+ graphs: {
33
+ undirected: TesterantoGraphUndirected[];
34
+ directed: TesterantoGraphDirected[];
35
+ dags: TesterantoGraphDirectedAcyclic[];
36
+ };
37
+ constructor(features: Record<string, BaseFeature>, graphs: {
38
+ undirected: TesterantoGraphUndirected[];
39
+ directed: TesterantoGraphDirected[];
40
+ dags: TesterantoGraphDirectedAcyclic[];
41
+ });
42
+ networks(): (TesterantoGraphUndirected | TesterantoGraphDirected | TesterantoGraphDirectedAcyclic)[];
43
+ toObj(): {
44
+ features: {
45
+ inNetworks: {
46
+ network: string;
47
+ neighbors: any;
48
+ }[];
49
+ name: string;
50
+ }[];
51
+ networks: ({
52
+ name: string;
53
+ graph: Graph;
54
+ } | {
55
+ name: string;
56
+ graph: Graph;
57
+ } | {
58
+ name: string;
59
+ graph: Graph;
60
+ })[];
61
+ };
62
+ }
63
+ export declare type IT_FeatureNetwork = {
64
+ name: string;
65
+ };
66
+ export { DirectedGraph };
67
+ declare const _default: {};
68
+ 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;
@@ -0,0 +1,20 @@
1
+ import { Browser, Page } from "puppeteer-core/lib/esm/puppeteer/puppeteer-core-browser";
2
+ import { ITLog, ITTestResourceConfiguration } from "../lib";
3
+ export declare abstract class PM {
4
+ server: any;
5
+ browser: Browser;
6
+ testResourceConfiguration: ITTestResourceConfiguration;
7
+ abstract startPuppeteer(options: any, destfolder: string): Promise<Browser>;
8
+ abstract testArtiFactoryfileWriter(tLog: ITLog, callback: (Promise: any) => void): any;
9
+ abstract createWriteStream(filepath: string): any;
10
+ abstract writeFileSync(fp: string, contents: string): any;
11
+ abstract mkdirSync(): any;
12
+ abstract existsSync(fp: string): boolean;
13
+ abstract write(accessObject: {
14
+ uid: number;
15
+ }, contents: string): boolean;
16
+ abstract end(accessObject: {
17
+ uid: number;
18
+ }): boolean;
19
+ abstract customScreenShot(opts: object, page: Page): any;
20
+ }
@@ -0,0 +1,31 @@
1
+ /// <reference types="node" />
2
+ /// <reference types="node" />
3
+ /// <reference types="node" />
4
+ import fs from "fs";
5
+ import { PassThrough } from "stream";
6
+ import { IBuiltConfig, ITestTypes } from "../lib/types";
7
+ import { PM } from "./index.js";
8
+ import { ITLog } from "../lib/index.js";
9
+ export declare class PM_Main extends PM {
10
+ customScreenShot(opts: object): void;
11
+ configs: IBuiltConfig;
12
+ ports: Record<number, boolean>;
13
+ queue: any[];
14
+ constructor(configs: IBuiltConfig);
15
+ startPuppeteer(options: any, destfolder: string): Promise<any>;
16
+ launchNode: (src: string, dest: string) => Promise<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;
20
+ end(accessObject: {
21
+ uid: number;
22
+ }): boolean;
23
+ existsSync(destFolder: string): boolean;
24
+ mkdirSync(fp: string): Promise<string | false | undefined>;
25
+ writeFileSync(fp: string, contents: string): void;
26
+ createWriteStream(filepath: string): fs.WriteStream;
27
+ testArtiFactoryfileWriter(tLog: ITLog, callback: (Promise: any) => void): (fPath: any, value: string | Buffer | PassThrough) => void;
28
+ write(accessObject: {
29
+ uid: number;
30
+ }, contents: string): boolean;
31
+ }
@@ -0,0 +1,27 @@
1
+ /// <reference types="node" />
2
+ /// <reference types="node" />
3
+ import { PassThrough } from "stream";
4
+ import { ITLog, ITTestResourceConfiguration } from "../lib";
5
+ import { PM } from "./index.js";
6
+ import { Page } from "puppeteer-core/lib/esm/puppeteer";
7
+ declare type PuppetMasterServer = Record<string, Promise<any>>;
8
+ export declare class PM_Node extends PM {
9
+ server: PuppetMasterServer;
10
+ testResourceConfiguration: ITTestResourceConfiguration;
11
+ constructor(t: ITTestResourceConfiguration);
12
+ customScreenShot(opts: object, page: Page): any;
13
+ existsSync(destFolder: string): boolean;
14
+ mkdirSync(): any;
15
+ write(writeObject: {
16
+ uid: number;
17
+ }, contents: string): any;
18
+ writeFileSync(filepath: string, contents: string): any;
19
+ createWriteStream(filepath: string): any;
20
+ end(writeObject: {
21
+ uid: number;
22
+ }): any;
23
+ customclose(): void;
24
+ testArtiFactoryfileWriter(tLog: ITLog, callback: (Promise: any) => void): (fPath: any, value: string | Buffer | PassThrough) => void;
25
+ startPuppeteer(options?: any): Promise<any>;
26
+ }
27
+ export {};
@@ -0,0 +1,25 @@
1
+ /// <reference types="node" />
2
+ /// <reference types="node" />
3
+ import { PassThrough } from "stream";
4
+ import { ITLog, ITTestResourceConfiguration } from "../lib";
5
+ import { PM } from "./index.js";
6
+ declare type PuppetMasterServer = Record<string, Promise<any>>;
7
+ export declare class PM_Web extends PM {
8
+ server: PuppetMasterServer;
9
+ constructor(t: ITTestResourceConfiguration);
10
+ customScreenShot(opts: object): void;
11
+ existsSync(destFolder: string): boolean;
12
+ mkdirSync(): any;
13
+ write(writeObject: {
14
+ uid: number;
15
+ }, contents: string): any;
16
+ writeFileSync(filepath: string, contents: string): any;
17
+ createWriteStream(filepath: string): any;
18
+ end(writeObject: {
19
+ uid: number;
20
+ }): any;
21
+ customclose(): void;
22
+ testArtiFactoryfileWriter(tLog: ITLog, callback: (Promise: any) => void): (fPath: any, value: string | Buffer | PassThrough) => void;
23
+ startPuppeteer(options: any, destFolder: string): Promise<any>;
24
+ }
25
+ export {};
@@ -0,0 +1,7 @@
1
+ import { IBaseConfig, IRunTime } from "./lib/types.js";
2
+ export declare class ITProject {
3
+ config: IBaseConfig;
4
+ mode: `up` | `down`;
5
+ constructor(config: IBaseConfig);
6
+ getSecondaryEndpointsPoints(runtime?: IRunTime): string[];
7
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
File without changes
@@ -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;
@@ -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 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 any>(testImplementations: ITestImplementation<ITestShape, object>, testSpecifications: ISpec<ITestShape>, testInput: IInput) => Promise<import("../../../lib/core.js").default<ITestShape>>;
7
+ export default _default;
@@ -0,0 +1,12 @@
1
+ import { CElement } from "react";
2
+ import { IBaseTest, IPartialInterface, 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: IPartialInterface<any>;
@@ -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;
@@ -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 { 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 any>(testImplementations: ITestImplementation<ITestShape, object>, testSpecifications: ITestSpecification<ITestShape>, testInput: IInput) => Promise<import("../../../lib/core.js").default<ITestShape>>;
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
+ export declare type IInput = (props?: any) => JSX.Element;
2
+ export declare type IState = unknown;
3
+ export declare type ISelection = HTMLElement;
4
+ export declare type IStore = HTMLElement;
5
+ export declare type IWhenShape = any;
6
+ export declare type IThenShape = any;
@@ -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;
@@ -0,0 +1,13 @@
1
+ import React from "react";
2
+ import renderer from "react-test-renderer";
3
+ import type { IBaseTest, ITestImplementation, ITestSpecification } from "../../../Types";
4
+ export declare type ISuper<T> = T extends infer U ? U : object;
5
+ export declare type IInput<P, S> = typeof React.Component<P, S>;
6
+ export declare type InitialState = unknown;
7
+ export declare type IWhenShape = any;
8
+ export declare type IThenShape = any;
9
+ export declare type ISelection = renderer.ReactTestRenderer;
10
+ export declare type IStore = renderer.ReactTestRenderer;
11
+ export declare type ISubject = renderer.ReactTestRenderer;
12
+ export declare type IImpl<ITestShape extends IBaseTest> = ITestImplementation<ITestShape>;
13
+ export declare type ISpec<ITestShape extends IBaseTest> = ITestSpecification<ITestShape>;
@@ -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
+ };
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import { IImpl, ISpec, IInput } from "./index.js";
3
+ declare const _default: <ITestShape extends any, IProps, IState>(testImplementations: IImpl<ITestShape>, testSpecifications: ISpec<ITestShape>, testInput: {
4
+ new (props: IProps | Readonly<IProps>): import("react").Component<IProps, IState, any>;
5
+ new (props: IProps, context: any): import("react").Component<IProps, IState, any>;
6
+ contextType?: import("react").Context<any> | undefined;
7
+ }) => Promise<import("../../../lib/core.js").default<ITestShape>>;
8
+ export default _default;
@@ -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;
@@ -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 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 any, IPropShape>(testImplementations: ITestImplementation<ITestShape, object>, testSpecifications: ISpec<ITestShape>, testInput: IInput) => Promise<import("../../../lib/core").default<ITestShape>>;
8
+ export default _default;
@@ -0,0 +1,16 @@
1
+ import renderer from "react-test-renderer";
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 = (props?: any) => JSX.Element;
7
+ export declare type ISelection = renderer.ReactTestRenderer;
8
+ export declare type IStore = renderer.ReactTestRenderer;
9
+ export declare type ISubject = renderer.ReactTestRenderer;
10
+ export declare type ITestImpl<ITestShape extends IBaseTest> = ITestImplementation<ITestShape, object>;
11
+ export declare type ITestSpec<ITestShape extends IBaseTest> = ITestSpecification<ITestShape>;
12
+ export declare const testInterface: {
13
+ butThen: (s: IStore, thenCB: any, tr: any) => Promise<ISelection>;
14
+ beforeEach: (CComponent: any, props: any) => Promise<renderer.ReactTestRenderer>;
15
+ andWhen: (renderer: renderer.ReactTestRenderer, whenCB: (any: any) => any) => Promise<renderer.ReactTestRenderer>;
16
+ };
@@ -0,0 +1,8 @@
1
+ import type { ITestImpl, ITestSpec } from "../jsx-promised";
2
+ import { IInput } from "./index.js";
3
+ declare const _default: <ITestShape extends any>(testImplementations: ITestImpl<ITestShape>, testSpecifications: ITestSpec<ITestShape>, testInput: IInput, testInterface2?: {
4
+ butThen: (s: import("react-test-renderer").ReactTestRenderer, thenCB: any, tr: any) => Promise<import("react-test-renderer").ReactTestRenderer>;
5
+ beforeEach: (CComponent: any, props: any) => Promise<import("react-test-renderer").ReactTestRenderer>;
6
+ andWhen: (renderer: import("react-test-renderer").ReactTestRenderer, whenCB: (any: any) => any) => Promise<import("react-test-renderer").ReactTestRenderer>;
7
+ }) => Promise<import("../../../lib/core.js").default<ITestShape>>;
8
+ export default _default;
@@ -0,0 +1,8 @@
1
+ import { ITestImpl, ITestSpec } from "../jsx-promised";
2
+ import { IInput } from "./index.js";
3
+ declare const _default: <ITestShape extends any>(testImplementations: ITestImpl<ITestShape>, testSpecifications: ITestSpec<ITestShape>, testInput: IInput, testInterface2?: {
4
+ butThen: (s: import("react-test-renderer").ReactTestRenderer, thenCB: any, tr: any) => Promise<import("react-test-renderer").ReactTestRenderer>;
5
+ beforeEach: (CComponent: any, props: any) => Promise<import("react-test-renderer").ReactTestRenderer>;
6
+ andWhen: (renderer: import("react-test-renderer").ReactTestRenderer, whenCB: (any: any) => any) => Promise<import("react-test-renderer").ReactTestRenderer>;
7
+ }) => Promise<import("../../../lib/core").default<ITestShape>>;
8
+ export default _default;
@@ -0,0 +1,15 @@
1
+ import renderer from "react-test-renderer";
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 = Promise<JSX.Element>;
7
+ export declare type ISelection = renderer.ReactTestRenderer;
8
+ export declare type IStore = renderer.ReactTestRenderer;
9
+ export declare type ISubject = renderer.ReactTestRenderer;
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: (CComponent: any) => Promise<renderer.ReactTestRenderer>;
14
+ andWhen: (renderer: renderer.ReactTestRenderer, whenCB: () => (any: any) => any) => Promise<renderer.ReactTestRenderer>;
15
+ };
@@ -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 @@
1
+ export {};
@@ -0,0 +1,50 @@
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<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>>;
6
+ 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>>;
7
+ 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>>;
8
+ 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>>;
9
+ 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: {
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<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<{
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<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>> = {
37
+ iinput: IInput;
38
+ isubject: ISubject;
39
+ istore: IStore;
40
+ iselection: ISelection;
41
+ given: IGiven;
42
+ when: IWhen;
43
+ then: IThen;
44
+ suites: ISuites;
45
+ givens: IGivens;
46
+ whens: IWhens;
47
+ thens: IThens;
48
+ checks: IChecks;
49
+ };
50
+ 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,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,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;
@@ -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;