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,7 +0,0 @@
|
|
|
1
|
-
import type { Plugin } from "esbuild";
|
|
2
|
-
declare const register: (entrypoint: string, sources: string[]) => void;
|
|
3
|
-
declare const _default: (platform: "web" | "node", entryPoints: Set<string> | string[]) => {
|
|
4
|
-
register: (entrypoint: string, sources: string[]) => void;
|
|
5
|
-
inputFilesPluginFactory: Plugin;
|
|
6
|
-
};
|
|
7
|
-
export default _default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
import { IBaseTest } from "../Types";
|
|
2
|
-
import { PM } from "../PM/index.js";
|
|
3
|
-
import { ITTestResourceConfiguration, ITestArtifactory, ITLog } from ".";
|
|
4
|
-
export declare type IGivens<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>>> = Record<string, BaseGiven<ITestShape>>;
|
|
5
|
-
export declare abstract class BaseSuite<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>>> {
|
|
6
|
-
name: string;
|
|
7
|
-
givens: IGivens<ITestShape>;
|
|
8
|
-
checks: BaseCheck<ITestShape>[];
|
|
9
|
-
store: ITestShape["istore"];
|
|
10
|
-
fails: BaseGiven<ITestShape>[];
|
|
11
|
-
testResourceConfiguration: ITTestResourceConfiguration;
|
|
12
|
-
index: number;
|
|
13
|
-
constructor(name: string, index: number, givens?: IGivens<ITestShape>, checks?: BaseCheck<ITestShape>[]);
|
|
14
|
-
features(): string[];
|
|
15
|
-
toObj(): {
|
|
16
|
-
name: string;
|
|
17
|
-
givens: {
|
|
18
|
-
key: string;
|
|
19
|
-
name: string;
|
|
20
|
-
whens: {
|
|
21
|
-
name: string;
|
|
22
|
-
error: boolean;
|
|
23
|
-
}[];
|
|
24
|
-
thens: {
|
|
25
|
-
name: string;
|
|
26
|
-
error: boolean;
|
|
27
|
-
}[];
|
|
28
|
-
error: (string | Error | undefined)[] | null;
|
|
29
|
-
features: string[];
|
|
30
|
-
}[];
|
|
31
|
-
fails: BaseGiven<ITestShape>[];
|
|
32
|
-
features: string[];
|
|
33
|
-
};
|
|
34
|
-
setup(s: ITestShape["iinput"], artifactory: ITestArtifactory, tr: ITTestResourceConfiguration, pm: PM): Promise<ITestShape["isubject"]>;
|
|
35
|
-
assertThat(t: ITestShape["then"]): unknown;
|
|
36
|
-
afterAll(store: ITestShape["istore"], artifactory: ITestArtifactory, pm: PM): ITestShape["istore"];
|
|
37
|
-
run(input: ITestShape["iinput"], testResourceConfiguration: ITTestResourceConfiguration, artifactory: (fPath: string, value: unknown) => void, tLog: (...string: any[]) => void, pm: PM): Promise<BaseSuite<ITestShape>>;
|
|
38
|
-
}
|
|
39
|
-
export declare abstract class BaseGiven<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>>> {
|
|
40
|
-
name: string;
|
|
41
|
-
features: string[];
|
|
42
|
-
whens: BaseWhen<ITestShape>[];
|
|
43
|
-
thens: BaseThen<ITestShape>[];
|
|
44
|
-
error: Error;
|
|
45
|
-
fail: any;
|
|
46
|
-
store: ITestShape["istore"];
|
|
47
|
-
recommendedFsPath: string;
|
|
48
|
-
givenCB: ITestShape["given"];
|
|
49
|
-
initialValues: any;
|
|
50
|
-
key: string;
|
|
51
|
-
constructor(name: string, features: string[], whens: BaseWhen<ITestShape>[], thens: BaseThen<ITestShape>[], givenCB: ITestShape["given"], initialValues: any);
|
|
52
|
-
beforeAll(store: ITestShape["istore"], initializer: any, artifactory: any, testResource: any, initialValues: any, pm: any): ITestShape["istore"];
|
|
53
|
-
toObj(): {
|
|
54
|
-
key: string;
|
|
55
|
-
name: string;
|
|
56
|
-
whens: {
|
|
57
|
-
name: string;
|
|
58
|
-
error: boolean;
|
|
59
|
-
}[];
|
|
60
|
-
thens: {
|
|
61
|
-
name: string;
|
|
62
|
-
error: boolean;
|
|
63
|
-
}[];
|
|
64
|
-
error: (string | Error | undefined)[] | null;
|
|
65
|
-
features: string[];
|
|
66
|
-
};
|
|
67
|
-
abstract givenThat(subject: ITestShape["isubject"], testResourceConfiguration: any, artifactory: ITestArtifactory, givenCB: ITestShape["given"], initialValues: any, pm: PM): Promise<ITestShape["istore"]>;
|
|
68
|
-
afterEach(store: ITestShape["istore"], key: string, artifactory: ITestArtifactory, pm: PM): Promise<unknown>;
|
|
69
|
-
abstract uberCatcher(e: any): any;
|
|
70
|
-
give(subject: ITestShape["isubject"], key: string, testResourceConfiguration: ITTestResourceConfiguration, tester: (t: Awaited<ITestShape["then"]> | undefined) => boolean, artifactory: ITestArtifactory, tLog: ITLog, pm: PM, suiteNdx: number): Promise<ITestShape["istore"]>;
|
|
71
|
-
}
|
|
72
|
-
export declare abstract class BaseWhen<ITestShape extends IBaseTest> {
|
|
73
|
-
name: string;
|
|
74
|
-
whenCB: (x: ITestShape["iselection"]) => ITestShape["then"];
|
|
75
|
-
error: boolean;
|
|
76
|
-
constructor(name: string, whenCB: (xyz: ITestShape["iselection"]) => ITestShape["then"]);
|
|
77
|
-
abstract andWhen(store: ITestShape["istore"], whenCB: (x: ITestShape["iselection"]) => ITestShape["then"], testResource: any, pm: PM): Promise<any>;
|
|
78
|
-
toObj(): {
|
|
79
|
-
name: string;
|
|
80
|
-
error: boolean;
|
|
81
|
-
};
|
|
82
|
-
test(store: ITestShape["istore"], testResourceConfiguration: any, tLog: ITLog, pm: PM, filepath: string): Promise<any>;
|
|
83
|
-
}
|
|
84
|
-
export declare abstract class BaseThen<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>>> {
|
|
85
|
-
name: string;
|
|
86
|
-
thenCB: (storeState: ITestShape["iselection"]) => ITestShape["then"];
|
|
87
|
-
error: boolean;
|
|
88
|
-
constructor(name: string, thenCB: (val: ITestShape["iselection"]) => ITestShape["then"]);
|
|
89
|
-
toObj(): {
|
|
90
|
-
name: string;
|
|
91
|
-
error: boolean;
|
|
92
|
-
};
|
|
93
|
-
abstract butThen(store: ITestShape["istore"], thenCB: any, testResourceConfiguration: ITTestResourceConfiguration, pm: PM): Promise<ITestShape["iselection"]>;
|
|
94
|
-
test(store: ITestShape["istore"], testResourceConfiguration: any, tLog: ITLog, pm: PM, filepath: string): Promise<ITestShape["then"] | undefined>;
|
|
95
|
-
}
|
|
96
|
-
export declare abstract class BaseCheck<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>>> {
|
|
97
|
-
name: string;
|
|
98
|
-
features: string[];
|
|
99
|
-
checkCB: (whens: any, thens: any) => any;
|
|
100
|
-
whens: {
|
|
101
|
-
[K in keyof ITestShape["whens"]]: (p: any, tc: any) => BaseWhen<ITestShape>;
|
|
102
|
-
};
|
|
103
|
-
thens: {
|
|
104
|
-
[K in keyof ITestShape["thens"]]: (p: any, tc: any) => BaseThen<ITestShape>;
|
|
105
|
-
};
|
|
106
|
-
constructor(name: string, features: string[], checkCB: (whens: any, thens: any) => any, whens: any, thens: any);
|
|
107
|
-
abstract checkThat(subject: ITestShape["isubject"], testResourceConfiguration: any, artifactory: ITestArtifactory): Promise<ITestShape["istore"]>;
|
|
108
|
-
afterEach(store: ITestShape["istore"], key: string, cb: any, pm: PM): Promise<unknown>;
|
|
109
|
-
check(subject: ITestShape["isubject"], key: string, testResourceConfiguration: any, tester: any, artifactory: ITestArtifactory, tLog: ITLog, pm: PM): Promise<void>;
|
|
110
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { ITTestResourceRequest, ITestJob } from ".";
|
|
2
|
-
import { IBaseTest, ITestSpecification } from "../Types.js";
|
|
3
|
-
import { ISuiteKlasser, IGivenKlasser, IWhenKlasser, IThenKlasser, ICheckKlasser } from "./types.js";
|
|
4
|
-
import { BaseCheck, BaseWhen, BaseThen, BaseGiven } from "./abstractBase.js";
|
|
5
|
-
import { PM } from "../PM/index.js";
|
|
6
|
-
export declare abstract class BaseBuilder<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>>, SuiteExtensions, GivenExtensions, WhenExtensions, ThenExtensions, CheckExtensions> {
|
|
7
|
-
readonly input: ITestShape["iinput"];
|
|
8
|
-
specs: any;
|
|
9
|
-
assertThis: (t: ITestShape["then"]) => {};
|
|
10
|
-
testResourceRequirement: ITTestResourceRequest;
|
|
11
|
-
artifacts: Promise<unknown>[];
|
|
12
|
-
testJobs: ITestJob[];
|
|
13
|
-
testSpecification: ITestSpecification<ITestShape>;
|
|
14
|
-
suitesOverrides: Record<keyof SuiteExtensions, ISuiteKlasser<ITestShape>>;
|
|
15
|
-
givenOverides: Record<keyof GivenExtensions, IGivenKlasser<ITestShape>>;
|
|
16
|
-
whenOverides: Record<keyof WhenExtensions, IWhenKlasser<ITestShape>>;
|
|
17
|
-
thenOverides: Record<keyof ThenExtensions, IThenKlasser<ITestShape>>;
|
|
18
|
-
checkOverides: Record<keyof CheckExtensions, ICheckKlasser<ITestShape>>;
|
|
19
|
-
puppetMaster: PM;
|
|
20
|
-
constructor(input: ITestShape["iinput"], suitesOverrides: Record<keyof SuiteExtensions, ISuiteKlasser<ITestShape>>, givenOverides: Record<keyof GivenExtensions, IGivenKlasser<ITestShape>>, whenOverides: Record<keyof WhenExtensions, IWhenKlasser<ITestShape>>, thenOverides: Record<keyof ThenExtensions, IThenKlasser<ITestShape>>, checkOverides: Record<keyof CheckExtensions, ICheckKlasser<ITestShape>>, testResourceRequirement: ITTestResourceRequest, testSpecification: any);
|
|
21
|
-
Specs(): any;
|
|
22
|
-
Suites(): Record<keyof SuiteExtensions, ISuiteKlasser<ITestShape>>;
|
|
23
|
-
Given(): Record<keyof GivenExtensions, (name: string, features: string[], whens: BaseWhen<ITestShape>[], thens: BaseThen<ITestShape>[], gcb: any) => BaseGiven<ITestShape>>;
|
|
24
|
-
When(): Record<keyof WhenExtensions, (arg0: ITestShape["istore"], ...arg1: any) => BaseWhen<ITestShape>>;
|
|
25
|
-
Then(): Record<keyof ThenExtensions, (selection: ITestShape["iselection"], expectation: any) => BaseThen<ITestShape>>;
|
|
26
|
-
Check(): Record<keyof CheckExtensions, (feature: string, callback: (whens: any, thens: any) => any, whens: any, thens: any, x: any) => BaseCheck<ITestShape>>;
|
|
27
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { IBaseTest, ITestImplementation, ITestSpecification } from "../Types.js";
|
|
2
|
-
import { BaseBuilder } from "./basebuilder.js";
|
|
3
|
-
import { ISuiteKlasser, IGivenKlasser, IWhenKlasser, IThenKlasser, ICheckKlasser } from "./types.js";
|
|
4
|
-
import { ITTestResourceRequest } from "./index.js";
|
|
5
|
-
export declare abstract class ClassBuilder<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>>> extends BaseBuilder<ITestShape, any, any, any, any, any> {
|
|
6
|
-
constructor(testImplementation: ITestImplementation<ITestShape, any>, testSpecification: ITestSpecification<ITestShape>, input: ITestShape["iinput"], suiteKlasser: ISuiteKlasser<ITestShape>, givenKlasser: IGivenKlasser<ITestShape>, whenKlasser: IWhenKlasser<ITestShape>, thenKlasser: IThenKlasser<ITestShape>, checkKlasser: ICheckKlasser<ITestShape>, testResourceRequirement: ITTestResourceRequest);
|
|
7
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { IBaseTest, ITestSpecification, ITestImplementation } from "../Types.js";
|
|
2
|
-
import { IFinalResults, ITestInterface } from "./types.js";
|
|
3
|
-
import { ITTestResourceRequest } from "./index.js";
|
|
4
|
-
import { ClassBuilder } from "./classBuilder.js";
|
|
5
|
-
export default abstract class Testeranto<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>>> extends ClassBuilder<ITestShape> {
|
|
6
|
-
constructor(input: ITestShape["iinput"], testSpecification: ITestSpecification<ITestShape>, testImplementation: ITestImplementation<ITestShape>, testResourceRequirement: ITTestResourceRequest | undefined, testInterface: Partial<ITestInterface<ITestShape>>, uberCatcher: (cb: any) => void);
|
|
7
|
-
abstract receiveTestResourceConfig(partialTestResource: string): Promise<IFinalResults>;
|
|
8
|
-
}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { PM } from "../PM/index.js";
|
|
2
|
-
import { IBaseTest } from "../Types.js";
|
|
3
|
-
import { IGivens, BaseCheck, BaseSuite, BaseWhen, BaseThen } from "./abstractBase.js";
|
|
4
|
-
import { ITestInterface } from "./types.js";
|
|
5
|
-
export declare const BaseTestInterface: ITestInterface<IBaseTest<unknown, unknown, unknown, unknown, unknown, unknown, unknown, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>>;
|
|
6
|
-
export declare const DefaultTestInterface: (p: ITestInterface<any>) => ITestInterface<any>;
|
|
7
|
-
export declare type ITTestResourceConfiguration = {
|
|
8
|
-
name: string;
|
|
9
|
-
fs: string;
|
|
10
|
-
ports: number[];
|
|
11
|
-
browserWSEndpoint: string;
|
|
12
|
-
};
|
|
13
|
-
export declare type ITTestResourceRequirement = {
|
|
14
|
-
name: string;
|
|
15
|
-
ports: number;
|
|
16
|
-
fs: string;
|
|
17
|
-
};
|
|
18
|
-
export declare type ITTestResourceRequest = {
|
|
19
|
-
ports: number;
|
|
20
|
-
};
|
|
21
|
-
export declare type ITLog = (...string: any[]) => void;
|
|
22
|
-
export declare type ILogWriter = {
|
|
23
|
-
createWriteStream: (line: string) => any | any;
|
|
24
|
-
writeFileSync: (fp: string, contents: string) => any;
|
|
25
|
-
mkdirSync: () => any;
|
|
26
|
-
testArtiFactoryfileWriter: (tLog: ITLog, n: (Promise: any) => void) => (fPath: string, value: unknown) => void;
|
|
27
|
-
};
|
|
28
|
-
export declare type ITestArtificer = (key: string, data: any) => void;
|
|
29
|
-
declare type ITest = {
|
|
30
|
-
toObj(): object;
|
|
31
|
-
name: string;
|
|
32
|
-
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>>>;
|
|
33
|
-
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>>>[];
|
|
34
|
-
testResourceConfiguration: ITTestResourceConfiguration;
|
|
35
|
-
};
|
|
36
|
-
export declare type ITestJob<T = PM> = {
|
|
37
|
-
toObj(): object;
|
|
38
|
-
test: ITest;
|
|
39
|
-
runner: (x: ITTestResourceConfiguration, t: ITLog) => Promise<BaseSuite<IBaseTest<unknown, unknown, unknown, unknown, unknown, unknown, unknown, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>>>;
|
|
40
|
-
testResourceRequirement: ITTestResourceRequirement;
|
|
41
|
-
receiveTestResourceConfig: (pm: PM) => Promise<{
|
|
42
|
-
failed: number;
|
|
43
|
-
artifacts: Promise<unknown>[];
|
|
44
|
-
logPromise: Promise<unknown>;
|
|
45
|
-
features: string[];
|
|
46
|
-
}>;
|
|
47
|
-
};
|
|
48
|
-
export declare type ITestResults = Promise<{
|
|
49
|
-
test: ITest;
|
|
50
|
-
}>[];
|
|
51
|
-
export declare const defaultTestResourceRequirement: ITTestResourceRequest;
|
|
52
|
-
export declare type ITestArtifactory = (key: string, value: unknown) => unknown;
|
|
53
|
-
export declare type ITestCheckCallback<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>>> = {
|
|
54
|
-
[K in keyof ITestShape["checks"]]: (name: string, features: string[], callbackA: (whens: {
|
|
55
|
-
[K in keyof ITestShape["whens"]]: (...unknown: any[]) => BaseWhen<ITestShape>;
|
|
56
|
-
}, thens: {
|
|
57
|
-
[K in keyof ITestShape["thens"]]: (...unknown: any[]) => BaseThen<ITestShape>;
|
|
58
|
-
}) => Promise<any>, ...xtrasA: ITestShape["checks"][K]) => BaseCheck<ITestShape>;
|
|
59
|
-
};
|
|
60
|
-
export {};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import type { Plugin } from "esbuild";
|
|
2
|
-
import { IGivens, BaseCheck, BaseSuite, BaseGiven, BaseWhen, BaseThen } from "./abstractBase";
|
|
3
|
-
import { IBaseTest } from "../Types";
|
|
4
|
-
export declare type IFinalResults = {
|
|
5
|
-
features: string[];
|
|
6
|
-
failed: number;
|
|
7
|
-
};
|
|
8
|
-
export declare type IRunTime = `node` | `web`;
|
|
9
|
-
export declare type ITestTypes = [string, IRunTime, {
|
|
10
|
-
ports: number;
|
|
11
|
-
}, ITestTypes[]];
|
|
12
|
-
export declare type IJsonConfig = {
|
|
13
|
-
outdir: string;
|
|
14
|
-
tests: ITestTypes[];
|
|
15
|
-
botEmail: string;
|
|
16
|
-
};
|
|
17
|
-
export declare type IPlugin = (register: (entrypoint: any, sources: any) => any, entrypoints: any) => Plugin;
|
|
18
|
-
export declare type IBaseConfig = {
|
|
19
|
-
src: string;
|
|
20
|
-
clearScreen: boolean;
|
|
21
|
-
debugger: boolean;
|
|
22
|
-
devMode: boolean;
|
|
23
|
-
externals: string[];
|
|
24
|
-
minify: boolean;
|
|
25
|
-
outbase: string;
|
|
26
|
-
outdir: string;
|
|
27
|
-
ports: string[];
|
|
28
|
-
tests: ITestTypes[];
|
|
29
|
-
nodePlugins: IPlugin[];
|
|
30
|
-
webPlugins: IPlugin[];
|
|
31
|
-
featureIngestor: (s: string) => Promise<string>;
|
|
32
|
-
};
|
|
33
|
-
export declare type IBuiltConfig = {
|
|
34
|
-
buildDir: string;
|
|
35
|
-
} & IBaseConfig;
|
|
36
|
-
export declare type ISuiteKlasser<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>>> = (name: string, index: number, givens: IGivens<ITestShape>, checks: BaseCheck<ITestShape>[]) => BaseSuite<ITestShape>;
|
|
37
|
-
export declare type IGivenKlasser<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>>> = (name: any, features: any, whens: any, thens: any, givenCB: any) => BaseGiven<ITestShape>;
|
|
38
|
-
export declare type IWhenKlasser<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>>> = (s: any, o: any) => BaseWhen<ITestShape>;
|
|
39
|
-
export declare type IThenKlasser<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>>> = (s: any, o: any) => BaseThen<ITestShape>;
|
|
40
|
-
export declare type ICheckKlasser<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>>> = (n: any, f: any, cb: any, w: any, t: any) => BaseCheck<ITestShape>;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
botEmail: string;
|
|
3
|
-
taskman: string;
|
|
4
|
-
outdir: string;
|
|
5
|
-
tests: (string | never[] | {
|
|
6
|
-
ports: number;
|
|
7
|
-
})[][];
|
|
8
|
-
debugger: boolean;
|
|
9
|
-
clearScreen: boolean;
|
|
10
|
-
devMode: boolean;
|
|
11
|
-
minify: boolean;
|
|
12
|
-
outbase: string;
|
|
13
|
-
ports: never[];
|
|
14
|
-
externals: never[];
|
|
15
|
-
};
|
|
16
|
-
export default _default;
|