testeranto 0.100.0 → 0.111.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 (226) hide show
  1. package/README.md +1 -0
  2. package/bundle.js +80 -30
  3. package/package.json +40 -32
  4. package/src/Footer.tsx +4 -0
  5. package/src/Init.ts +48 -0
  6. package/src/Node.ts +23 -17
  7. package/src/PM/index.ts +1 -1
  8. package/src/PM/main.ts +524 -156
  9. package/src/PM/node.ts +2 -2
  10. package/src/PM/web.ts +1 -1
  11. package/src/ReportClient.tsx +163 -0
  12. package/src/ReportServer.ts +21 -0
  13. package/src/SubPackages/react/component/node.ts +68 -24
  14. package/src/SubPackages/react/component/web.ts +68 -25
  15. package/src/SubPackages/react/jsx/index.ts +39 -18
  16. package/src/SubPackages/react/jsx/node.ts +12 -10
  17. package/src/SubPackages/react/jsx/web.ts +27 -14
  18. package/src/SubPackages/react-dom/component/node.ts +42 -50
  19. package/src/SubPackages/react-dom/component/web.ts +28 -10
  20. package/src/SubPackages/react-dom/jsx/node.ts +54 -56
  21. package/src/SubPackages/react-dom/jsx/web.ts +55 -42
  22. package/src/SubPackages/react-test-renderer/MemoExoticComponent/node.ts +23 -7
  23. package/src/SubPackages/react-test-renderer/component/index.ts +38 -5
  24. package/src/SubPackages/react-test-renderer/component/node.ts +24 -5
  25. package/src/SubPackages/react-test-renderer/component/web.ts +22 -5
  26. package/src/SubPackages/react-test-renderer/fc/node.ts +41 -7
  27. package/src/SubPackages/react-test-renderer/fc/web.ts +43 -11
  28. package/src/SubPackages/react-test-renderer/jsx/index.ts +39 -16
  29. package/src/SubPackages/react-test-renderer/jsx/node.ts +8 -6
  30. package/src/SubPackages/react-test-renderer/jsx/web.ts +22 -5
  31. package/src/SubPackages/react-test-renderer/jsx-promised/index.ts +39 -6
  32. package/src/SubPackages/react-test-renderer/jsx-promised/node.ts +27 -10
  33. package/src/SubPackages/react-test-renderer/jsx-promised/web.ts +26 -12
  34. package/src/TestReport.tsx +176 -0
  35. package/src/Types.ts +63 -309
  36. package/src/Web.ts +24 -18
  37. package/src/build.ts +240 -0
  38. package/src/defaultConfig.ts +2 -1
  39. package/src/esbuildConfigs/eslint-formatter-testeranto.ts +5 -0
  40. package/src/esbuildConfigs/featuresPlugin.ts +0 -1
  41. package/src/esbuildConfigs/index.ts +1 -1
  42. package/src/esbuildConfigs/inputFilesPlugin.ts +2 -135
  43. package/src/esbuildConfigs/node.ts +4 -13
  44. package/src/esbuildConfigs/web.ts +3 -19
  45. package/src/init-docs.ts +2 -1
  46. package/src/lib/abstractBase.ts +82 -80
  47. package/src/lib/basebuilder.ts +57 -45
  48. package/src/lib/classBuilder.ts +15 -15
  49. package/src/lib/core.ts +44 -35
  50. package/src/lib/index.ts +47 -98
  51. package/src/lib/readme.md +12 -0
  52. package/src/lib/types.ts +53 -70
  53. package/src/run.ts +31 -0
  54. package/src/style.css +8 -0
  55. package/src/utils.ts +74 -2
  56. package/tsc.log +108 -0
  57. package/Bundle.Dockerfile +0 -52
  58. package/bin/init-docs.js +0 -24
  59. package/dist/common/dist/module/src/Init.js +0 -40
  60. package/dist/common/package.json +0 -3
  61. package/dist/common/src/Init.js +0 -40
  62. package/dist/common/src/Node.js +0 -27
  63. package/dist/common/src/PM/index.js +0 -7
  64. package/dist/common/src/PM/main.js +0 -941
  65. package/dist/common/src/PM/node.js +0 -128
  66. package/dist/common/src/PM/web.js +0 -121
  67. package/dist/common/src/SubPackages/puppeteer.js +0 -21
  68. package/dist/common/src/SubPackages/react/component/node.js +0 -19
  69. package/dist/common/src/SubPackages/react/component/web.js +0 -19
  70. package/dist/common/src/SubPackages/react/jsx/index.js +0 -33
  71. package/dist/common/src/SubPackages/react/jsx/node.js +0 -10
  72. package/dist/common/src/SubPackages/react/jsx/web.js +0 -10
  73. package/dist/common/src/SubPackages/react-dom/component/node.js +0 -101
  74. package/dist/common/src/SubPackages/react-dom/component/web.js +0 -67
  75. package/dist/common/src/SubPackages/react-dom/jsx/index.js +0 -2
  76. package/dist/common/src/SubPackages/react-dom/jsx/node.js +0 -39
  77. package/dist/common/src/SubPackages/react-dom/jsx/web.js +0 -117
  78. package/dist/common/src/SubPackages/react-test-renderer/MemoExoticComponent/node.js +0 -44
  79. package/dist/common/src/SubPackages/react-test-renderer/component/index.js +0 -2
  80. package/dist/common/src/SubPackages/react-test-renderer/component/interface.js +0 -60
  81. package/dist/common/src/SubPackages/react-test-renderer/component/node.js +0 -8
  82. package/dist/common/src/SubPackages/react-test-renderer/component/web.js +0 -8
  83. package/dist/common/src/SubPackages/react-test-renderer/fc/node.js +0 -50
  84. package/dist/common/src/SubPackages/react-test-renderer/fc/web.js +0 -50
  85. package/dist/common/src/SubPackages/react-test-renderer/jsx/index.js +0 -63
  86. package/dist/common/src/SubPackages/react-test-renderer/jsx/node.js +0 -10
  87. package/dist/common/src/SubPackages/react-test-renderer/jsx/web.js +0 -10
  88. package/dist/common/src/SubPackages/react-test-renderer/jsx-promised/index.js +0 -42
  89. package/dist/common/src/SubPackages/react-test-renderer/jsx-promised/node.js +0 -10
  90. package/dist/common/src/SubPackages/react-test-renderer/jsx-promised/web.js +0 -10
  91. package/dist/common/src/Types.js +0 -2
  92. package/dist/common/src/Web.js +0 -49
  93. package/dist/common/src/cli.js +0 -439
  94. package/dist/common/src/cli2.js +0 -144
  95. package/dist/common/src/defaultConfig.js +0 -19
  96. package/dist/common/src/esbuildConfigs/featuresPlugin.js +0 -39
  97. package/dist/common/src/esbuildConfigs/index.js +0 -21
  98. package/dist/common/src/esbuildConfigs/inputFilesPlugin.js +0 -99
  99. package/dist/common/src/esbuildConfigs/node.js +0 -45
  100. package/dist/common/src/esbuildConfigs/web.js +0 -61
  101. package/dist/common/src/init-docs.js +0 -43
  102. package/dist/common/src/lib/abstractBase.js +0 -324
  103. package/dist/common/src/lib/basebuilder.js +0 -85
  104. package/dist/common/src/lib/classBuilder.js +0 -42
  105. package/dist/common/src/lib/core.js +0 -101
  106. package/dist/common/src/lib/index.js +0 -22
  107. package/dist/common/src/lib/types.js +0 -3
  108. package/dist/common/src/puppeteerConfiger.js +0 -24
  109. package/dist/common/src/utils.js +0 -16
  110. package/dist/common/src/web.html.js +0 -22
  111. package/dist/common/testeranto.js +0 -15
  112. package/dist/common/tsconfig.common.tsbuildinfo +0 -1
  113. package/dist/module/package.json +0 -3
  114. package/dist/module/src/Init.js +0 -35
  115. package/dist/module/src/Node.js +0 -20
  116. package/dist/module/src/PM/index.js +0 -3
  117. package/dist/module/src/PM/main.js +0 -911
  118. package/dist/module/src/PM/node.js +0 -121
  119. package/dist/module/src/PM/web.js +0 -117
  120. package/dist/module/src/SubPackages/puppeteer.js +0 -16
  121. package/dist/module/src/SubPackages/react/component/node.js +0 -14
  122. package/dist/module/src/SubPackages/react/component/web.js +0 -14
  123. package/dist/module/src/SubPackages/react/jsx/index.js +0 -27
  124. package/dist/module/src/SubPackages/react/jsx/node.js +0 -5
  125. package/dist/module/src/SubPackages/react/jsx/web.js +0 -5
  126. package/dist/module/src/SubPackages/react-dom/component/node.js +0 -93
  127. package/dist/module/src/SubPackages/react-dom/component/web.js +0 -62
  128. package/dist/module/src/SubPackages/react-dom/jsx/index.js +0 -1
  129. package/dist/module/src/SubPackages/react-dom/jsx/node.js +0 -31
  130. package/dist/module/src/SubPackages/react-dom/jsx/web.js +0 -89
  131. package/dist/module/src/SubPackages/react-test-renderer/MemoExoticComponent/node.js +0 -16
  132. package/dist/module/src/SubPackages/react-test-renderer/component/index.js +0 -1
  133. package/dist/module/src/SubPackages/react-test-renderer/component/interface.js +0 -31
  134. package/dist/module/src/SubPackages/react-test-renderer/component/node.js +0 -3
  135. package/dist/module/src/SubPackages/react-test-renderer/component/web.js +0 -3
  136. package/dist/module/src/SubPackages/react-test-renderer/fc/node.js +0 -22
  137. package/dist/module/src/SubPackages/react-test-renderer/fc/web.js +0 -22
  138. package/dist/module/src/SubPackages/react-test-renderer/jsx/index.js +0 -34
  139. package/dist/module/src/SubPackages/react-test-renderer/jsx/node.js +0 -5
  140. package/dist/module/src/SubPackages/react-test-renderer/jsx/web.js +0 -5
  141. package/dist/module/src/SubPackages/react-test-renderer/jsx-promised/index.js +0 -16
  142. package/dist/module/src/SubPackages/react-test-renderer/jsx-promised/node.js +0 -5
  143. package/dist/module/src/SubPackages/react-test-renderer/jsx-promised/web.js +0 -5
  144. package/dist/module/src/Types.js +0 -1
  145. package/dist/module/src/Web.js +0 -42
  146. package/dist/module/src/cli.js +0 -411
  147. package/dist/module/src/cli2.js +0 -116
  148. package/dist/module/src/defaultConfig.js +0 -17
  149. package/dist/module/src/esbuildConfigs/featuresPlugin.js +0 -34
  150. package/dist/module/src/esbuildConfigs/index.js +0 -19
  151. package/dist/module/src/esbuildConfigs/inputFilesPlugin.js +0 -94
  152. package/dist/module/src/esbuildConfigs/node.js +0 -40
  153. package/dist/module/src/esbuildConfigs/web.js +0 -56
  154. package/dist/module/src/init-docs.js +0 -15
  155. package/dist/module/src/lib/abstractBase.js +0 -316
  156. package/dist/module/src/lib/basebuilder.js +0 -81
  157. package/dist/module/src/lib/classBuilder.js +0 -38
  158. package/dist/module/src/lib/core.js +0 -98
  159. package/dist/module/src/lib/index.js +0 -18
  160. package/dist/module/src/lib/types.js +0 -2
  161. package/dist/module/src/puppeteerConfiger.js +0 -19
  162. package/dist/module/src/utils.js +0 -9
  163. package/dist/module/src/web.html.js +0 -20
  164. package/dist/module/testeranto.js +0 -13
  165. package/dist/module/tsconfig.module.tsbuildinfo +0 -1
  166. package/dist/prebuild/cli.mjs +0 -1491
  167. package/dist/prebuild/cli2.mjs +0 -918
  168. package/dist/prebuild/init-docs.mjs +0 -48
  169. package/dist/types/dist/module/src/Init.d.ts +0 -2
  170. package/dist/types/src/Init.d.ts +0 -2
  171. package/dist/types/src/Node.d.ts +0 -13
  172. package/dist/types/src/PM/index.d.ts +0 -34
  173. package/dist/types/src/PM/main.d.ts +0 -56
  174. package/dist/types/src/PM/node.d.ts +0 -42
  175. package/dist/types/src/PM/web.d.ts +0 -40
  176. package/dist/types/src/SubPackages/puppeteer.d.ts +0 -6
  177. package/dist/types/src/SubPackages/react/component/node.d.ts +0 -7
  178. package/dist/types/src/SubPackages/react/component/web.d.ts +0 -7
  179. package/dist/types/src/SubPackages/react/jsx/index.d.ts +0 -12
  180. package/dist/types/src/SubPackages/react/jsx/node.d.ts +0 -4
  181. package/dist/types/src/SubPackages/react/jsx/web.d.ts +0 -4
  182. package/dist/types/src/SubPackages/react-dom/component/node.d.ts +0 -12
  183. package/dist/types/src/SubPackages/react-dom/component/web.d.ts +0 -11
  184. package/dist/types/src/SubPackages/react-dom/jsx/index.d.ts +0 -7
  185. package/dist/types/src/SubPackages/react-dom/jsx/node.d.ts +0 -6
  186. package/dist/types/src/SubPackages/react-dom/jsx/web.d.ts +0 -5
  187. package/dist/types/src/SubPackages/react-test-renderer/MemoExoticComponent/node.d.ts +0 -5
  188. package/dist/types/src/SubPackages/react-test-renderer/component/index.d.ts +0 -13
  189. package/dist/types/src/SubPackages/react-test-renderer/component/interface.d.ts +0 -9
  190. package/dist/types/src/SubPackages/react-test-renderer/component/node.d.ts +0 -8
  191. package/dist/types/src/SubPackages/react-test-renderer/component/web.d.ts +0 -3
  192. package/dist/types/src/SubPackages/react-test-renderer/fc/node.d.ts +0 -8
  193. package/dist/types/src/SubPackages/react-test-renderer/fc/web.d.ts +0 -8
  194. package/dist/types/src/SubPackages/react-test-renderer/jsx/index.d.ts +0 -17
  195. package/dist/types/src/SubPackages/react-test-renderer/jsx/node.d.ts +0 -9
  196. package/dist/types/src/SubPackages/react-test-renderer/jsx/web.d.ts +0 -8
  197. package/dist/types/src/SubPackages/react-test-renderer/jsx-promised/index.d.ts +0 -16
  198. package/dist/types/src/SubPackages/react-test-renderer/jsx-promised/node.d.ts +0 -4
  199. package/dist/types/src/SubPackages/react-test-renderer/jsx-promised/web.d.ts +0 -4
  200. package/dist/types/src/Types.d.ts +0 -90
  201. package/dist/types/src/Web.d.ts +0 -10
  202. package/dist/types/src/cli.d.ts +0 -1
  203. package/dist/types/src/cli2.d.ts +0 -1
  204. package/dist/types/src/defaultConfig.d.ts +0 -3
  205. package/dist/types/src/esbuildConfigs/featuresPlugin.d.ts +0 -5
  206. package/dist/types/src/esbuildConfigs/index.d.ts +0 -4
  207. package/dist/types/src/esbuildConfigs/inputFilesPlugin.d.ts +0 -7
  208. package/dist/types/src/esbuildConfigs/node.d.ts +0 -4
  209. package/dist/types/src/esbuildConfigs/web.d.ts +0 -4
  210. package/dist/types/src/init-docs.d.ts +0 -1
  211. package/dist/types/src/lib/abstractBase.d.ts +0 -110
  212. package/dist/types/src/lib/basebuilder.d.ts +0 -27
  213. package/dist/types/src/lib/classBuilder.d.ts +0 -7
  214. package/dist/types/src/lib/core.d.ts +0 -8
  215. package/dist/types/src/lib/index.d.ts +0 -60
  216. package/dist/types/src/lib/types.d.ts +0 -40
  217. package/dist/types/src/puppeteerConfiger.d.ts +0 -4
  218. package/dist/types/src/utils.d.ts +0 -2
  219. package/dist/types/src/web.html.d.ts +0 -2
  220. package/dist/types/testeranto.d.ts +0 -16
  221. package/dist/types/tsconfig.types.tsbuildinfo +0 -1
  222. package/docker-compose.yml +0 -37
  223. package/src/SubPackages/puppeteer.ts +0 -51
  224. package/src/cli.ts +0 -535
  225. package/src/cli2.ts +0 -157
  226. package/testeranto.ts +0 -13
