testeranto 0.111.0 → 0.112.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -5
- package/dist/common/Init.js +68 -0
- package/dist/common/Node.js +27 -0
- package/dist/common/PM/index.js +7 -0
- package/dist/common/PM/main.js +1176 -0
- package/dist/common/PM/node.js +128 -0
- package/dist/common/PM/web.js +121 -0
- package/dist/common/ReportServer.js +22 -0
- package/dist/common/SubPackages/react/component/node.js +19 -0
- package/dist/common/SubPackages/react/component/web.js +19 -0
- package/dist/common/SubPackages/react/jsx/index.js +21 -0
- package/dist/common/SubPackages/react/jsx/node.js +10 -0
- package/dist/common/SubPackages/react/jsx/web.js +10 -0
- package/dist/common/SubPackages/react-dom/component/node.js +88 -0
- package/dist/common/SubPackages/react-dom/component/web.js +67 -0
- package/dist/common/SubPackages/react-dom/jsx/index.js +2 -0
- package/dist/common/SubPackages/react-dom/jsx/node.js +39 -0
- package/dist/common/SubPackages/react-dom/jsx/web.js +128 -0
- package/dist/common/SubPackages/react-test-renderer/MemoExoticComponent/node.js +54 -0
- package/dist/common/SubPackages/react-test-renderer/component/index.js +2 -0
- package/dist/common/SubPackages/react-test-renderer/component/interface.js +70 -0
- package/dist/common/SubPackages/react-test-renderer/component/node.js +8 -0
- package/dist/common/SubPackages/react-test-renderer/component/web.js +8 -0
- package/dist/common/SubPackages/react-test-renderer/fc/node.js +60 -0
- package/dist/common/SubPackages/react-test-renderer/fc/web.js +60 -0
- package/dist/common/SubPackages/react-test-renderer/jsx/index.js +67 -0
- package/dist/common/SubPackages/react-test-renderer/jsx/node.js +10 -0
- package/dist/common/SubPackages/react-test-renderer/jsx/web.js +10 -0
- package/dist/common/SubPackages/react-test-renderer/jsx-promised/index.js +52 -0
- package/dist/common/SubPackages/react-test-renderer/jsx-promised/node.js +10 -0
- package/dist/common/SubPackages/react-test-renderer/jsx-promised/web.js +10 -0
- package/dist/common/Types.js +2 -0
- package/dist/common/Web.js +49 -0
- package/dist/common/build.js +222 -0
- package/dist/common/defaultConfig.js +20 -0
- package/dist/common/esbuildConfigs/eslint-formatter-testeranto.js +6 -0
- package/dist/common/esbuildConfigs/featuresPlugin.js +39 -0
- package/dist/common/esbuildConfigs/index.js +21 -0
- package/dist/common/esbuildConfigs/inputFilesPlugin.js +27 -0
- package/dist/common/esbuildConfigs/node.js +37 -0
- package/dist/common/esbuildConfigs/web.js +50 -0
- package/dist/common/init-docs.js +53 -0
- package/dist/common/lib/abstractBase.js +329 -0
- package/dist/common/lib/basebuilder.js +98 -0
- package/dist/common/lib/classBuilder.js +40 -0
- package/dist/common/lib/core.js +117 -0
- package/dist/common/lib/index.js +21 -0
- package/dist/common/lib/types.js +2 -0
- package/dist/common/package.json +3 -0
- package/dist/common/puppeteerConfiger.js +24 -0
- package/dist/common/run.js +62 -0
- package/dist/common/tsconfig.common.tsbuildinfo +1 -0
- package/dist/common/utils.js +43 -0
- package/dist/common/web.html.js +22 -0
- package/dist/module/Footer.js +4 -0
- package/dist/module/Init.js +63 -0
- package/dist/module/Node.js +20 -0
- package/dist/module/PM/index.js +3 -0
- package/dist/module/PM/main.js +1136 -0
- package/dist/module/PM/node.js +121 -0
- package/dist/module/PM/web.js +117 -0
- package/dist/module/ReportClient.js +97 -0
- package/dist/module/ReportServer.js +17 -0
- package/dist/module/SubPackages/react/component/node.js +14 -0
- package/dist/module/SubPackages/react/component/web.js +14 -0
- package/dist/module/SubPackages/react/jsx/index.js +15 -0
- package/dist/module/SubPackages/react/jsx/node.js +5 -0
- package/dist/module/SubPackages/react/jsx/web.js +5 -0
- package/dist/module/SubPackages/react-dom/component/node.js +80 -0
- package/dist/module/SubPackages/react-dom/component/web.js +62 -0
- package/dist/module/SubPackages/react-dom/jsx/index.js +1 -0
- package/dist/module/SubPackages/react-dom/jsx/node.js +31 -0
- package/dist/module/SubPackages/react-dom/jsx/web.js +90 -0
- package/dist/module/SubPackages/react-test-renderer/MemoExoticComponent/node.js +16 -0
- package/dist/module/SubPackages/react-test-renderer/component/index.js +1 -0
- package/dist/module/SubPackages/react-test-renderer/component/interface.js +31 -0
- package/dist/module/SubPackages/react-test-renderer/component/node.js +3 -0
- package/dist/module/SubPackages/react-test-renderer/component/web.js +3 -0
- package/dist/module/SubPackages/react-test-renderer/fc/node.js +22 -0
- package/dist/module/SubPackages/react-test-renderer/fc/web.js +22 -0
- package/dist/module/SubPackages/react-test-renderer/jsx/index.js +28 -0
- package/dist/module/SubPackages/react-test-renderer/jsx/node.js +5 -0
- package/dist/module/SubPackages/react-test-renderer/jsx/web.js +5 -0
- package/dist/module/SubPackages/react-test-renderer/jsx-promised/index.js +16 -0
- package/dist/module/SubPackages/react-test-renderer/jsx-promised/node.js +5 -0
- package/dist/module/SubPackages/react-test-renderer/jsx-promised/web.js +5 -0
- package/dist/module/TestReport.js +91 -0
- package/dist/module/Types.js +1 -0
- package/dist/module/Web.js +42 -0
- package/dist/module/build.js +184 -0
- package/dist/module/defaultConfig.js +18 -0
- package/dist/module/esbuildConfigs/eslint-formatter-testeranto.js +3 -0
- package/dist/module/esbuildConfigs/featuresPlugin.js +34 -0
- package/dist/module/esbuildConfigs/index.js +19 -0
- package/dist/module/esbuildConfigs/inputFilesPlugin.js +22 -0
- package/dist/module/esbuildConfigs/node.js +32 -0
- package/dist/module/esbuildConfigs/web.js +45 -0
- package/dist/module/init-docs.js +15 -0
- package/dist/module/lib/abstractBase.js +321 -0
- package/dist/module/lib/basebuilder.js +94 -0
- package/dist/module/lib/classBuilder.js +36 -0
- package/dist/module/lib/core.js +114 -0
- package/dist/module/lib/index.js +17 -0
- package/dist/module/lib/types.js +1 -0
- package/dist/module/package.json +3 -0
- package/dist/module/puppeteerConfiger.js +19 -0
- package/dist/module/run.js +24 -0
- package/dist/module/tsconfig.module.tsbuildinfo +1 -0
- package/dist/module/utils.js +29 -0
- package/dist/module/web.html.js +20 -0
- package/dist/prebuild/ReportClient.css +11367 -0
- package/dist/prebuild/ReportClient.js +24641 -0
- package/dist/prebuild/ReportServer.mjs +16 -0
- package/dist/prebuild/TestReport.css +11367 -0
- package/dist/prebuild/TestReport.js +27484 -0
- package/dist/prebuild/build.mjs +376 -0
- package/dist/prebuild/esbuildConfigs/eslint-formatter-testeranto.mjs +9 -0
- package/dist/prebuild/init-docs.mjs +104 -0
- package/dist/prebuild/run.mjs +1153 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/dist/types/Init.d.ts +2 -0
- package/dist/types/Node.d.ts +12 -0
- package/dist/types/PM/index.d.ts +34 -0
- package/dist/types/PM/main.d.ts +66 -0
- package/dist/types/PM/node.d.ts +40 -0
- package/dist/types/PM/web.d.ts +38 -0
- package/dist/types/ReportServer.d.ts +1 -0
- package/dist/types/SubPackages/react/component/node.d.ts +7 -0
- package/dist/types/SubPackages/react/component/web.d.ts +7 -0
- package/dist/types/SubPackages/react/jsx/index.d.ts +12 -0
- package/dist/types/SubPackages/react/jsx/node.d.ts +4 -0
- package/dist/types/SubPackages/react/jsx/web.d.ts +4 -0
- package/dist/types/SubPackages/react-dom/component/node.d.ts +11 -0
- package/dist/types/SubPackages/react-dom/component/web.d.ts +20 -0
- package/dist/types/SubPackages/react-dom/jsx/index.d.ts +6 -0
- package/dist/types/SubPackages/react-dom/jsx/node.d.ts +7 -0
- package/dist/types/SubPackages/react-dom/jsx/web.d.ts +5 -0
- package/dist/types/SubPackages/react-test-renderer/MemoExoticComponent/node.d.ts +6 -0
- package/dist/types/SubPackages/react-test-renderer/component/index.d.ts +13 -0
- package/dist/types/SubPackages/react-test-renderer/component/interface.d.ts +9 -0
- package/dist/types/SubPackages/react-test-renderer/component/node.d.ts +4 -0
- package/dist/types/SubPackages/react-test-renderer/component/web.d.ts +4 -0
- package/dist/types/SubPackages/react-test-renderer/fc/node.d.ts +8 -0
- package/dist/types/SubPackages/react-test-renderer/fc/web.d.ts +9 -0
- package/dist/types/SubPackages/react-test-renderer/jsx/index.d.ts +16 -0
- package/dist/types/SubPackages/react-test-renderer/jsx/node.d.ts +9 -0
- package/dist/types/SubPackages/react-test-renderer/jsx/web.d.ts +9 -0
- package/dist/types/SubPackages/react-test-renderer/jsx-promised/index.d.ts +15 -0
- package/dist/types/SubPackages/react-test-renderer/jsx-promised/node.d.ts +5 -0
- package/dist/types/SubPackages/react-test-renderer/jsx-promised/web.d.ts +5 -0
- package/dist/types/Types.d.ts +61 -0
- package/dist/types/Web.d.ts +9 -0
- package/dist/types/build.d.ts +1 -0
- package/dist/types/defaultConfig.d.ts +3 -0
- package/dist/types/esbuildConfigs/eslint-formatter-testeranto.d.ts +2 -0
- package/dist/types/esbuildConfigs/featuresPlugin.d.ts +5 -0
- package/dist/types/esbuildConfigs/index.d.ts +4 -0
- package/dist/types/esbuildConfigs/inputFilesPlugin.d.ts +6 -0
- package/dist/types/esbuildConfigs/node.d.ts +4 -0
- package/dist/types/esbuildConfigs/web.d.ts +4 -0
- package/dist/types/init-docs.d.ts +1 -0
- package/dist/types/lib/abstractBase.d.ts +110 -0
- package/dist/types/lib/basebuilder.d.ts +27 -0
- package/dist/types/lib/classBuilder.d.ts +7 -0
- package/dist/types/lib/core.d.ts +7 -0
- package/dist/types/lib/index.d.ts +83 -0
- package/dist/types/lib/types.d.ts +14 -0
- package/dist/types/puppeteerConfiger.d.ts +4 -0
- package/dist/types/run.d.ts +1 -0
- package/dist/types/tsconfig.types.tsbuildinfo +1 -0
- package/dist/types/utils.d.ts +15 -0
- package/dist/types/web.html.d.ts +2 -0
- package/package.json +1 -1
- package/src/PM/main.ts +25 -57
- package/src/ReportClient.tsx +43 -41
- package/src/run.ts +8 -5
- package/src/utils.ts +10 -0
- package/tsc.log +8 -8
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { CdpPage, Page } from "puppeteer-core/lib/esm/puppeteer";
|
|
2
|
+
import fs from "fs";
|
|
3
|
+
import { Browser } from "puppeteer-core";
|
|
4
|
+
import { PassThrough } from "stream";
|
|
5
|
+
import { IBuiltConfig, ITestTypes, ITLog } from "../lib/index.js";
|
|
6
|
+
import { ISummary } from "../utils";
|
|
7
|
+
import { PM } from "./index.js";
|
|
8
|
+
export declare class PM_Main extends PM {
|
|
9
|
+
browser: Browser;
|
|
10
|
+
shutdownMode: boolean;
|
|
11
|
+
configs: IBuiltConfig;
|
|
12
|
+
ports: Record<number, boolean>;
|
|
13
|
+
queue: any[];
|
|
14
|
+
mode: "DEV" | "PROD";
|
|
15
|
+
bigBoard: ISummary;
|
|
16
|
+
webMetafileWatcher: fs.FSWatcher;
|
|
17
|
+
nodeMetafileWatcher: fs.FSWatcher;
|
|
18
|
+
constructor(configs: IBuiltConfig);
|
|
19
|
+
stop: () => void;
|
|
20
|
+
customclose(): void;
|
|
21
|
+
waitForSelector(p: string, s: string): any;
|
|
22
|
+
closePage(p: any): any;
|
|
23
|
+
newPage(): CdpPage;
|
|
24
|
+
goto(p: any, url: string): any;
|
|
25
|
+
$(selector: string): boolean;
|
|
26
|
+
screencast(opts: object): void;
|
|
27
|
+
customScreenShot(opts: object, cdpPage?: CdpPage): void;
|
|
28
|
+
end(accessObject: {
|
|
29
|
+
uid: number;
|
|
30
|
+
}): boolean;
|
|
31
|
+
existsSync(destFolder: string): boolean;
|
|
32
|
+
mkdirSync(fp: string): Promise<string | false | undefined>;
|
|
33
|
+
writeFileSync(fp: string, contents: string): void;
|
|
34
|
+
createWriteStream(filepath: string): fs.WriteStream;
|
|
35
|
+
testArtiFactoryfileWriter(tLog: ITLog, callback: (Promise: any) => void): (fPath: any, value: string | Buffer | PassThrough) => void;
|
|
36
|
+
write(accessObject: {
|
|
37
|
+
uid: number;
|
|
38
|
+
}, contents: string): boolean;
|
|
39
|
+
page(): string | undefined;
|
|
40
|
+
click(selector: string): string | undefined;
|
|
41
|
+
focusOn(selector: string): void;
|
|
42
|
+
typeInto(value: string): void;
|
|
43
|
+
getValue(value: string): void;
|
|
44
|
+
getAttribute(selector: string, attribute: string): void;
|
|
45
|
+
isDisabled(selector: string): Promise<boolean>;
|
|
46
|
+
screencastStop(s: string): void;
|
|
47
|
+
metafileOutputs(platform: "web" | "node"): Promise<void>;
|
|
48
|
+
start(): Promise<any>;
|
|
49
|
+
tscCheck: ({ entrypoint, addableFiles, platform, }: {
|
|
50
|
+
platform: "web" | "node";
|
|
51
|
+
entrypoint: string;
|
|
52
|
+
addableFiles: string[];
|
|
53
|
+
}) => Promise<void>;
|
|
54
|
+
eslintCheck: (entrypoint: string, platform: "web" | "node", addableFiles: string[]) => Promise<void>;
|
|
55
|
+
makePrompt: (entryPoint: string, addableFiles: string[], platform: "web" | "node") => Promise<void>;
|
|
56
|
+
checkForShutdown: () => void;
|
|
57
|
+
testIsNowRunning: (src: string) => void;
|
|
58
|
+
testIsNowDone: (src: string) => void;
|
|
59
|
+
launchNode: (src: string, dest: string) => Promise<void>;
|
|
60
|
+
launchWebSideCar: (src: string, dest: string, testConfig: ITestTypes) => Promise<Page>;
|
|
61
|
+
launchNodeSideCar: (src: string, dest: string, testConfig: ITestTypes) => Promise<void>;
|
|
62
|
+
launchWeb: (t: string, dest: string) => void;
|
|
63
|
+
receiveFeatures: (features: string[], destFolder: string, srcTest: string) => void;
|
|
64
|
+
receiveExitCode: (srcTest: string, failures: number) => void;
|
|
65
|
+
writeBigBoard: () => void;
|
|
66
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { ScreencastOptions } from "puppeteer-core";
|
|
2
|
+
import { PassThrough } from "stream";
|
|
3
|
+
import { ITLog, ITTestResourceConfiguration } from "../lib";
|
|
4
|
+
import { PM } from "./index.js";
|
|
5
|
+
import { CdpPage } from "puppeteer-core/lib/esm/puppeteer";
|
|
6
|
+
type PuppetMasterServer = Record<string, Promise<any>>;
|
|
7
|
+
export declare class PM_Node extends PM {
|
|
8
|
+
server: PuppetMasterServer;
|
|
9
|
+
testResourceConfiguration: ITTestResourceConfiguration;
|
|
10
|
+
constructor(t: ITTestResourceConfiguration);
|
|
11
|
+
waitForSelector(p: string, s: string): any;
|
|
12
|
+
closePage(p: any): string;
|
|
13
|
+
goto(cdpPage: CdpPage, url: string): any;
|
|
14
|
+
newPage(): CdpPage;
|
|
15
|
+
$(selector: string): boolean;
|
|
16
|
+
isDisabled(selector: string): Promise<boolean>;
|
|
17
|
+
getAttribute(selector: string, attribute: string): void;
|
|
18
|
+
getValue(selector: string): void;
|
|
19
|
+
focusOn(selector: string): void;
|
|
20
|
+
typeInto(value: string): void;
|
|
21
|
+
page(): any;
|
|
22
|
+
click(selector: string): string | undefined;
|
|
23
|
+
screencast(opts: ScreencastOptions, page: CdpPage): any;
|
|
24
|
+
screencastStop(p: string): any;
|
|
25
|
+
customScreenShot(opts: ScreencastOptions, cdpPage: CdpPage): any;
|
|
26
|
+
existsSync(destFolder: string): boolean;
|
|
27
|
+
mkdirSync(): any;
|
|
28
|
+
write(writeObject: {
|
|
29
|
+
uid: number;
|
|
30
|
+
}, contents: string): any;
|
|
31
|
+
writeFileSync(filepath: string, contents: string): any;
|
|
32
|
+
createWriteStream(filepath: string): any;
|
|
33
|
+
end(writeObject: {
|
|
34
|
+
uid: number;
|
|
35
|
+
}): any;
|
|
36
|
+
customclose(): void;
|
|
37
|
+
testArtiFactoryfileWriter(tLog: ITLog, callback: (Promise: any) => void): (fPath: any, value: string | Buffer | PassThrough) => void;
|
|
38
|
+
startPuppeteer(options?: any): any;
|
|
39
|
+
}
|
|
40
|
+
export {};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { PassThrough } from "stream";
|
|
2
|
+
import { ITLog, ITTestResourceConfiguration } from "../lib";
|
|
3
|
+
import { PM } from "./index.js";
|
|
4
|
+
import { ScreencastOptions, ScreenshotOptions } from "puppeteer-core";
|
|
5
|
+
import { CdpPage } from "puppeteer-core/lib/esm/puppeteer";
|
|
6
|
+
type PuppetMasterServer = Record<string, Promise<any>>;
|
|
7
|
+
export declare class PM_Web extends PM {
|
|
8
|
+
server: PuppetMasterServer;
|
|
9
|
+
constructor(t: ITTestResourceConfiguration);
|
|
10
|
+
waitForSelector(p: string, s: string): any;
|
|
11
|
+
screencast(opts: ScreencastOptions): any;
|
|
12
|
+
screencastStop(recorder: string): any;
|
|
13
|
+
closePage(p: any): string;
|
|
14
|
+
goto(p: any, url: string): any;
|
|
15
|
+
newPage(): CdpPage;
|
|
16
|
+
$(selector: string): boolean;
|
|
17
|
+
isDisabled(selector: string): Promise<boolean>;
|
|
18
|
+
getAttribute(selector: string, attribute: string): any;
|
|
19
|
+
getValue(selector: string): any;
|
|
20
|
+
focusOn(selector: string): any;
|
|
21
|
+
typeInto(value: string): any;
|
|
22
|
+
page(): string | undefined;
|
|
23
|
+
click(selector: string): any;
|
|
24
|
+
customScreenShot(opts: ScreenshotOptions): any;
|
|
25
|
+
existsSync(destFolder: string): boolean;
|
|
26
|
+
mkdirSync(x: any): any;
|
|
27
|
+
write(writeObject: {
|
|
28
|
+
uid: number;
|
|
29
|
+
}, contents: string): any;
|
|
30
|
+
writeFileSync(filepath: string, contents: string): any;
|
|
31
|
+
createWriteStream(filepath: string): any;
|
|
32
|
+
end(writeObject: {
|
|
33
|
+
uid: number;
|
|
34
|
+
}): any;
|
|
35
|
+
customclose(): void;
|
|
36
|
+
testArtiFactoryfileWriter(tLog: ITLog, callback: (Promise: any) => void): (fPath: any, value: string | Buffer | PassThrough) => void;
|
|
37
|
+
}
|
|
38
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Ibdd_in, Ibdd_out, ITestImplementation, ITestSpecification } from "../../../Types";
|
|
3
|
+
type IInput = typeof React.Component;
|
|
4
|
+
export type IImpl<I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>, O extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>> = ITestImplementation<I, O>;
|
|
5
|
+
export type ISpec<I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>, O extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>> = ITestSpecification<I, O>;
|
|
6
|
+
declare const _default: <I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>, O extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>>(testImplementations: ITestImplementation<I, O>, testSpecifications: ISpec<I, O>, testInput: IInput) => Promise<import("../../../lib/core.js").default<I, O>>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Ibdd_in, Ibdd_out, ITestImplementation, ITestSpecification } from "../../../Types";
|
|
3
|
+
type IInput = typeof React.Component;
|
|
4
|
+
export type IImpl<I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>, O extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>> = ITestImplementation<I, O>;
|
|
5
|
+
export type ISpec<I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>, O extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>> = ITestSpecification<I, O>;
|
|
6
|
+
declare const _default: <I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>, O extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>>(testImplementations: ITestImplementation<I, O>, testSpecifications: ISpec<I, O>, testInput: IInput) => Promise<import("../../../lib/core.js").default<I, O>>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CElement } from "react";
|
|
2
|
+
import { Ibdd_in, Ibdd_out, IPartialInterface, ITestImplementation, ITestSpecification } from "../../../Types";
|
|
3
|
+
export type IWhenShape = any;
|
|
4
|
+
export type IThenShape = any;
|
|
5
|
+
export type InitialState = unknown;
|
|
6
|
+
export type IInput = () => JSX.Element;
|
|
7
|
+
export type ISelection = CElement<any, any>;
|
|
8
|
+
export type IStore = CElement<any, any>;
|
|
9
|
+
export type ISubject = CElement<any, any>;
|
|
10
|
+
export type ITestImpl<I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>, O extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>> = ITestImplementation<I, O>;
|
|
11
|
+
export type ITestSpec<I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>, O extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>> = ITestSpecification<I, O>;
|
|
12
|
+
export declare const testInterface: IPartialInterface<any>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Ibdd_in, Ibdd_out, IPartialInterface } from "../../../Types";
|
|
2
|
+
import { ITestImpl, ITestSpec, IInput } from "./index.js";
|
|
3
|
+
declare const _default: <I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>, O extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>>(testImplementations: ITestImpl<I, O>, testSpecifications: ITestSpec<I, O>, testInput: IInput, testInterface?: IPartialInterface<I>) => Promise<import("../../../lib/core.js").default<I, O>>;
|
|
4
|
+
export default _default;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Ibdd_in, Ibdd_out, IPartialWebInterface } from "../../../Types";
|
|
2
|
+
import { ITestImpl, ITestSpec, IInput } from "./index.js";
|
|
3
|
+
declare const _default: <I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>, O extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>>(testImplementations: ITestImpl<I, O>, testSpecifications: ITestSpec<I, O>, testInput: IInput, testInterface: IPartialWebInterface<I>) => Promise<import("../../../lib/core").default<I, O>>;
|
|
4
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
|
+
import { renderToStaticMarkup, renderToStaticNodeStream } from "react-dom/server";
|
|
3
|
+
import Stream from "stream";
|
|
4
|
+
import { Ibdd_in, Ibdd_out, ITestImplementation, ITestSpecification } from "../../../Types";
|
|
5
|
+
type IInput = typeof React.Component;
|
|
6
|
+
export type ISelection = ReactNode;
|
|
7
|
+
export type IStore = ReactNode;
|
|
8
|
+
export type ISubject = ReactNode;
|
|
9
|
+
export { renderToStaticMarkup, renderToStaticNodeStream, Stream };
|
|
10
|
+
declare const _default: <I extends Ibdd_in<IInput, ISubject, IStore, ISelection, unknown, (s: IStore) => IStore, unknown>, O extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>>(testImplementations: ITestImplementation<I, O>, testSpecifications: ITestSpecification<I, O>, testInput: IInput) => Promise<import("../../../lib/core.js").default<I, O>>;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import ReactDom from "react-dom/client";
|
|
3
|
+
import { Ibdd_in, Ibdd_out, IPartialWebInterface, ITestImplementation, ITestSpecification } from "../../../Types";
|
|
4
|
+
type IInput = typeof React.Component;
|
|
5
|
+
type ISelection = {
|
|
6
|
+
htmlElement: HTMLElement;
|
|
7
|
+
reactElement: any;
|
|
8
|
+
domRoot: ReactDom.Root;
|
|
9
|
+
};
|
|
10
|
+
export type IStore = {
|
|
11
|
+
htmlElement: HTMLElement;
|
|
12
|
+
reactElement: any;
|
|
13
|
+
domRoot: ReactDom.Root;
|
|
14
|
+
};
|
|
15
|
+
type ISubject = {
|
|
16
|
+
htmlElement: HTMLElement;
|
|
17
|
+
domRoot: ReactDom.Root;
|
|
18
|
+
};
|
|
19
|
+
declare const _default: <I extends Ibdd_in<IInput, ISubject, ISelection, IStore, (s: IStore) => IStore, (s: IStore) => IStore, (s: IStore) => IStore>, O extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>>(testInput: IInput, testSpecifications: ITestSpecification<I, O>, testImplementations: ITestImplementation<I, O>, testInterface?: IPartialWebInterface<any>) => Promise<import("../../../lib/core.js").default<I, O>>;
|
|
20
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { renderToStaticMarkup, renderToStaticNodeStream } from "react-dom/server";
|
|
2
|
+
import Stream from "stream";
|
|
3
|
+
import { Ibdd_in, Ibdd_out, ITestImplementation, ITestSpecification } from "../../../Types";
|
|
4
|
+
import { IInput, ISelection, IStore } from "./index.js";
|
|
5
|
+
export { renderToStaticMarkup, renderToStaticNodeStream, Stream };
|
|
6
|
+
declare const _default: <I extends Ibdd_in<IInput, unknown, ISelection, IStore, unknown, unknown, unknown>, O extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>>(testImplementations: ITestImplementation<I, O>, testSpecifications: ITestSpecification<I, O>, testInput: I["iinput"]) => Promise<import("../../../lib/core.js").default<I, O>>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Ibdd_in, Ibdd_out, ITestImplementation, ITestSpecification } from "../../../Types";
|
|
2
|
+
import type { IInput, ISelection, IStore, IThenShape, IWhenShape } from "./index";
|
|
3
|
+
export type ISubject = HTMLElement;
|
|
4
|
+
declare const _default: <I extends Ibdd_in<IInput, ISubject, ISelection, IStore, unknown, IWhenShape, IThenShape>, O extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>>(testImplementations: ITestImplementation<I, O>, testSpecifications: ITestSpecification<I, O>, testInput: IInput) => Promise<import("../../../lib/core.js").default<I, O>>;
|
|
5
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import renderer from "react-test-renderer";
|
|
3
|
+
import { Ibdd_in, Ibdd_out, ITestImplementation, ITestSpecification } from "../../../Types";
|
|
4
|
+
type IInput = React.MemoExoticComponent<() => JSX.Element>;
|
|
5
|
+
declare const _default: <I extends Ibdd_in<IInput, renderer.ReactTestRenderer, renderer.ReactTestRenderer, renderer.ReactTestRenderer, unknown, unknown, unknown>, O extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>>(testImplementations: ITestImplementation<I, O>, testSpecifications: ITestSpecification<I, O>, testInput: IInput) => Promise<import("../../../lib/core").default<I, O>>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import renderer from "react-test-renderer";
|
|
3
|
+
import type { Ibdd_in, Ibdd_out, ITestImplementation, ITestSpecification } from "../../../Types";
|
|
4
|
+
export type ISuper<T> = T extends infer U ? U : object;
|
|
5
|
+
export type IInput<P, S> = typeof React.Component<P, S>;
|
|
6
|
+
export type InitialState = unknown;
|
|
7
|
+
export type IWhenShape = any;
|
|
8
|
+
export type IThenShape = any;
|
|
9
|
+
export type ISelection = renderer.ReactTestRenderer;
|
|
10
|
+
export type IStore = renderer.ReactTestRenderer;
|
|
11
|
+
export type ISubject = renderer.ReactTestRenderer;
|
|
12
|
+
export type IImpl<I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>, O extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>> = ITestImplementation<I, O>;
|
|
13
|
+
export type ISpec<I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>, O extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>> = ITestSpecification<I, O>;
|
|
@@ -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,4 @@
|
|
|
1
|
+
import { Ibdd_in, Ibdd_out } from "../../../Types.js";
|
|
2
|
+
import { IImpl, ISpec, IInput } from "./index.js";
|
|
3
|
+
declare const _default: <I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>, O extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>, IProps, IState>(testImplementations: IImpl<I, O>, testSpecifications: ISpec<I, O>, testInput: IInput<IProps, IState>) => Promise<import("../../../lib/core.js").default<I, O>>;
|
|
4
|
+
export default _default;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Ibdd_in, Ibdd_out } from "../../../Types.js";
|
|
2
|
+
import { IImpl, ISpec, IInput } from "./index.js";
|
|
3
|
+
declare const _default: <I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>, O extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>>(testImplementations: IImpl<I, O>, testSpecifications: ISpec<I, O>, testInput: IInput<any, any>) => Promise<import("../../../lib/core.js").default<I, O>>;
|
|
4
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ITestSpecification, ITestImplementation, Ibdd_in, Ibdd_out } from "../../../Types";
|
|
3
|
+
export type IInput = React.FC;
|
|
4
|
+
export type IWhenShape = unknown;
|
|
5
|
+
export type IThenShape = unknown;
|
|
6
|
+
export type ISpec<I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>, O extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>> = ITestSpecification<I, O>;
|
|
7
|
+
declare const _default: <I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>, O extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>>(testImplementations: ITestImplementation<I, O>, testSpecifications: ISpec<I, O>, testInput: IInput) => Promise<import("../../../lib/core.js").default<I, O>>;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import renderer from "react-test-renderer";
|
|
3
|
+
import { ITestSpecification, ITestImplementation, Ibdd_in, Ibdd_out } from "../../../Types";
|
|
4
|
+
export type IInput = React.FC;
|
|
5
|
+
export type IWhenShape = unknown;
|
|
6
|
+
export type IThenShape = unknown;
|
|
7
|
+
export type ISpec<I extends Ibdd_in<unknown, unknown, renderer.ReactTestRenderer, unknown, unknown, unknown, unknown>, O extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>> = ITestSpecification<I, O>;
|
|
8
|
+
declare const _default: <I extends Ibdd_in<unknown, unknown, renderer.ReactTestRenderer, unknown, unknown, unknown, unknown>, O extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>>(testImplementations: ITestImplementation<I, O>, testSpecifications: ISpec<I, O>, testInput: IInput) => Promise<import("../../../lib/core").default<I, O>>;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import renderer from "react-test-renderer";
|
|
2
|
+
import { Ibdd_in, Ibdd_out, ITestImplementation, ITestSpecification } from "../../../Types";
|
|
3
|
+
export type IWhenShape = any;
|
|
4
|
+
export type IThenShape = any;
|
|
5
|
+
export type InitialState = unknown;
|
|
6
|
+
export type IInput = (props?: any) => JSX.Element;
|
|
7
|
+
export type ISelection = renderer.ReactTestRenderer;
|
|
8
|
+
export type IStore = renderer.ReactTestRenderer;
|
|
9
|
+
export type ISubject = renderer.ReactTestRenderer;
|
|
10
|
+
export type ITestImpl<I extends Ibdd_in<unknown, unknown, renderer.ReactTestRenderer, unknown, unknown, unknown, unknown>, O extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>> = ITestImplementation<I, O>;
|
|
11
|
+
export type ITestSpec<I extends Ibdd_in<unknown, unknown, renderer.ReactTestRenderer, unknown, unknown, unknown, unknown>, O extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>> = ITestSpecification<I, O>;
|
|
12
|
+
export declare const testInterface: {
|
|
13
|
+
butThen: (s: IStore, thenCB: 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,9 @@
|
|
|
1
|
+
import { Ibdd_in, Ibdd_out } from "../../../Types.js";
|
|
2
|
+
import type { ITestImpl, ITestSpec } from "../jsx-promised";
|
|
3
|
+
import { IInput } from "./index.js";
|
|
4
|
+
declare const _default: <I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>, O extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>>(testImplementations: ITestImpl<I, O>, testSpecifications: ITestSpec<I, O>, testInput: IInput, testInterface2?: {
|
|
5
|
+
butThen: (s: import("./index.js").IStore, thenCB: any) => Promise<import("./index.js").ISelection>;
|
|
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<I, O>>;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Ibdd_in, Ibdd_out } from "../../../Types.js";
|
|
2
|
+
import { ITestImpl, ITestSpec } from "../jsx-promised";
|
|
3
|
+
import { IInput } from "./index.js";
|
|
4
|
+
declare const _default: <I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>, O extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>>(testImplementations: ITestImpl<I, O>, testSpecifications: ITestSpec<I, O>, testInput: IInput, testInterface2?: {
|
|
5
|
+
butThen: (s: import("./index.js").IStore, thenCB: any) => Promise<import("./index.js").ISelection>;
|
|
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<I, O>>;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import renderer from "react-test-renderer";
|
|
2
|
+
import { Ibdd_in, Ibdd_out, ITestImplementation, ITestSpecification } from "../../../Types";
|
|
3
|
+
export type IWhenShape = any;
|
|
4
|
+
export type IThenShape = any;
|
|
5
|
+
export type InitialState = unknown;
|
|
6
|
+
export type IInput = Promise<JSX.Element>;
|
|
7
|
+
export type ISelection = renderer.ReactTestRenderer;
|
|
8
|
+
export type IStore = renderer.ReactTestRenderer;
|
|
9
|
+
export type ISubject = renderer.ReactTestRenderer;
|
|
10
|
+
export type ITestImpl<I extends Ibdd_in<renderer.ReactTestRenderer, renderer.ReactTestRenderer, renderer.ReactTestRenderer, renderer.ReactTestRenderer, unknown, unknown, unknown>, O extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>> = ITestImplementation<I, O>;
|
|
11
|
+
export type ITestSpec<I extends Ibdd_in<renderer.ReactTestRenderer, renderer.ReactTestRenderer, renderer.ReactTestRenderer, renderer.ReactTestRenderer, unknown, unknown, unknown>, O extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>> = ITestSpecification<I, O>;
|
|
12
|
+
export declare const testInterface: {
|
|
13
|
+
beforeEach: (CComponent: any) => Promise<unknown>;
|
|
14
|
+
andWhen: (renderer: renderer.ReactTestRenderer, whenCB: () => (any: any) => any) => Promise<renderer.ReactTestRenderer>;
|
|
15
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Ibdd_in, Ibdd_out } from "../../../Types";
|
|
2
|
+
import { ITestImpl, ITestSpec } from "../../react/jsx";
|
|
3
|
+
import { IInput } from ".";
|
|
4
|
+
declare const _default: <I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>, O extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>>(testImplementations: ITestImpl<I, O>, testSpecifications: ITestSpec<I, O>, testInput: IInput) => Promise<import("../../../lib/core").default<I, O>>;
|
|
5
|
+
export default _default;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Ibdd_in, Ibdd_out } from "../../../Types";
|
|
2
|
+
import { ITestImpl, ITestSpec } from "../../react/jsx";
|
|
3
|
+
import { IInput } from "./index";
|
|
4
|
+
declare const _default: <I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>, O extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>>(testImplementations: ITestImpl<I, O>, testSpecifications: ITestSpec<I, O>, testInput: IInput) => Promise<import("../../../lib/core").default<I, O>>;
|
|
5
|
+
export default _default;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { ITTestResourceConfiguration } from "./lib/index.js";
|
|
2
|
+
import { IGivens, BaseCheck, BaseSuite, BaseWhen, BaseThen, BaseGiven } from "./lib/abstractBase.js";
|
|
3
|
+
import { PM } from "./PM/index.js";
|
|
4
|
+
import { ITestCheckCallback } from "./lib/types.js";
|
|
5
|
+
export type ITestInterface<I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>> = {
|
|
6
|
+
assertThis: (x: I["then"]) => void;
|
|
7
|
+
andWhen: (store: I["istore"], whenCB: I["when"], testResource: ITTestResourceConfiguration, pm: PM) => Promise<I["istore"]>;
|
|
8
|
+
butThen: (store: I["istore"], thenCB: I["then"], testResource: ITTestResourceConfiguration, pm: PM) => Promise<I["iselection"]>;
|
|
9
|
+
afterAll: (store: I["istore"], pm: PM) => any;
|
|
10
|
+
afterEach: (store: I["istore"], key: string, pm: PM) => Promise<unknown>;
|
|
11
|
+
beforeAll: (input: I["iinput"], testResource: ITTestResourceConfiguration, pm: PM) => Promise<I["isubject"]>;
|
|
12
|
+
beforeEach: (subject: I["isubject"], initializer: (c?: any) => I["given"], testResource: ITTestResourceConfiguration, initialValues: any, pm: PM) => Promise<I["istore"]>;
|
|
13
|
+
};
|
|
14
|
+
export type IWebTestInterface<I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>> = ITestInterface<I>;
|
|
15
|
+
export type INodeTestInterface<I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>> = ITestInterface<I>;
|
|
16
|
+
export type IPartialInterface<I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>> = Partial<ITestInterface<I>>;
|
|
17
|
+
export type IPartialNodeInterface<I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>> = Partial<INodeTestInterface<I>>;
|
|
18
|
+
export type IPartialWebInterface<I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>> = Partial<IWebTestInterface<I>>;
|
|
19
|
+
export type ITestSpecification<I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>, O extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>> = (Suite: {
|
|
20
|
+
[K in keyof O["suites"]]: (name: string, givens: IGivens<I>, checks: BaseCheck<I, O>[]) => BaseSuite<I, O>;
|
|
21
|
+
}, Given: {
|
|
22
|
+
[K in keyof O["givens"]]: (features: string[], whens: BaseWhen<I>[], thens: BaseThen<I>[], ...xtrasB: O["givens"][K]) => BaseGiven<I>;
|
|
23
|
+
}, When: {
|
|
24
|
+
[K in keyof O["whens"]]: (...xtrasC: O["whens"][K]) => BaseWhen<I>;
|
|
25
|
+
}, Then: {
|
|
26
|
+
[K in keyof O["thens"]]: (...xtrasD: O["thens"][K]) => BaseThen<I>;
|
|
27
|
+
}, Check: ITestCheckCallback<I, O>) => any[];
|
|
28
|
+
export type ITestImplementation<I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>, O extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>> = {
|
|
29
|
+
suites: {
|
|
30
|
+
[K in keyof O["suites"]]: string;
|
|
31
|
+
};
|
|
32
|
+
givens: {
|
|
33
|
+
[K in keyof O["givens"]]: (...Ig: O["givens"][K]) => I["given"];
|
|
34
|
+
};
|
|
35
|
+
whens: {
|
|
36
|
+
[K in keyof O["whens"]]: (...Iw: O["whens"][K]) => (zel: I["iselection"], utils: PM) => Promise<I["when"]>;
|
|
37
|
+
};
|
|
38
|
+
thens: {
|
|
39
|
+
[K in keyof O["thens"]]: (...It: O["thens"][K]) => (ssel: I["iselection"], utils: PM) => I["then"];
|
|
40
|
+
};
|
|
41
|
+
checks: {
|
|
42
|
+
[K in keyof O["checks"]]: (...Ic: O["checks"][K]) => I["given"];
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
export type Modify<T, R> = Omit<T, keyof R> & R;
|
|
46
|
+
export 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>> = {
|
|
47
|
+
suites: ISuites;
|
|
48
|
+
givens: IGivens;
|
|
49
|
+
whens: IWhens;
|
|
50
|
+
thens: IThens;
|
|
51
|
+
checks: IChecks;
|
|
52
|
+
};
|
|
53
|
+
export type Ibdd_in<IInput, ISubject, IStore, ISelection, IGiven, IWhen, IThen> = {
|
|
54
|
+
iinput: IInput;
|
|
55
|
+
isubject: ISubject;
|
|
56
|
+
istore: IStore;
|
|
57
|
+
iselection: ISelection;
|
|
58
|
+
given: IGiven;
|
|
59
|
+
when: IWhen;
|
|
60
|
+
then: IThen;
|
|
61
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Ibdd_in, Ibdd_out, ITestImplementation, ITestInterface, ITestSpecification, IWebTestInterface } from "./Types";
|
|
2
|
+
import Testeranto from "./lib/core.js";
|
|
3
|
+
import { IFinalResults, ITTestResourceRequest } from "./lib/index.js";
|
|
4
|
+
export declare class WebTesteranto<I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>, O extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>> extends Testeranto<I, O> {
|
|
5
|
+
constructor(input: I["iinput"], testSpecification: ITestSpecification<I, O>, testImplementation: ITestImplementation<I, O>, testResourceRequirement: ITTestResourceRequest, testInterface: Partial<ITestInterface<I>>);
|
|
6
|
+
receiveTestResourceConfig(partialTestResource: any): Promise<IFinalResults>;
|
|
7
|
+
}
|
|
8
|
+
declare const _default: <I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>, O extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>>(input: I["iinput"], testSpecification: ITestSpecification<I, O>, testImplementation: ITestImplementation<I, O>, testInterface: Partial<IWebTestInterface<I>>, testResourceRequirement?: ITTestResourceRequest) => Promise<Testeranto<I, O>>;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|