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.
- package/README.md +1 -0
- package/bundle.js +80 -30
- package/package.json +40 -32
- package/src/Footer.tsx +4 -0
- package/src/Init.ts +48 -0
- package/src/Node.ts +23 -17
- package/src/PM/index.ts +1 -1
- package/src/PM/main.ts +524 -156
- package/src/PM/node.ts +2 -2
- package/src/PM/web.ts +1 -1
- package/src/ReportClient.tsx +163 -0
- package/src/ReportServer.ts +21 -0
- package/src/SubPackages/react/component/node.ts +68 -24
- package/src/SubPackages/react/component/web.ts +68 -25
- package/src/SubPackages/react/jsx/index.ts +39 -18
- package/src/SubPackages/react/jsx/node.ts +12 -10
- package/src/SubPackages/react/jsx/web.ts +27 -14
- package/src/SubPackages/react-dom/component/node.ts +42 -50
- package/src/SubPackages/react-dom/component/web.ts +28 -10
- package/src/SubPackages/react-dom/jsx/node.ts +54 -56
- package/src/SubPackages/react-dom/jsx/web.ts +55 -42
- package/src/SubPackages/react-test-renderer/MemoExoticComponent/node.ts +23 -7
- package/src/SubPackages/react-test-renderer/component/index.ts +38 -5
- package/src/SubPackages/react-test-renderer/component/node.ts +24 -5
- package/src/SubPackages/react-test-renderer/component/web.ts +22 -5
- package/src/SubPackages/react-test-renderer/fc/node.ts +41 -7
- package/src/SubPackages/react-test-renderer/fc/web.ts +43 -11
- package/src/SubPackages/react-test-renderer/jsx/index.ts +39 -16
- package/src/SubPackages/react-test-renderer/jsx/node.ts +8 -6
- package/src/SubPackages/react-test-renderer/jsx/web.ts +22 -5
- package/src/SubPackages/react-test-renderer/jsx-promised/index.ts +39 -6
- package/src/SubPackages/react-test-renderer/jsx-promised/node.ts +27 -10
- package/src/SubPackages/react-test-renderer/jsx-promised/web.ts +26 -12
- package/src/TestReport.tsx +176 -0
- package/src/Types.ts +63 -309
- package/src/Web.ts +24 -18
- package/src/build.ts +240 -0
- package/src/defaultConfig.ts +2 -1
- package/src/esbuildConfigs/eslint-formatter-testeranto.ts +5 -0
- package/src/esbuildConfigs/featuresPlugin.ts +0 -1
- package/src/esbuildConfigs/index.ts +1 -1
- package/src/esbuildConfigs/inputFilesPlugin.ts +2 -135
- package/src/esbuildConfigs/node.ts +4 -13
- package/src/esbuildConfigs/web.ts +3 -19
- package/src/init-docs.ts +2 -1
- package/src/lib/abstractBase.ts +82 -80
- package/src/lib/basebuilder.ts +57 -45
- package/src/lib/classBuilder.ts +15 -15
- package/src/lib/core.ts +44 -35
- package/src/lib/index.ts +47 -98
- package/src/lib/readme.md +12 -0
- package/src/lib/types.ts +53 -70
- package/src/run.ts +31 -0
- package/src/style.css +8 -0
- package/src/utils.ts +74 -2
- package/tsc.log +108 -0
- package/Bundle.Dockerfile +0 -52
- package/bin/init-docs.js +0 -24
- package/dist/common/dist/module/src/Init.js +0 -40
- package/dist/common/package.json +0 -3
- package/dist/common/src/Init.js +0 -40
- package/dist/common/src/Node.js +0 -27
- package/dist/common/src/PM/index.js +0 -7
- package/dist/common/src/PM/main.js +0 -941
- package/dist/common/src/PM/node.js +0 -128
- package/dist/common/src/PM/web.js +0 -121
- package/dist/common/src/SubPackages/puppeteer.js +0 -21
- package/dist/common/src/SubPackages/react/component/node.js +0 -19
- package/dist/common/src/SubPackages/react/component/web.js +0 -19
- package/dist/common/src/SubPackages/react/jsx/index.js +0 -33
- package/dist/common/src/SubPackages/react/jsx/node.js +0 -10
- package/dist/common/src/SubPackages/react/jsx/web.js +0 -10
- package/dist/common/src/SubPackages/react-dom/component/node.js +0 -101
- package/dist/common/src/SubPackages/react-dom/component/web.js +0 -67
- package/dist/common/src/SubPackages/react-dom/jsx/index.js +0 -2
- package/dist/common/src/SubPackages/react-dom/jsx/node.js +0 -39
- package/dist/common/src/SubPackages/react-dom/jsx/web.js +0 -117
- package/dist/common/src/SubPackages/react-test-renderer/MemoExoticComponent/node.js +0 -44
- package/dist/common/src/SubPackages/react-test-renderer/component/index.js +0 -2
- package/dist/common/src/SubPackages/react-test-renderer/component/interface.js +0 -60
- package/dist/common/src/SubPackages/react-test-renderer/component/node.js +0 -8
- package/dist/common/src/SubPackages/react-test-renderer/component/web.js +0 -8
- package/dist/common/src/SubPackages/react-test-renderer/fc/node.js +0 -50
- package/dist/common/src/SubPackages/react-test-renderer/fc/web.js +0 -50
- package/dist/common/src/SubPackages/react-test-renderer/jsx/index.js +0 -63
- package/dist/common/src/SubPackages/react-test-renderer/jsx/node.js +0 -10
- package/dist/common/src/SubPackages/react-test-renderer/jsx/web.js +0 -10
- package/dist/common/src/SubPackages/react-test-renderer/jsx-promised/index.js +0 -42
- package/dist/common/src/SubPackages/react-test-renderer/jsx-promised/node.js +0 -10
- package/dist/common/src/SubPackages/react-test-renderer/jsx-promised/web.js +0 -10
- package/dist/common/src/Types.js +0 -2
- package/dist/common/src/Web.js +0 -49
- package/dist/common/src/cli.js +0 -439
- package/dist/common/src/cli2.js +0 -144
- package/dist/common/src/defaultConfig.js +0 -19
- package/dist/common/src/esbuildConfigs/featuresPlugin.js +0 -39
- package/dist/common/src/esbuildConfigs/index.js +0 -21
- package/dist/common/src/esbuildConfigs/inputFilesPlugin.js +0 -99
- package/dist/common/src/esbuildConfigs/node.js +0 -45
- package/dist/common/src/esbuildConfigs/web.js +0 -61
- package/dist/common/src/init-docs.js +0 -43
- package/dist/common/src/lib/abstractBase.js +0 -324
- package/dist/common/src/lib/basebuilder.js +0 -85
- package/dist/common/src/lib/classBuilder.js +0 -42
- package/dist/common/src/lib/core.js +0 -101
- package/dist/common/src/lib/index.js +0 -22
- package/dist/common/src/lib/types.js +0 -3
- package/dist/common/src/puppeteerConfiger.js +0 -24
- package/dist/common/src/utils.js +0 -16
- package/dist/common/src/web.html.js +0 -22
- package/dist/common/testeranto.js +0 -15
- package/dist/common/tsconfig.common.tsbuildinfo +0 -1
- package/dist/module/package.json +0 -3
- package/dist/module/src/Init.js +0 -35
- package/dist/module/src/Node.js +0 -20
- package/dist/module/src/PM/index.js +0 -3
- package/dist/module/src/PM/main.js +0 -911
- package/dist/module/src/PM/node.js +0 -121
- package/dist/module/src/PM/web.js +0 -117
- package/dist/module/src/SubPackages/puppeteer.js +0 -16
- package/dist/module/src/SubPackages/react/component/node.js +0 -14
- package/dist/module/src/SubPackages/react/component/web.js +0 -14
- package/dist/module/src/SubPackages/react/jsx/index.js +0 -27
- package/dist/module/src/SubPackages/react/jsx/node.js +0 -5
- package/dist/module/src/SubPackages/react/jsx/web.js +0 -5
- package/dist/module/src/SubPackages/react-dom/component/node.js +0 -93
- package/dist/module/src/SubPackages/react-dom/component/web.js +0 -62
- package/dist/module/src/SubPackages/react-dom/jsx/index.js +0 -1
- package/dist/module/src/SubPackages/react-dom/jsx/node.js +0 -31
- package/dist/module/src/SubPackages/react-dom/jsx/web.js +0 -89
- package/dist/module/src/SubPackages/react-test-renderer/MemoExoticComponent/node.js +0 -16
- package/dist/module/src/SubPackages/react-test-renderer/component/index.js +0 -1
- package/dist/module/src/SubPackages/react-test-renderer/component/interface.js +0 -31
- package/dist/module/src/SubPackages/react-test-renderer/component/node.js +0 -3
- package/dist/module/src/SubPackages/react-test-renderer/component/web.js +0 -3
- package/dist/module/src/SubPackages/react-test-renderer/fc/node.js +0 -22
- package/dist/module/src/SubPackages/react-test-renderer/fc/web.js +0 -22
- package/dist/module/src/SubPackages/react-test-renderer/jsx/index.js +0 -34
- package/dist/module/src/SubPackages/react-test-renderer/jsx/node.js +0 -5
- package/dist/module/src/SubPackages/react-test-renderer/jsx/web.js +0 -5
- package/dist/module/src/SubPackages/react-test-renderer/jsx-promised/index.js +0 -16
- package/dist/module/src/SubPackages/react-test-renderer/jsx-promised/node.js +0 -5
- package/dist/module/src/SubPackages/react-test-renderer/jsx-promised/web.js +0 -5
- package/dist/module/src/Types.js +0 -1
- package/dist/module/src/Web.js +0 -42
- package/dist/module/src/cli.js +0 -411
- package/dist/module/src/cli2.js +0 -116
- package/dist/module/src/defaultConfig.js +0 -17
- package/dist/module/src/esbuildConfigs/featuresPlugin.js +0 -34
- package/dist/module/src/esbuildConfigs/index.js +0 -19
- package/dist/module/src/esbuildConfigs/inputFilesPlugin.js +0 -94
- package/dist/module/src/esbuildConfigs/node.js +0 -40
- package/dist/module/src/esbuildConfigs/web.js +0 -56
- package/dist/module/src/init-docs.js +0 -15
- package/dist/module/src/lib/abstractBase.js +0 -316
- package/dist/module/src/lib/basebuilder.js +0 -81
- package/dist/module/src/lib/classBuilder.js +0 -38
- package/dist/module/src/lib/core.js +0 -98
- package/dist/module/src/lib/index.js +0 -18
- package/dist/module/src/lib/types.js +0 -2
- package/dist/module/src/puppeteerConfiger.js +0 -19
- package/dist/module/src/utils.js +0 -9
- package/dist/module/src/web.html.js +0 -20
- package/dist/module/testeranto.js +0 -13
- package/dist/module/tsconfig.module.tsbuildinfo +0 -1
- package/dist/prebuild/cli.mjs +0 -1491
- package/dist/prebuild/cli2.mjs +0 -918
- package/dist/prebuild/init-docs.mjs +0 -48
- package/dist/types/dist/module/src/Init.d.ts +0 -2
- package/dist/types/src/Init.d.ts +0 -2
- package/dist/types/src/Node.d.ts +0 -13
- package/dist/types/src/PM/index.d.ts +0 -34
- package/dist/types/src/PM/main.d.ts +0 -56
- package/dist/types/src/PM/node.d.ts +0 -42
- package/dist/types/src/PM/web.d.ts +0 -40
- package/dist/types/src/SubPackages/puppeteer.d.ts +0 -6
- package/dist/types/src/SubPackages/react/component/node.d.ts +0 -7
- package/dist/types/src/SubPackages/react/component/web.d.ts +0 -7
- package/dist/types/src/SubPackages/react/jsx/index.d.ts +0 -12
- package/dist/types/src/SubPackages/react/jsx/node.d.ts +0 -4
- package/dist/types/src/SubPackages/react/jsx/web.d.ts +0 -4
- package/dist/types/src/SubPackages/react-dom/component/node.d.ts +0 -12
- package/dist/types/src/SubPackages/react-dom/component/web.d.ts +0 -11
- package/dist/types/src/SubPackages/react-dom/jsx/index.d.ts +0 -7
- package/dist/types/src/SubPackages/react-dom/jsx/node.d.ts +0 -6
- package/dist/types/src/SubPackages/react-dom/jsx/web.d.ts +0 -5
- package/dist/types/src/SubPackages/react-test-renderer/MemoExoticComponent/node.d.ts +0 -5
- package/dist/types/src/SubPackages/react-test-renderer/component/index.d.ts +0 -13
- package/dist/types/src/SubPackages/react-test-renderer/component/interface.d.ts +0 -9
- package/dist/types/src/SubPackages/react-test-renderer/component/node.d.ts +0 -8
- package/dist/types/src/SubPackages/react-test-renderer/component/web.d.ts +0 -3
- package/dist/types/src/SubPackages/react-test-renderer/fc/node.d.ts +0 -8
- package/dist/types/src/SubPackages/react-test-renderer/fc/web.d.ts +0 -8
- package/dist/types/src/SubPackages/react-test-renderer/jsx/index.d.ts +0 -17
- package/dist/types/src/SubPackages/react-test-renderer/jsx/node.d.ts +0 -9
- package/dist/types/src/SubPackages/react-test-renderer/jsx/web.d.ts +0 -8
- package/dist/types/src/SubPackages/react-test-renderer/jsx-promised/index.d.ts +0 -16
- package/dist/types/src/SubPackages/react-test-renderer/jsx-promised/node.d.ts +0 -4
- package/dist/types/src/SubPackages/react-test-renderer/jsx-promised/web.d.ts +0 -4
- package/dist/types/src/Types.d.ts +0 -90
- package/dist/types/src/Web.d.ts +0 -10
- package/dist/types/src/cli.d.ts +0 -1
- package/dist/types/src/cli2.d.ts +0 -1
- package/dist/types/src/defaultConfig.d.ts +0 -3
- package/dist/types/src/esbuildConfigs/featuresPlugin.d.ts +0 -5
- package/dist/types/src/esbuildConfigs/index.d.ts +0 -4
- package/dist/types/src/esbuildConfigs/inputFilesPlugin.d.ts +0 -7
- package/dist/types/src/esbuildConfigs/node.d.ts +0 -4
- package/dist/types/src/esbuildConfigs/web.d.ts +0 -4
- package/dist/types/src/init-docs.d.ts +0 -1
- package/dist/types/src/lib/abstractBase.d.ts +0 -110
- package/dist/types/src/lib/basebuilder.d.ts +0 -27
- package/dist/types/src/lib/classBuilder.d.ts +0 -7
- package/dist/types/src/lib/core.d.ts +0 -8
- package/dist/types/src/lib/index.d.ts +0 -60
- package/dist/types/src/lib/types.d.ts +0 -40
- package/dist/types/src/puppeteerConfiger.d.ts +0 -4
- package/dist/types/src/utils.d.ts +0 -2
- package/dist/types/src/web.html.d.ts +0 -2
- package/dist/types/testeranto.d.ts +0 -16
- package/dist/types/tsconfig.types.tsbuildinfo +0 -1
- package/docker-compose.yml +0 -37
- package/src/SubPackages/puppeteer.ts +0 -51
- package/src/cli.ts +0 -535
- package/src/cli2.ts +0 -157
- 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
|
-
}
|
package/dist/types/src/Init.d.ts
DELETED
package/dist/types/src/Node.d.ts
DELETED
|
@@ -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
|
-
};
|
package/dist/types/src/Web.d.ts
DELETED
|
@@ -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;
|
package/dist/types/src/cli.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/types/src/cli2.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|