@@ -1,48 +0,0 @@
1
- import { createRequire } from 'module';const require = createRequire(import.meta.url);
2
-
3
- // src/init-docs.ts
4
- import fs2 from "fs";
5
-
6
- // dist/module/src/Init.js
7
- import fs from "fs";
8
- var Init_default = async (partialConfig) => {
9
- const config = Object.assign(Object.assign({}, partialConfig), { buildDir: process.cwd() + "/" + partialConfig.outdir });
10
- try {
11
- fs.mkdirSync(`${process.cwd()}/${config.outdir}`);
12
- } catch (_a) {
13
- }
14
- fs.writeFileSync(`${config.outdir}/testeranto.json`, JSON.stringify(Object.assign(Object.assign({}, config), { buildDir: process.cwd() + "/" + config.outdir }), null, 2));
15
- try {
16
- fs.mkdirSync(`${process.cwd()}/${config.outdir}/node`);
17
- } catch (_b) {
18
- }
19
- try {
20
- fs.mkdirSync(`${process.cwd()}/${config.outdir}/web`);
21
- } catch (_c) {
22
- }
23
- try {
24
- fs.mkdirSync(`${process.cwd()}/${config.outdir}/features`);
25
- } catch (_d) {
26
- }
27
- try {
28
- fs.mkdirSync(`${process.cwd()}/${config.outdir}/ts`);
29
- } catch (_e) {
30
- }
31
- };
32
-
33
- // src/init-docs.ts
34
- console.log("Initializing a testeranto project");
35
- if (!process.argv[2]) {
36
- console.log("You didn't pass a config file, so I will create one for you.");
37
- fs2.writeFileSync(
38
- "testeranto.mts",
39
- fs2.readFileSync("node_modules/testeranto/src/defaultConfig.ts")
40
- );
41
- import(process.cwd() + "/testeranto.mts").then((module) => {
42
- Init_default(module.default);
43
- });
44
- } else {
45
- import(process.cwd() + "/" + process.argv[2]).then((module) => {
46
- Init_default(module.default);
47
- });
48
- }
@@ -1,2 +0,0 @@
1
- declare function _default(partialConfig: any): Promise<void>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: (partialConfig: any) => Promise<void>;
2
- export default _default;
@@ -1,13 +0,0 @@
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 { ITestInterface } from "./lib/types.js";
5
- export declare class NodeTesteranto<TestShape extends IBaseTest<unknown, unknown, unknown, unknown, unknown, unknown, unknown, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>> extends Testeranto<TestShape> {
6
- constructor(input: TestShape["iinput"], testSpecification: ITestSpecification<TestShape>, testImplementation: ITestImplementation<TestShape>, testResourceRequirement: ITTestResourceRequest, testInterface: Partial<ITestInterface<TestShape>>);
7
- receiveTestResourceConfig(partialTestResource: string): Promise<{
8
- features: string[];
9
- failed: number;
10
- }>;
11
- }
12
- 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: any, testInterface: INodeTestInterface<ITestShape>, testResourceRequirement?: ITTestResourceRequest) => Promise<Testeranto<ITestShape>>;
13
- export default _default;
@@ -1,34 +0,0 @@
1
- import { CdpPage } from "puppeteer-core/lib/esm/puppeteer/puppeteer-core-browser";
2
- import { ScreenRecorderOptions } from "puppeteer-core/lib/esm/puppeteer";
3
- import { ITLog, ITTestResourceConfiguration } from "../lib";
4
- export declare abstract class PM {
5
- server: any;
6
- testResourceConfiguration: ITTestResourceConfiguration;
7
- abstract testArtiFactoryfileWriter(tLog: ITLog, callback: (Promise: any) => void): any;
8
- abstract createWriteStream(filepath: string): any;
9
- abstract writeFileSync(fp: string, contents: string): any;
10
- abstract mkdirSync(a: string): any;
11
- abstract existsSync(fp: string): boolean;
12
- abstract write(accessObject: {
13
- uid: number;
14
- }, contents: string): boolean;
15
- abstract end(accessObject: {
16
- uid: number;
17
- }): boolean;
18
- abstract customScreenShot(opts: object, page?: string): any;
19
- abstract screencast(opts: ScreenRecorderOptions, p?: any): any;
20
- abstract screencastStop(s: string): any;
21
- abstract page(): string | undefined;
22
- abstract click(selector: string): any;
23
- abstract focusOn(selector: string): any;
24
- abstract typeInto(value: string): any;
25
- abstract getValue(value: string): any;
26
- abstract getAttribute(selector: string, attribute: string): any;
27
- abstract isDisabled(selector: string): boolean;
28
- abstract $(selector: string): any;
29
- abstract newPage(): CdpPage;
30
- abstract goto(p: any, url: string): any;
31
- abstract closePage(p: any): any;
32
- abstract waitForSelector(p: any, sel: string): any;
33
- abstract customclose(): any;
34
- }
@@ -1,56 +0,0 @@
1
- /// <reference types="node" />
2
- /// <reference types="node" />
3
- /// <reference types="node" />
4
- import { CdpPage, Page } from "puppeteer-core/lib/esm/puppeteer";
5
- import fs from "fs";
6
- import { Browser, LaunchOptions } from "puppeteer-core";
7
- import { PassThrough } from "stream";
8
- import { IBuiltConfig, ITestTypes } from "../lib/types";
9
- import { ITLog } from "../lib/index.js";
10
- import { PM } from "./index.js";
11
- export declare class PM_Main extends PM {
12
- browser: Browser;
13
- shutdownMode: boolean;
14
- configs: IBuiltConfig;
15
- ports: Record<number, boolean>;
16
- queue: any[];
17
- registry: Record<string, boolean>;
18
- constructor(configs: IBuiltConfig);
19
- customclose(): void;
20
- waitForSelector(p: string, s: string): any;
21
- closePage(p: any): any;
22
- newPage(): CdpPage;
23
- goto(p: any, url: string): any;
24
- $(selector: string): boolean;
25
- screencast(opts: object): void;
26
- customScreenShot(opts: object, cdpPage?: CdpPage): void;
27
- end(accessObject: {
28
- uid: number;
29
- }): boolean;
30
- existsSync(destFolder: string): boolean;
31
- mkdirSync(fp: string): Promise<string | false | undefined>;
32
- writeFileSync(fp: string, contents: string): void;
33
- createWriteStream(filepath: string): fs.WriteStream;
34
- testArtiFactoryfileWriter(tLog: ITLog, callback: (Promise: any) => void): (fPath: any, value: string | Buffer | PassThrough) => void;
35
- write(accessObject: {
36
- uid: number;
37
- }, contents: string): boolean;
38
- page(): string | undefined;
39
- click(selector: string): string | undefined;
40
- focusOn(selector: string): void;
41
- typeInto(value: string): void;
42
- getValue(value: string): void;
43
- getAttribute(selector: string, attribute: string): void;
44
- isDisabled(selector: string): boolean;
45
- screencastStop(s: string): void;
46
- startPuppeteer(options: LaunchOptions, destfolder: string): Promise<any>;
47
- shutDown(): void;
48
- checkForShutdown: () => void;
49
- register: (src: string) => void;
50
- deregister: (src: string) => void;
51
- launchNode: (src: string, dest: string) => Promise<void>;
52
- launchWebSideCar: (src: string, dest: string, testConfig: ITestTypes) => Promise<Page>;
53
- launchNodeSideCar: (src: string, dest: string, testConfig: ITestTypes) => Promise<void>;
54
- launchWeb: (t: string, dest: string) => void;
55
- receiveFeatures: (features: string[], destFolder: string, srcTest: string) => void;
56
- }
@@ -1,42 +0,0 @@
1
- /// <reference types="node" />
2
- /// <reference types="node" />
3
- import { ScreencastOptions } from "puppeteer-core";
4
- import { PassThrough } from "stream";
5
- import { ITLog, ITTestResourceConfiguration } from "../lib";
6
- import { PM } from "./index.js";
7
- import { CdpPage } from "puppeteer-core/lib/esm/puppeteer";
8
- declare type PuppetMasterServer = Record<string, Promise<any>>;
9
- export declare class PM_Node extends PM {
10
- server: PuppetMasterServer;
11
- testResourceConfiguration: ITTestResourceConfiguration;
12
- constructor(t: ITTestResourceConfiguration);
13
- waitForSelector(p: string, s: string): any;
14
- closePage(p: any): string;
15
- goto(cdpPage: CdpPage, url: string): any;
16
- newPage(): CdpPage;
17
- $(selector: string): boolean;
18
- isDisabled(selector: string): boolean;
19
- getAttribute(selector: string, attribute: string): void;
20
- getValue(selector: string): void;
21
- focusOn(selector: string): void;
22
- typeInto(value: string): void;
23
- page(): any;
24
- click(selector: string): string | undefined;
25
- screencast(opts: ScreencastOptions, page: CdpPage): any;
26
- screencastStop(p: string): any;
27
- customScreenShot(opts: ScreencastOptions, cdpPage: CdpPage): any;
28
- existsSync(destFolder: string): boolean;
29
- mkdirSync(): any;
30
- write(writeObject: {
31
- uid: number;
32
- }, contents: string): any;
33
- writeFileSync(filepath: string, contents: string): any;
34
- createWriteStream(filepath: string): any;
35
- end(writeObject: {
36
- uid: number;
37
- }): any;
38
- customclose(): void;
39
- testArtiFactoryfileWriter(tLog: ITLog, callback: (Promise: any) => void): (fPath: any, value: string | Buffer | PassThrough) => void;
40
- startPuppeteer(options?: any): any;
41
- }
42
- export {};
@@ -1,40 +0,0 @@
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 { ScreencastOptions, ScreenshotOptions } from "puppeteer-core";
7
- import { CdpPage } from "puppeteer-core/lib/esm/puppeteer";
8
- declare type PuppetMasterServer = Record<string, Promise<any>>;
9
- export declare class PM_Web extends PM {
10
- server: PuppetMasterServer;
11
- constructor(t: ITTestResourceConfiguration);
12
- waitForSelector(p: string, s: string): any;
13
- screencast(opts: ScreencastOptions): any;
14
- screencastStop(recorder: string): any;
15
- closePage(p: any): string;
16
- goto(p: any, url: string): any;
17
- newPage(): CdpPage;
18
- $(selector: string): boolean;
19
- isDisabled(selector: string): boolean;
20
- getAttribute(selector: string, attribute: string): any;
21
- getValue(selector: string): any;
22
- focusOn(selector: string): any;
23
- typeInto(value: string): any;
24
- page(): string | undefined;
25
- click(selector: string): any;
26
- customScreenShot(opts: ScreenshotOptions): any;
27
- existsSync(destFolder: string): boolean;
28
- mkdirSync(x: any): any;
29
- write(writeObject: {
30
- uid: number;
31
- }, contents: string): any;
32
- writeFileSync(filepath: string, contents: string): any;
33
- createWriteStream(filepath: string): any;
34
- end(writeObject: {
35
- uid: number;
36
- }): any;
37
- customclose(): void;
38
- testArtiFactoryfileWriter(tLog: ITLog, callback: (Promise: any) => void): (fPath: any, value: string | Buffer | PassThrough) => void;
39
- }
40
- export {};
@@ -1,6 +0,0 @@
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: any, testInterface?: Partial<import("../Types").INodeTestInterface<ITestShape>> | undefined) => Promise<import("../lib/core.js").default<ITestShape>>;
6
- export default _default;
@@ -1,7 +0,0 @@
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: any, testSpecifications: ISpec<ITestShape>, testInput: IInput) => Promise<import("../../../lib/core.js").default<ITestShape>>;
7
- export default _default;
@@ -1,7 +0,0 @@
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: any, testSpecifications: ISpec<ITestShape>, testInput: IInput) => Promise<import("../../../lib/core.js").default<ITestShape>>;
7
- export default _default;
@@ -1,12 +0,0 @@
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>;
@@ -1,4 +0,0 @@
1
- import { IBaseTest, IPartialInterface } from "../../../Types";
2
- import { ITestSpec, IInput } from "./index.js";
3
- declare const _default: <ITestShape extends IBaseTest<IInput, number, number, number, unknown, unknown, unknown, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>>(testImplementations: any, testSpecifications: ITestSpec<ITestShape>, testInput: IInput, testInterface?: Partial<import("../../../Types").ITestInterface<ITestShape>>) => Promise<import("../../../lib/core.js").default<ITestShape>>;
4
- export default _default;
@@ -1,4 +0,0 @@
1
- import { IPartialWebInterface } from "../../../Types";
2
- import { ITestSpec, IInput } from "./index.js";
3
- declare const _default: <ITestShape extends any>(testImplementations: any, testSpecifications: ITestSpec<ITestShape>, testInput: IInput, testInterface: Partial<import("../../../Types").IWebTestInterface<ITestShape>>) => Promise<import("../../../lib/core").default<ITestShape>>;
4
- export default _default;
@@ -1,12 +0,0 @@
1
- import React, { ReactNode } from "react";
2
- import { renderToStaticMarkup, renderToStaticNodeStream } from "react-dom/server";
3
- import Stream from "stream";
4
- import { 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: any, testSpecifications: ITestSpecification<ITestShape>, testInput: IInput) => Promise<import("../../../lib/core.js").default<ITestShape>>;
12
- export default _default;
@@ -1,11 +0,0 @@
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: ITestImplementation<ITestShape, any>, testInterface?: IPartialWebInterface<any>) => Promise<import("../../../lib/core.js").default<ITestShape>>;
11
- export default _default;
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- export declare type IInput = (props?: any) => JSX.Element;
3
- export declare type IState = unknown;
4
- export declare type ISelection = HTMLElement;
5
- export declare type IStore = HTMLElement;
6
- export declare type IWhenShape = any;
7
- export declare type IThenShape = any;
@@ -1,6 +0,0 @@
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: ITestImplementation<ITestShape, any>, testSpecifications: ITestSpecification<ITestShape>, testInput: ITestShape["iinput"]) => Promise<import("../../../lib/core.js").default<ITestShape>>;
6
- export default _default;
@@ -1,5 +0,0 @@
1
- import { ITestSpecification } from "../../../Types";
2
- import type { IInput } from "./index";
3
- export declare type ISubject = HTMLElement;
4
- declare const _default: <ITestShape extends any>(testImplementations: any, testSpecifications: ITestSpecification<ITestShape>, testInput: IInput) => Promise<import("../../../lib/core.js").default<ITestShape>>;
5
- export default _default;
@@ -1,5 +0,0 @@
1
- import React from "react";
2
- import { ITestSpecification } from "../../../Types";
3
- declare type IInput = React.MemoExoticComponent<() => JSX.Element>;
4
- declare const _default: <ITestShape extends any, PropShape>(testImplementations: any, testSpecifications: ITestSpecification<ITestShape>, testInput: IInput) => Promise<import("../../../lib/core").default<ITestShape>>;
5
- export default _default;
@@ -1,13 +0,0 @@
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>;
@@ -1,9 +0,0 @@
1
- import renderer from "react-test-renderer";
2
- import { ISelection, IStore } from ".";
3
- export declare const testInterface: {
4
- beforeEach: (CComponent: any, propsAndChildren: () => any) => Promise<renderer.ReactTestRenderer>;
5
- andWhen: (renderer: renderer.ReactTestRenderer, whenCB: any) => Promise<renderer.ReactTestRenderer>;
6
- butThen: (s: IStore, thenCB: any, tr: any) => Promise<ISelection>;
7
- afterEach: (store: IStore, ndx: any, artificer: any) => Promise<{}>;
8
- afterAll: (store: IStore, artificer: any) => void;
9
- };
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- import { ISpec, IInput } from "./index.js";
3
- declare const _default: <ITestShape extends any, IProps, IState>(testImplementations: any, 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;
@@ -1,3 +0,0 @@
1
- import { ISpec, IInput } from "./index.js";
2
- declare const _default: <ITestShape extends any, IProps, IState>(testImplementations: any, testSpecifications: ISpec<ITestShape>, testInput: IInput<any, any>) => Promise<import("../../../lib/core").default<ITestShape>>;
3
- export default _default;
@@ -1,8 +0,0 @@
1
- import React from "react";
2
- import { ITestSpecification, 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: any, testSpecifications: ISpec<ITestShape>, testInput: IInput) => Promise<import("../../../lib/core.js").default<ITestShape>>;
8
- export default _default;
@@ -1,8 +0,0 @@
1
- import React from "react";
2
- import { ITestSpecification, 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: any, testSpecifications: ISpec<ITestShape>, testInput: IInput) => Promise<import("../../../lib/core").default<ITestShape>>;
8
- export default _default;
@@ -1,17 +0,0 @@
1
- /// <reference types="react" />
2
- import renderer from "react-test-renderer";
3
- import { IBaseTest, ITestImplementation, ITestSpecification } from "../../../Types";
4
- export declare type IWhenShape = any;
5
- export declare type IThenShape = any;
6
- export declare type InitialState = unknown;
7
- export declare type IInput = (props?: any) => JSX.Element;
8
- export declare type ISelection = renderer.ReactTestRenderer;
9
- export declare type IStore = renderer.ReactTestRenderer;
10
- export declare type ISubject = renderer.ReactTestRenderer;
11
- export declare type ITestImpl<ITestShape extends IBaseTest> = ITestImplementation<ITestShape, object>;
12
- export declare type ITestSpec<ITestShape extends IBaseTest> = ITestSpecification<ITestShape>;
13
- export declare const testInterface: {
14
- butThen: (s: IStore, thenCB: any, tr: any) => Promise<ISelection>;
15
- beforeEach: (CComponent: any, props: any) => Promise<renderer.ReactTestRenderer>;
16
- andWhen: (renderer: renderer.ReactTestRenderer, whenCB: (any: any) => any) => Promise<renderer.ReactTestRenderer>;
17
- };
@@ -1,9 +0,0 @@
1
- import { IBaseTest } from "../../../Types";
2
- import type { ITestSpec } from "../jsx-promised";
3
- import { IInput } from "./index.js";
4
- 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>>>(testImplementations: any, 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;
@@ -1,8 +0,0 @@
1
- import { ITestSpec } from "../jsx-promised";
2
- import { IInput } from "./index.js";
3
- declare const _default: <ITestShape extends any>(testImplementations: any, 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;
@@ -1,16 +0,0 @@
1
- /// <reference types="react" />
2
- import renderer from "react-test-renderer";
3
- import { IBaseTest, ITestImplementation, ITestSpecification } from "../../../Types";
4
- export declare type IWhenShape = any;
5
- export declare type IThenShape = any;
6
- export declare type InitialState = unknown;
7
- export declare type IInput = Promise<JSX.Element>;
8
- export declare type ISelection = renderer.ReactTestRenderer;
9
- export declare type IStore = renderer.ReactTestRenderer;
10
- export declare type ISubject = renderer.ReactTestRenderer;
11
- export declare type ITestImpl<ITestShape extends IBaseTest> = ITestImplementation<ITestShape>;
12
- export declare type ITestSpec<ITestShape extends IBaseTest> = ITestSpecification<ITestShape>;
13
- export declare const testInterface: {
14
- beforeEach: (CComponent: any) => Promise<renderer.ReactTestRenderer>;
15
- andWhen: (renderer: renderer.ReactTestRenderer, whenCB: () => (any: any) => any) => Promise<renderer.ReactTestRenderer>;
16
- };
@@ -1,4 +0,0 @@
1
- import { IInput } from ".";
2
- import { ITestSpec } from "../../react/jsx";
3
- declare const _default: <ITestShape extends any>(testImplementations: any, testSpecifications: ITestSpec<ITestShape>, testInput: IInput) => Promise<import("../../../lib/core").default<ITestShape>>;
4
- export default _default;
@@ -1,4 +0,0 @@
1
- import { ITestSpec } from "../../react/jsx";
2
- import { IInput } from "./index";
3
- declare const _default: <ITestShape extends any>(testImplementations: any, testSpecifications: ITestSpec<ITestShape>, testInput: IInput) => Promise<import("../../../lib/core").default<ITestShape>>;
4
- export default _default;
@@ -1,90 +0,0 @@
1
- import { ITTestResourceConfiguration, ITestArtificer, ITestCheckCallback } from "./lib/index.js";
2
- import { IGivens, BaseCheck, BaseSuite, BaseWhen, BaseThen, BaseGiven } from "./lib/abstractBase.js";
3
- import { PM } from "./PM/index.js";
4
- export declare type IWebTestInterface<ITestShape extends IBaseTest<unknown, unknown, unknown, unknown, unknown, unknown, unknown, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>> = {
5
- assertThis: (x: ITestShape["then"]) => void;
6
- andWhen: (store: ITestShape["istore"], whenCB: ITestShape["when"], testResource: ITTestResourceConfiguration, utils: PM) => Promise<ITestShape["istore"]>;
7
- butThen: (store: ITestShape["istore"], thenCB: any, testResource: ITTestResourceConfiguration, utils: PM) => Promise<ITestShape["iselection"]>;
8
- afterAll: (store: ITestShape["istore"], artificer: ITestArtificer, utils: PM) => any;
9
- afterEach: (store: ITestShape["istore"], key: string, artificer: ITestArtificer, utils: PM) => Promise<unknown>;
10
- beforeAll: (input: ITestShape["iinput"], testResource: ITTestResourceConfiguration, artificer: ITestArtificer, utils: PM) => Promise<ITestShape["isubject"]>;
11
- beforeEach: (subject: ITestShape["isubject"], initializer: (c?: any) => ITestShape["given"], artificer: ITestArtificer, testResource: ITTestResourceConfiguration, initialValues: any, utils: PM) => Promise<ITestShape["istore"]>;
12
- };
13
- export declare type INodeTestInterface<I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>> = {
14
- assertThis: (x: I["then"]) => void;
15
- andWhen: (store: I["istore"], whenCB: I["when"], testResource: ITTestResourceConfiguration, utils: PM) => Promise<I["istore"]>;
16
- butThen: (store: I["istore"], thenCB: any, testResource: ITTestResourceConfiguration, utils: PM) => Promise<I["iselection"]>;
17
- afterAll: (store: I["istore"], artificer: ITestArtificer, pm: PM) => any;
18
- afterEach: (store: I["istore"], key: string, artificer: ITestArtificer, pm: PM) => Promise<unknown>;
19
- beforeAll: (input: I["iinput"], testResource: ITTestResourceConfiguration, artificer: ITestArtificer, pm: PM) => Promise<I["isubject"]>;
20
- beforeEach: (subject: I["isubject"], initializer: (c?: any) => I["given"], artificer: ITestArtificer, testResource: ITTestResourceConfiguration, initialValues: any, pm: PM) => Promise<I["istore"]>;
21
- };
22
- export declare type ITestInterface<I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>> = {
23
- assertThis: (x: I["then"]) => void;
24
- andWhen: (store: I["istore"], whenCB: I["when"], testResource: ITTestResourceConfiguration, pm: PM) => Promise<I["istore"]>;
25
- butThen: (store: I["istore"], thenCB: I["then"], testResource: ITTestResourceConfiguration, pm: PM) => Promise<I["iselection"]>;
26
- afterAll: (store: I["istore"], artificer: ITestArtificer, pm: PM) => any;
27
- afterEach: (store: I["istore"], key: string, artificer: ITestArtificer, pm: PM) => Promise<unknown>;
28
- beforeAll: (input: I["iinput"], testResource: ITTestResourceConfiguration, artificer: ITestArtificer, pm: PM) => Promise<I["isubject"]>;
29
- beforeEach: (subject: I["isubject"], initializer: (c?: any) => I["given"], artificer: ITestArtificer, testResource: ITTestResourceConfiguration, initialValues: any, pm: PM) => Promise<I["istore"]>;
30
- };
31
- export declare type IPartialInterface<I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>> = Partial<ITestInterface<I>>;
32
- export declare type IPartialNodeInterface<I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>> = Partial<INodeTestInterface<I>>;
33
- 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>>;
34
- export declare type ITestSpecification<I extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>> = (Suite: {
35
- [K in keyof I["suites"]]: (name: string, givens: IGivens<IBaseTest<unknown, unknown, unknown, unknown, unknown, unknown, unknown, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>>, checks: BaseCheck<IBaseTest<unknown, unknown, unknown, unknown, unknown, unknown, unknown, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>>[]) => BaseSuite<IBaseTest<unknown, unknown, unknown, unknown, unknown, unknown, unknown, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>>;
36
- }, Given: {
37
- [K in keyof I["givens"]]: (features: string[], whens: BaseWhen<IBaseTest<unknown, unknown, unknown, unknown, unknown, unknown, unknown, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>>[], thens: BaseThen<IBaseTest<unknown, unknown, unknown, unknown, unknown, unknown, unknown, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>>[], ...xtrasB: I["givens"][K]) => BaseGiven<IBaseTest<unknown, unknown, unknown, unknown, unknown, unknown, unknown, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>>;
38
- }, When: {
39
- [K in keyof I["whens"]]: (...xtrasC: I["whens"][K]) => BaseWhen<IBaseTest<unknown, unknown, unknown, unknown, unknown, unknown, unknown, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>>;
40
- }, Then: {
41
- [K in keyof I["thens"]]: (...xtrasD: I["thens"][K]) => BaseThen<IBaseTest<unknown, unknown, unknown, unknown, unknown, unknown, unknown, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>>;
42
- }, Check: ITestCheckCallback<IBaseTest<unknown, unknown, unknown, unknown, unknown, unknown, unknown, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>>) => any[];
43
- export declare type ITestImplementation<IN extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>, OUT extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>> = {
44
- suites: {
45
- [K in keyof OUT["suites"]]: string;
46
- };
47
- givens: {
48
- [K in keyof OUT["givens"]]: (...Ig: OUT["givens"][K]) => IN["given"];
49
- };
50
- whens: {
51
- [K in keyof OUT["whens"]]: (...Iw: OUT["whens"][K]) => (zel: IN["iselection"], utils: PM) => Promise<IN["when"]>;
52
- };
53
- thens: {
54
- [K in keyof OUT["thens"]]: (...It: OUT["thens"][K]) => (ssel: IN["iselection"], utils: PM) => IN["then"];
55
- };
56
- checks: {
57
- [K in keyof OUT["checks"]]: (...Ic: OUT["checks"][K]) => IN["given"];
58
- };
59
- };
60
- export declare type Modify<T, R> = Omit<T, keyof R> & R;
61
- 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>> = {
62
- iinput: IInput;
63
- isubject: ISubject;
64
- istore: IStore;
65
- iselection: ISelection;
66
- given: IGiven;
67
- when: IWhen;
68
- then: IThen;
69
- suites: ISuites;
70
- givens: IGivens;
71
- whens: IWhens;
72
- thens: IThens;
73
- checks: IChecks;
74
- };
75
- export declare type Ibdd_out<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>> = {
76
- suites: ISuites;
77
- givens: IGivens;
78
- whens: IWhens;
79
- thens: IThens;
80
- checks: IChecks;
81
- };
82
- export declare type Ibdd_in<IInput, ISubject, IStore, ISelection, IGiven, IWhen, IThen> = {
83
- iinput: IInput;
84
- isubject: ISubject;
85
- istore: IStore;
86
- iselection: ISelection;
87
- given: IGiven;
88
- when: IWhen;
89
- then: IThen;
90
- };
@@ -1,10 +0,0 @@
1
- import type { IBaseTest, ITestImplementation, ITestSpecification } from "./Types";
2
- import Testeranto from "./lib/core.js";
3
- import { ITTestResourceRequest } from "./lib/index.js";
4
- import { IFinalResults, ITestInterface } from "./lib/types";
5
- export declare class WebTesteranto<TestShape extends IBaseTest<unknown, unknown, unknown, unknown, unknown, unknown, unknown, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>> extends Testeranto<TestShape> {
6
- constructor(input: TestShape["iinput"], testSpecification: ITestSpecification<TestShape>, testImplementation: ITestImplementation<TestShape>, testResourceRequirement: ITTestResourceRequest, testInterface: Partial<ITestInterface<TestShape>>);
7
- receiveTestResourceConfig(partialTestResource: any): Promise<IFinalResults>;
8
- }
9
- 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: any, testInterface: IWebTestInterface<ITestShape>, testResourceRequirement?: ITTestResourceRequest) => Promise<Testeranto<ITestShape>>;
10
- export default _default;
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,3 +0,0 @@
1
- import { IBaseConfig } from "testeranto/src/lib/types.js";
2
- declare const config: IBaseConfig;
3
- export default config;
@@ -1,5 +0,0 @@
1
- declare const _default: {
2
- name: string;
3
- setup(build: any): void;
4
- };
5
- export default _default;