testeranto 0.81.3 → 0.84.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/dist/common/src/Node.js +4 -2
- package/dist/common/src/PM/main.js +188 -61
- package/dist/common/src/PM/node.js +32 -7
- package/dist/common/src/PM/web.js +28 -54
- package/dist/common/src/Project.js +0 -3
- package/dist/common/src/Puppeteer.js +9 -51
- package/dist/common/src/SubPackages/react-dom/jsx/web.js +11 -11
- package/dist/common/src/Web.js +7 -1
- package/dist/common/src/esbuildConfigs/featuresPlugin.js +39 -0
- package/dist/common/src/esbuildConfigs/inputFilesPlugin.js +62 -64
- package/dist/common/src/esbuildConfigs/node.js +10 -3
- package/dist/common/src/esbuildConfigs/web.js +6 -2
- package/dist/common/src/lib/abstractBase.js +348 -337
- package/dist/common/src/lib/basebuilder.js +9 -4
- package/dist/common/src/lib/core.js +1 -1
- package/dist/common/tsconfig.common.tsbuildinfo +1 -1
- package/dist/module/src/Node.js +3 -3
- package/dist/module/src/PM/main.js +188 -61
- package/dist/module/src/PM/node.js +32 -7
- package/dist/module/src/PM/web.js +28 -51
- package/dist/module/src/Project.js +0 -3
- package/dist/module/src/Puppeteer.js +9 -51
- package/dist/module/src/SubPackages/react-dom/jsx/web.js +10 -10
- package/dist/module/src/Web.js +6 -2
- package/dist/module/src/esbuildConfigs/featuresPlugin.js +34 -0
- package/dist/module/src/esbuildConfigs/inputFilesPlugin.js +62 -64
- package/dist/module/src/esbuildConfigs/node.js +10 -3
- package/dist/module/src/esbuildConfigs/web.js +6 -2
- package/dist/module/src/lib/abstractBase.js +348 -337
- package/dist/module/src/lib/basebuilder.js +9 -4
- package/dist/module/src/lib/core.js +1 -1
- package/dist/module/tsconfig.module.tsbuildinfo +1 -1
- package/dist/prebuild/Puppeteer.mjs +82033 -0
- package/dist/types/src/Node.d.ts +5 -1
- package/dist/types/src/PM/index.d.ts +10 -4
- package/dist/types/src/PM/main.d.ts +21 -9
- package/dist/types/src/PM/node.d.ts +11 -3
- package/dist/types/src/PM/web.d.ts +11 -2
- package/dist/types/src/SubPackages/react-dom/jsx/index.d.ts +1 -0
- package/dist/types/src/SubPackages/react-test-renderer/jsx/index.d.ts +1 -0
- package/dist/types/src/SubPackages/react-test-renderer/jsx-promised/index.d.ts +1 -0
- package/dist/types/src/Types.d.ts +2 -2
- package/dist/types/src/Web.d.ts +5 -1
- package/dist/types/src/esbuildConfigs/featuresPlugin.d.ts +5 -0
- package/dist/types/src/esbuildConfigs/inputFilesPlugin.d.ts +4 -2
- package/dist/types/src/lib/abstractBase.d.ts +5 -4
- package/dist/types/src/lib/core.d.ts +1 -1
- package/dist/types/src/lib/index.d.ts +1 -0
- package/dist/types/src/lib/types.d.ts +7 -5
- package/dist/types/tsconfig.types.tsbuildinfo +1 -1
- package/package.json +18 -45
- package/pupBuild.js +18 -0
- package/src/Node.ts +3 -5
- package/src/PM/index.ts +12 -3
- package/src/PM/main.ts +306 -140
- package/src/PM/node.ts +40 -7
- package/src/PM/web.ts +108 -58
- package/src/Project.ts +0 -8
- package/src/Puppeteer.ts +11 -57
- package/src/SubPackages/react-dom/jsx/web.ts +15 -10
- package/src/Types.ts +5 -2
- package/src/Web.ts +6 -2
- package/src/esbuildConfigs/featuresPlugin.ts +43 -0
- package/src/esbuildConfigs/inputFilesPlugin.ts +97 -90
- package/src/esbuildConfigs/node.ts +18 -3
- package/src/esbuildConfigs/web.ts +14 -2
- package/src/lib/abstractBase.ts +388 -366
- package/src/lib/basebuilder.ts +9 -9
- package/src/lib/core.ts +4 -2
- package/src/lib/index.ts +1 -0
- package/src/lib/types.ts +14 -6
package/dist/types/src/Node.d.ts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import Testeranto from "./lib/core.js";
|
|
2
2
|
import { ITTestResourceRequest } from "./lib/index.js";
|
|
3
3
|
import type { IBaseTest, ITestImplementation, ITestSpecification } from "./Types.js";
|
|
4
|
-
import { INodeTestInterface } from "./lib/types.js";
|
|
4
|
+
import { ITestInterface, INodeTestInterface } 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<string[]>;
|
|
8
|
+
}
|
|
5
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: ITestImplementation<ITestShape, object>, testInterface: Partial<INodeTestInterface<ITestShape>>, testResourceRequirement?: ITTestResourceRequest) => Promise<Testeranto<ITestShape>>;
|
|
6
10
|
export default _default;
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
import { Browser, Page } from "puppeteer-core/lib/esm/puppeteer/puppeteer-core-browser";
|
|
2
1
|
import { ITLog, ITTestResourceConfiguration } from "../lib";
|
|
3
2
|
export declare abstract class PM {
|
|
4
3
|
server: any;
|
|
5
|
-
browser: Browser;
|
|
6
4
|
testResourceConfiguration: ITTestResourceConfiguration;
|
|
7
|
-
abstract startPuppeteer(options: any, destfolder: string): Promise<Browser>;
|
|
8
5
|
abstract testArtiFactoryfileWriter(tLog: ITLog, callback: (Promise: any) => void): any;
|
|
9
6
|
abstract createWriteStream(filepath: string): any;
|
|
10
7
|
abstract writeFileSync(fp: string, contents: string): any;
|
|
@@ -16,5 +13,14 @@ export declare abstract class PM {
|
|
|
16
13
|
abstract end(accessObject: {
|
|
17
14
|
uid: number;
|
|
18
15
|
}): boolean;
|
|
19
|
-
abstract customScreenShot(opts: object
|
|
16
|
+
abstract customScreenShot(opts: object): any;
|
|
17
|
+
abstract screencast(opts: object): any;
|
|
18
|
+
abstract page(): string | undefined;
|
|
19
|
+
abstract click(selector: string): any;
|
|
20
|
+
abstract focusOn(selector: string): any;
|
|
21
|
+
abstract typeInto(value: string): any;
|
|
22
|
+
abstract getValue(value: string): any;
|
|
23
|
+
abstract getAttribute(selector: string, attribute: string): any;
|
|
24
|
+
abstract isDisabled(selector: string): boolean;
|
|
25
|
+
abstract $(selector: string): any;
|
|
20
26
|
}
|
|
@@ -2,27 +2,22 @@
|
|
|
2
2
|
/// <reference types="node" />
|
|
3
3
|
/// <reference types="node" />
|
|
4
4
|
import fs from "fs";
|
|
5
|
+
import { Browser } from "puppeteer-core";
|
|
5
6
|
import { PassThrough } from "stream";
|
|
6
7
|
import { IBuiltConfig, ITestTypes } from "../lib/types";
|
|
7
8
|
import { PM } from "./index.js";
|
|
8
9
|
import { ITLog } from "../lib/index.js";
|
|
9
10
|
export declare class PM_Main extends PM {
|
|
11
|
+
browser: Browser;
|
|
10
12
|
shutdownMode: boolean;
|
|
11
13
|
configs: IBuiltConfig;
|
|
12
14
|
ports: Record<number, boolean>;
|
|
13
15
|
queue: any[];
|
|
14
16
|
registry: Record<string, boolean>;
|
|
15
17
|
constructor(configs: IBuiltConfig);
|
|
16
|
-
|
|
18
|
+
$(selector: string): boolean;
|
|
19
|
+
screencast(opts: object): void;
|
|
17
20
|
customScreenShot(opts: object): void;
|
|
18
|
-
startPuppeteer(options: any, destfolder: string): Promise<any>;
|
|
19
|
-
checkForShutdown: () => void;
|
|
20
|
-
register: (src: string) => void;
|
|
21
|
-
deregister: (src: string) => void;
|
|
22
|
-
launchNode: (src: string, dest: string) => Promise<void>;
|
|
23
|
-
launchWebSideCar: (src: string, dest: string, testConfig: ITestTypes) => Promise<unknown>;
|
|
24
|
-
launchNodeSideCar: (src: string, dest: string, testConfig: ITestTypes) => Promise<void>;
|
|
25
|
-
launchWeb: (t: string, dest: string, sidecars: ITestTypes[]) => void;
|
|
26
21
|
end(accessObject: {
|
|
27
22
|
uid: number;
|
|
28
23
|
}): boolean;
|
|
@@ -34,4 +29,21 @@ export declare class PM_Main extends PM {
|
|
|
34
29
|
write(accessObject: {
|
|
35
30
|
uid: number;
|
|
36
31
|
}, contents: string): boolean;
|
|
32
|
+
page(): string | undefined;
|
|
33
|
+
click(selector: string): string | undefined;
|
|
34
|
+
focusOn(selector: string): void;
|
|
35
|
+
typeInto(value: string): void;
|
|
36
|
+
getValue(value: string): void;
|
|
37
|
+
getAttribute(selector: string, attribute: string): void;
|
|
38
|
+
isDisabled(selector: string): boolean;
|
|
39
|
+
startPuppeteer(options: any, destfolder: string): Promise<any>;
|
|
40
|
+
shutDown(): void;
|
|
41
|
+
checkForShutdown: () => void;
|
|
42
|
+
register: (src: string) => void;
|
|
43
|
+
deregister: (src: string) => void;
|
|
44
|
+
launchNode: (src: string, dest: string) => Promise<void>;
|
|
45
|
+
launchWebSideCar: (src: string, dest: string, testConfig: ITestTypes) => Promise<unknown>;
|
|
46
|
+
launchNodeSideCar: (src: string, dest: string, testConfig: ITestTypes) => Promise<void>;
|
|
47
|
+
launchWeb: (t: string, dest: string, sidecars: ITestTypes[]) => void;
|
|
48
|
+
receiveFeatures: (features: string[], destFolder: string) => void;
|
|
37
49
|
}
|
|
@@ -3,13 +3,21 @@
|
|
|
3
3
|
import { PassThrough } from "stream";
|
|
4
4
|
import { ITLog, ITTestResourceConfiguration } from "../lib";
|
|
5
5
|
import { PM } from "./index.js";
|
|
6
|
-
import { Page } from "puppeteer-core/lib/esm/puppeteer";
|
|
7
6
|
declare type PuppetMasterServer = Record<string, Promise<any>>;
|
|
8
7
|
export declare class PM_Node extends PM {
|
|
9
8
|
server: PuppetMasterServer;
|
|
10
9
|
testResourceConfiguration: ITTestResourceConfiguration;
|
|
11
10
|
constructor(t: ITTestResourceConfiguration);
|
|
12
|
-
|
|
11
|
+
$(selector: string): boolean;
|
|
12
|
+
screencast(opts: object): void;
|
|
13
|
+
isDisabled(selector: string): boolean;
|
|
14
|
+
getAttribute(selector: string, attribute: string): void;
|
|
15
|
+
getValue(selector: string): void;
|
|
16
|
+
focusOn(selector: string): void;
|
|
17
|
+
typeInto(value: string): void;
|
|
18
|
+
page(): any;
|
|
19
|
+
click(selector: string): string | undefined;
|
|
20
|
+
customScreenShot(opts: object): any;
|
|
13
21
|
existsSync(destFolder: string): boolean;
|
|
14
22
|
mkdirSync(): any;
|
|
15
23
|
write(writeObject: {
|
|
@@ -22,6 +30,6 @@ export declare class PM_Node extends PM {
|
|
|
22
30
|
}): any;
|
|
23
31
|
customclose(): void;
|
|
24
32
|
testArtiFactoryfileWriter(tLog: ITLog, callback: (Promise: any) => void): (fPath: any, value: string | Buffer | PassThrough) => void;
|
|
25
|
-
startPuppeteer(options?: any):
|
|
33
|
+
startPuppeteer(options?: any): any;
|
|
26
34
|
}
|
|
27
35
|
export {};
|
|
@@ -3,11 +3,21 @@
|
|
|
3
3
|
import { PassThrough } from "stream";
|
|
4
4
|
import { ITLog, ITTestResourceConfiguration } from "../lib";
|
|
5
5
|
import { PM } from "./index.js";
|
|
6
|
+
import { ScreenshotOptions } from "puppeteer-core";
|
|
6
7
|
declare type PuppetMasterServer = Record<string, Promise<any>>;
|
|
7
8
|
export declare class PM_Web extends PM {
|
|
8
9
|
server: PuppetMasterServer;
|
|
9
10
|
constructor(t: ITTestResourceConfiguration);
|
|
10
|
-
|
|
11
|
+
$(selector: string): boolean;
|
|
12
|
+
screencast(opts: object): void;
|
|
13
|
+
isDisabled(selector: string): boolean;
|
|
14
|
+
getAttribute(selector: string, attribute: string): any;
|
|
15
|
+
getValue(selector: string): any;
|
|
16
|
+
focusOn(selector: string): any;
|
|
17
|
+
typeInto(value: string): any;
|
|
18
|
+
page(): string | undefined;
|
|
19
|
+
click(selector: string): any;
|
|
20
|
+
customScreenShot(opts: ScreenshotOptions): any;
|
|
11
21
|
existsSync(destFolder: string): boolean;
|
|
12
22
|
mkdirSync(): any;
|
|
13
23
|
write(writeObject: {
|
|
@@ -20,6 +30,5 @@ export declare class PM_Web extends PM {
|
|
|
20
30
|
}): any;
|
|
21
31
|
customclose(): void;
|
|
22
32
|
testArtiFactoryfileWriter(tLog: ITLog, callback: (Promise: any) => void): (fPath: any, value: string | Buffer | PassThrough) => void;
|
|
23
|
-
startPuppeteer(options: any, destFolder: string): Promise<any>;
|
|
24
33
|
}
|
|
25
34
|
export {};
|
|
@@ -24,10 +24,10 @@ export declare type ITestImplementation<ITestShape extends IBaseTest<unknown, un
|
|
|
24
24
|
[K in keyof ITestShape["givens"]]: (...Ig: ITestShape["givens"][K]) => ITestShape["given"];
|
|
25
25
|
};
|
|
26
26
|
whens: {
|
|
27
|
-
[K in keyof ITestShape["whens"]]: (...Iw: ITestShape["whens"][K]) => (zel: ITestShape["iselection"], utils: PM) => ITestShape["when"]
|
|
27
|
+
[K in keyof ITestShape["whens"]]: (...Iw: ITestShape["whens"][K]) => (zel: ITestShape["iselection"], utils: PM) => Promise<ITestShape["when"]>;
|
|
28
28
|
};
|
|
29
29
|
thens: {
|
|
30
|
-
[K in keyof ITestShape["thens"]]: (...It: ITestShape["thens"][K]) => (ssel: ITestShape["iselection"]) => ITestShape["then"];
|
|
30
|
+
[K in keyof ITestShape["thens"]]: (...It: ITestShape["thens"][K]) => (ssel: ITestShape["iselection"], utils: PM) => ITestShape["then"];
|
|
31
31
|
};
|
|
32
32
|
checks: {
|
|
33
33
|
[K in keyof ITestShape["checks"]]: (...Ic: ITestShape["checks"][K]) => ITestShape["given"];
|
package/dist/types/src/Web.d.ts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import type { IBaseTest, ITestImplementation, ITestSpecification } from "./Types";
|
|
2
2
|
import Testeranto from "./lib/core.js";
|
|
3
3
|
import { ITTestResourceRequest } from "./lib/index.js";
|
|
4
|
-
import { IWebTestInterface } from "./lib/types";
|
|
4
|
+
import { ITestInterface, IWebTestInterface } 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<string[]>;
|
|
8
|
+
}
|
|
5
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: ITestImplementation<ITestShape, object>, testInterface: Partial<IWebTestInterface<ITestShape>>, testResourceRequirement?: ITTestResourceRequest) => Promise<Testeranto<ITestShape>>;
|
|
6
10
|
export default _default;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import type { Plugin } from "esbuild";
|
|
2
|
+
declare const register: (entrypoint: string, sources: string[]) => void;
|
|
1
3
|
declare const _default: (platform: "web" | "node", entryPoints: Set<string> | string[]) => {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
+
register: (entrypoint: string, sources: string[]) => void;
|
|
5
|
+
inputFilesPluginFactory: Plugin;
|
|
4
6
|
};
|
|
5
7
|
export default _default;
|
|
@@ -11,6 +11,7 @@ export declare abstract class BaseSuite<ITestShape extends IBaseTest<unknown, un
|
|
|
11
11
|
testResourceConfiguration: ITTestResourceConfiguration;
|
|
12
12
|
index: number;
|
|
13
13
|
constructor(name: string, index: number, givens?: IGivens<ITestShape>, checks?: BaseCheck<ITestShape>[]);
|
|
14
|
+
features(): string[];
|
|
14
15
|
toObj(): {
|
|
15
16
|
name: string;
|
|
16
17
|
givens: {
|
|
@@ -27,7 +28,7 @@ export declare abstract class BaseSuite<ITestShape extends IBaseTest<unknown, un
|
|
|
27
28
|
features: string[];
|
|
28
29
|
}[];
|
|
29
30
|
fails: BaseGiven<ITestShape>[];
|
|
30
|
-
features:
|
|
31
|
+
features: string[];
|
|
31
32
|
};
|
|
32
33
|
setup(s: ITestShape["iinput"], artifactory: ITestArtifactory, tr: ITTestResourceConfiguration, pm: PM): Promise<ITestShape["isubject"]>;
|
|
33
34
|
assertThat(t: ITestShape["then"]): unknown;
|
|
@@ -62,19 +63,19 @@ export declare abstract class BaseGiven<ITestShape extends IBaseTest<unknown, un
|
|
|
62
63
|
};
|
|
63
64
|
abstract givenThat(subject: ITestShape["isubject"], testResourceConfiguration: any, artifactory: ITestArtifactory, givenCB: ITestShape["given"], pm: PM): Promise<ITestShape["istore"]>;
|
|
64
65
|
afterEach(store: ITestShape["istore"], key: string, artifactory: ITestArtifactory, pm: PM): Promise<unknown>;
|
|
65
|
-
give(subject: ITestShape["isubject"], key: string, testResourceConfiguration:
|
|
66
|
+
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"]>;
|
|
66
67
|
}
|
|
67
68
|
export declare abstract class BaseWhen<ITestShape extends IBaseTest> {
|
|
68
69
|
name: string;
|
|
69
70
|
whenCB: (x: ITestShape["iselection"]) => ITestShape["then"];
|
|
70
71
|
error: boolean;
|
|
71
72
|
constructor(name: string, whenCB: (xyz: ITestShape["iselection"]) => ITestShape["then"]);
|
|
72
|
-
abstract andWhen(store: ITestShape["istore"], whenCB: (x: ITestShape["iselection"]) => ITestShape["then"], testResource: any, pm: PM): any
|
|
73
|
+
abstract andWhen(store: ITestShape["istore"], whenCB: (x: ITestShape["iselection"]) => ITestShape["then"], testResource: any, pm: PM): Promise<any>;
|
|
73
74
|
toObj(): {
|
|
74
75
|
name: string;
|
|
75
76
|
error: boolean;
|
|
76
77
|
};
|
|
77
|
-
test(store: ITestShape["istore"], testResourceConfiguration: any, tLog: ITLog, pm: PM,
|
|
78
|
+
test(store: ITestShape["istore"], testResourceConfiguration: any, tLog: ITLog, pm: PM, filepath: string): Promise<any>;
|
|
78
79
|
}
|
|
79
80
|
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>>> {
|
|
80
81
|
name: string;
|
|
@@ -4,5 +4,5 @@ import { ITTestResourceRequest } from "./index.js";
|
|
|
4
4
|
import { ClassBuilder } from "./classBuilder.js";
|
|
5
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
6
|
constructor(input: ITestShape["iinput"], testSpecification: ITestSpecification<ITestShape>, testImplementation: ITestImplementation<ITestShape>, testResourceRequirement: ITTestResourceRequest | undefined, testInterface: Partial<ITestInterface<ITestShape>>);
|
|
7
|
-
abstract receiveTestResourceConfig(partialTestResource: string):
|
|
7
|
+
abstract receiveTestResourceConfig(partialTestResource: string): Promise<string[]>;
|
|
8
8
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { IBaseTest } from "../Types";
|
|
2
|
+
import type { Plugin } from "esbuild";
|
|
2
3
|
import { IGivens, BaseCheck, BaseSuite, BaseGiven, BaseWhen, BaseThen } from "./abstractBase";
|
|
3
4
|
import { ITTestResourceConfiguration, ITestArtificer } from ".";
|
|
4
5
|
import { PM } from "../PM/index";
|
|
@@ -11,19 +12,20 @@ export declare type IJsonConfig = {
|
|
|
11
12
|
tests: ITestTypes[];
|
|
12
13
|
botEmail: string;
|
|
13
14
|
};
|
|
15
|
+
export declare type IPlugin = (register: (entrypoint: any, sources: any) => any, entrypoints: any) => Plugin;
|
|
14
16
|
export declare type IBaseConfig = {
|
|
15
17
|
clearScreen: boolean;
|
|
16
18
|
debugger: boolean;
|
|
17
19
|
devMode: boolean;
|
|
18
20
|
externals: string[];
|
|
19
21
|
minify: boolean;
|
|
20
|
-
nodePlugins: any[];
|
|
21
22
|
outbase: string;
|
|
22
23
|
outdir: string;
|
|
23
24
|
ports: string[];
|
|
24
25
|
tests: ITestTypes[];
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
nodePlugins: IPlugin[];
|
|
27
|
+
webPlugins: IPlugin[];
|
|
28
|
+
featureIngestor: (s: string) => Promise<string>;
|
|
27
29
|
};
|
|
28
30
|
export declare type IBuiltConfig = {
|
|
29
31
|
buildDir: string;
|
|
@@ -31,7 +33,7 @@ export declare type IBuiltConfig = {
|
|
|
31
33
|
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>>> = {
|
|
32
34
|
assertThis: (x: ITestShape["then"]) => void;
|
|
33
35
|
andWhen: (store: ITestShape["istore"], whenCB: ITestShape["when"], testResource: ITTestResourceConfiguration, utils: PM) => Promise<ITestShape["istore"]>;
|
|
34
|
-
butThen: (store: ITestShape["istore"], thenCB: any, testResource: ITTestResourceConfiguration) => Promise<ITestShape["iselection"]>;
|
|
36
|
+
butThen: (store: ITestShape["istore"], thenCB: any, testResource: ITTestResourceConfiguration, utils: PM) => Promise<ITestShape["iselection"]>;
|
|
35
37
|
afterAll: (store: ITestShape["istore"], artificer: ITestArtificer, utils: PM) => any;
|
|
36
38
|
afterEach: (store: ITestShape["istore"], key: string, artificer: ITestArtificer, utils: PM) => Promise<unknown>;
|
|
37
39
|
beforeAll: (input: ITestShape["iinput"], testResource: ITTestResourceConfiguration, artificer: ITestArtificer, utils: PM) => Promise<ITestShape["isubject"]>;
|
|
@@ -53,7 +55,7 @@ export declare type ITestInterface<ITestShape extends IBaseTest<unknown, unknown
|
|
|
53
55
|
afterAll: (store: ITestShape["istore"], artificer: ITestArtificer, pm: PM) => any;
|
|
54
56
|
afterEach: (store: ITestShape["istore"], key: string, artificer: ITestArtificer, pm: PM) => Promise<unknown>;
|
|
55
57
|
beforeAll: (input: ITestShape["iinput"], testResource: ITTestResourceConfiguration, artificer: ITestArtificer, pm: PM) => Promise<ITestShape["isubject"]>;
|
|
56
|
-
beforeEach: (subject: ITestShape["isubject"], initializer: (c?: any) => ITestShape["given"],
|
|
58
|
+
beforeEach: (subject: ITestShape["isubject"], initializer: (c?: any) => ITestShape["given"], testResource: ITTestResourceConfiguration, initialValues: any, pm: PM) => Promise<ITestShape["istore"]>;
|
|
57
59
|
};
|
|
58
60
|
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>;
|
|
59
61
|
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>;
|