testeranto 0.100.0 → 0.110.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/dist/common/{dist/module/src/Init.js → Init.js} +28 -0
- package/dist/common/{src/PM → PM}/main.js +138 -95
- package/dist/common/ReportServer.js +22 -0
- package/dist/common/{src/SubPackages → SubPackages}/react/jsx/index.js +0 -12
- package/dist/common/{src/SubPackages → SubPackages}/react-dom/component/node.js +3 -16
- package/dist/common/{src/SubPackages → SubPackages}/react-dom/component/web.js +3 -3
- package/dist/common/{src/SubPackages → SubPackages}/react-dom/jsx/node.js +1 -1
- package/dist/common/{src/SubPackages → SubPackages}/react-dom/jsx/web.js +41 -30
- package/dist/common/{src/SubPackages → SubPackages}/react-test-renderer/MemoExoticComponent/node.js +17 -7
- package/dist/common/{src/SubPackages → SubPackages}/react-test-renderer/component/interface.js +17 -7
- package/dist/common/{src/SubPackages → SubPackages}/react-test-renderer/fc/node.js +17 -7
- package/dist/common/{src/SubPackages → SubPackages}/react-test-renderer/fc/web.js +17 -7
- package/dist/common/{src/SubPackages → SubPackages}/react-test-renderer/jsx/index.js +18 -14
- package/dist/common/{src/SubPackages → SubPackages}/react-test-renderer/jsx-promised/index.js +17 -7
- package/dist/common/build.js +222 -0
- package/dist/common/{src/defaultConfig.js → defaultConfig.js} +1 -0
- package/dist/common/esbuildConfigs/eslint-formatter-testeranto.js +6 -0
- package/dist/common/esbuildConfigs/inputFilesPlugin.js +27 -0
- package/dist/common/{src/esbuildConfigs → esbuildConfigs}/node.js +2 -10
- package/dist/common/{src/esbuildConfigs → esbuildConfigs}/web.js +2 -13
- package/dist/common/{src/init-docs.js → init-docs.js} +20 -10
- package/dist/common/{src/lib → lib}/abstractBase.js +6 -1
- package/dist/common/{src/lib → lib}/basebuilder.js +23 -10
- package/dist/common/{src/lib → lib}/classBuilder.js +1 -3
- package/dist/common/{src/lib → lib}/core.js +26 -10
- package/dist/common/{src/lib → lib}/index.js +0 -1
- package/dist/common/{src/lib → lib}/types.js +0 -1
- package/dist/common/run.js +297 -0
- package/dist/common/tsconfig.common.tsbuildinfo +1 -1
- package/dist/common/utils.js +43 -0
- package/dist/module/Footer.js +4 -0
- package/dist/module/Init.js +63 -0
- package/dist/module/{src/PM → PM}/main.js +119 -86
- package/dist/module/ReportClient.js +97 -0
- package/dist/module/ReportServer.js +17 -0
- package/dist/module/SubPackages/react/jsx/index.js +15 -0
- package/dist/module/{src/SubPackages → SubPackages}/react-dom/component/node.js +3 -16
- package/dist/module/{src/SubPackages → SubPackages}/react-dom/component/web.js +3 -3
- package/dist/module/{src/SubPackages → SubPackages}/react-dom/jsx/node.js +3 -3
- package/dist/module/{src/SubPackages → SubPackages}/react-dom/jsx/web.js +24 -23
- package/dist/module/{src/SubPackages → SubPackages}/react-test-renderer/jsx/index.js +1 -7
- package/dist/module/TestReport.js +91 -0
- package/dist/module/build.js +184 -0
- package/dist/module/{src/defaultConfig.js → defaultConfig.js} +1 -0
- package/dist/module/esbuildConfigs/eslint-formatter-testeranto.js +3 -0
- package/dist/module/esbuildConfigs/inputFilesPlugin.js +22 -0
- package/dist/module/{src/esbuildConfigs → esbuildConfigs}/node.js +2 -10
- package/dist/module/{src/esbuildConfigs → esbuildConfigs}/web.js +2 -13
- package/dist/module/{src/init-docs.js → init-docs.js} +1 -1
- package/dist/module/{src/lib → lib}/abstractBase.js +6 -1
- package/dist/module/{src/lib → lib}/basebuilder.js +23 -10
- package/dist/module/{src/lib → lib}/classBuilder.js +1 -3
- package/dist/module/{src/lib → lib}/core.js +26 -10
- package/dist/module/{src/lib → lib}/index.js +0 -1
- package/dist/module/run.js +259 -0
- package/dist/module/tsconfig.module.tsbuildinfo +1 -1
- package/dist/module/utils.js +29 -0
- package/dist/prebuild/ReportClient.css +11367 -0
- package/dist/prebuild/ReportClient.js +23641 -0
- package/dist/prebuild/ReportServer.mjs +16 -0
- package/dist/prebuild/TestReport.css +11367 -0
- package/dist/prebuild/TestReport.js +27484 -0
- package/dist/prebuild/build.mjs +376 -0
- package/dist/prebuild/esbuildConfigs/eslint-formatter-testeranto.mjs +9 -0
- package/dist/prebuild/init-docs.mjs +64 -8
- package/dist/prebuild/{cli2.mjs → run.mjs} +353 -81
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/dist/types/Node.d.ts +12 -0
- package/dist/types/{src/PM → PM}/index.d.ts +1 -1
- package/dist/types/{src/PM → PM}/main.d.ts +12 -9
- package/dist/types/{src/PM → PM}/node.d.ts +2 -4
- package/dist/types/{src/PM → PM}/web.d.ts +2 -4
- package/dist/types/SubPackages/react/component/node.d.ts +7 -0
- package/dist/types/SubPackages/react/component/web.d.ts +7 -0
- package/dist/types/SubPackages/react/jsx/index.d.ts +12 -0
- package/dist/types/SubPackages/react/jsx/node.d.ts +4 -0
- package/dist/types/SubPackages/react/jsx/web.d.ts +4 -0
- package/dist/types/SubPackages/react-dom/component/node.d.ts +11 -0
- package/dist/types/SubPackages/react-dom/component/web.d.ts +20 -0
- package/dist/types/SubPackages/react-dom/jsx/index.d.ts +6 -0
- package/dist/types/SubPackages/react-dom/jsx/node.d.ts +7 -0
- package/dist/types/SubPackages/react-dom/jsx/web.d.ts +5 -0
- package/dist/types/SubPackages/react-test-renderer/MemoExoticComponent/node.d.ts +6 -0
- package/dist/types/SubPackages/react-test-renderer/component/index.d.ts +13 -0
- package/dist/types/SubPackages/react-test-renderer/component/node.d.ts +4 -0
- package/dist/types/SubPackages/react-test-renderer/component/web.d.ts +4 -0
- package/dist/types/SubPackages/react-test-renderer/fc/node.d.ts +8 -0
- package/dist/types/SubPackages/react-test-renderer/fc/web.d.ts +9 -0
- package/dist/types/SubPackages/react-test-renderer/jsx/index.d.ts +16 -0
- package/dist/types/SubPackages/react-test-renderer/jsx/node.d.ts +9 -0
- package/dist/types/SubPackages/react-test-renderer/jsx/web.d.ts +9 -0
- package/dist/types/SubPackages/react-test-renderer/jsx-promised/index.d.ts +15 -0
- package/dist/types/SubPackages/react-test-renderer/jsx-promised/node.d.ts +5 -0
- package/dist/types/SubPackages/react-test-renderer/jsx-promised/web.d.ts +5 -0
- package/dist/types/Types.d.ts +61 -0
- package/dist/types/Web.d.ts +9 -0
- package/dist/types/defaultConfig.d.ts +3 -0
- package/dist/types/esbuildConfigs/eslint-formatter-testeranto.d.ts +2 -0
- package/dist/types/{src/esbuildConfigs → esbuildConfigs}/index.d.ts +1 -1
- package/dist/types/{src/esbuildConfigs → esbuildConfigs}/inputFilesPlugin.d.ts +0 -1
- package/dist/types/{src/esbuildConfigs → esbuildConfigs}/node.d.ts +1 -1
- package/dist/types/{src/esbuildConfigs → esbuildConfigs}/web.d.ts +1 -1
- package/dist/types/init-docs.d.ts +1 -0
- package/dist/types/lib/abstractBase.d.ts +110 -0
- package/dist/types/lib/basebuilder.d.ts +27 -0
- package/dist/types/lib/classBuilder.d.ts +7 -0
- package/dist/types/lib/core.d.ts +7 -0
- package/dist/types/lib/index.d.ts +83 -0
- package/dist/types/lib/types.d.ts +14 -0
- package/dist/types/run.d.ts +1 -0
- package/dist/types/tsconfig.types.tsbuildinfo +1 -1
- package/dist/types/utils.d.ts +9 -0
- 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 +143 -101
- package/src/PM/node.ts +2 -2
- package/src/PM/web.ts +1 -1
- package/src/ReportClient.tsx +155 -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 +398 -0
- package/src/style.css +8 -0
- package/src/utils.ts +74 -2
- package/tsc.log +106 -0
- package/Bundle.Dockerfile +0 -52
- package/bin/init-docs.js +0 -24
- package/dist/common/src/Init.js +0 -40
- package/dist/common/src/SubPackages/puppeteer.js +0 -21
- package/dist/common/src/cli.js +0 -439
- package/dist/common/src/cli2.js +0 -144
- package/dist/common/src/esbuildConfigs/inputFilesPlugin.js +0 -99
- package/dist/common/src/utils.js +0 -16
- package/dist/common/testeranto.js +0 -15
- package/dist/module/src/Init.js +0 -35
- package/dist/module/src/SubPackages/puppeteer.js +0 -16
- package/dist/module/src/SubPackages/react/jsx/index.js +0 -27
- package/dist/module/src/cli.js +0 -411
- package/dist/module/src/cli2.js +0 -116
- package/dist/module/src/esbuildConfigs/inputFilesPlugin.js +0 -94
- package/dist/module/src/lib/types.js +0 -2
- package/dist/module/src/utils.js +0 -9
- package/dist/module/testeranto.js +0 -13
- package/dist/prebuild/cli.mjs +0 -1491
- package/dist/types/dist/module/src/Init.d.ts +0 -2
- package/dist/types/src/Node.d.ts +0 -13
- 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/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/defaultConfig.d.ts +0 -3
- 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/utils.d.ts +0 -2
- package/dist/types/testeranto.d.ts +0 -16
- 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
- package/dist/common/{src/Node.js → Node.js} +0 -0
- package/dist/common/{src/PM → PM}/index.js +0 -0
- package/dist/common/{src/PM → PM}/node.js +0 -0
- package/dist/common/{src/PM → PM}/web.js +0 -0
- package/dist/common/{src/SubPackages → SubPackages}/react/component/node.js +0 -0
- package/dist/common/{src/SubPackages → SubPackages}/react/component/web.js +0 -0
- package/dist/common/{src/SubPackages → SubPackages}/react/jsx/node.js +0 -0
- package/dist/common/{src/SubPackages → SubPackages}/react/jsx/web.js +0 -0
- package/dist/common/{src/SubPackages → SubPackages}/react-dom/jsx/index.js +0 -0
- package/dist/common/{src/SubPackages → SubPackages}/react-test-renderer/component/index.js +0 -0
- package/dist/common/{src/SubPackages → SubPackages}/react-test-renderer/component/node.js +0 -0
- package/dist/common/{src/SubPackages → SubPackages}/react-test-renderer/component/web.js +0 -0
- package/dist/common/{src/SubPackages → SubPackages}/react-test-renderer/jsx/node.js +0 -0
- package/dist/common/{src/SubPackages → SubPackages}/react-test-renderer/jsx/web.js +0 -0
- package/dist/common/{src/SubPackages → SubPackages}/react-test-renderer/jsx-promised/node.js +1 -1
- package/dist/common/{src/SubPackages → SubPackages}/react-test-renderer/jsx-promised/web.js +0 -0
- package/dist/common/{src/Types.js → Types.js} +0 -0
- package/dist/common/{src/Web.js → Web.js} +0 -0
- package/dist/common/{src/esbuildConfigs → esbuildConfigs}/featuresPlugin.js +0 -0
- package/dist/common/{src/esbuildConfigs → esbuildConfigs}/index.js +0 -0
- package/dist/common/{src/puppeteerConfiger.js → puppeteerConfiger.js} +0 -0
- package/dist/common/{src/web.html.js → web.html.js} +0 -0
- package/dist/module/{src/Node.js → Node.js} +0 -0
- package/dist/module/{src/PM → PM}/index.js +0 -0
- package/dist/module/{src/PM → PM}/node.js +0 -0
- package/dist/module/{src/PM → PM}/web.js +0 -0
- package/dist/module/{src/SubPackages → SubPackages}/react/component/node.js +0 -0
- package/dist/module/{src/SubPackages → SubPackages}/react/component/web.js +0 -0
- package/dist/module/{src/SubPackages → SubPackages}/react/jsx/node.js +0 -0
- package/dist/module/{src/SubPackages → SubPackages}/react/jsx/web.js +0 -0
- package/dist/module/{src/SubPackages → SubPackages}/react-dom/jsx/index.js +0 -0
- package/dist/module/{src/SubPackages → SubPackages}/react-test-renderer/MemoExoticComponent/node.js +0 -0
- package/dist/module/{src/SubPackages → SubPackages}/react-test-renderer/component/index.js +0 -0
- package/dist/module/{src/SubPackages → SubPackages}/react-test-renderer/component/interface.js +0 -0
- package/dist/module/{src/SubPackages → SubPackages}/react-test-renderer/component/node.js +0 -0
- package/dist/module/{src/SubPackages → SubPackages}/react-test-renderer/component/web.js +0 -0
- package/dist/module/{src/SubPackages → SubPackages}/react-test-renderer/fc/node.js +0 -0
- package/dist/module/{src/SubPackages → SubPackages}/react-test-renderer/fc/web.js +0 -0
- package/dist/module/{src/SubPackages → SubPackages}/react-test-renderer/jsx/node.js +0 -0
- package/dist/module/{src/SubPackages → SubPackages}/react-test-renderer/jsx/web.js +0 -0
- package/dist/module/{src/SubPackages → SubPackages}/react-test-renderer/jsx-promised/index.js +0 -0
- package/dist/module/{src/SubPackages → SubPackages}/react-test-renderer/jsx-promised/node.js +1 -1
- /package/dist/module/{src/SubPackages → SubPackages}/react-test-renderer/jsx-promised/web.js +0 -0
- /package/dist/module/{src/Types.js → Types.js} +0 -0
- /package/dist/module/{src/Web.js → Web.js} +0 -0
- /package/dist/module/{src/esbuildConfigs → esbuildConfigs}/featuresPlugin.js +0 -0
- /package/dist/module/{src/esbuildConfigs → esbuildConfigs}/index.js +0 -0
- /package/dist/{types/src/cli.d.ts → module/lib/types.js} +0 -0
- /package/dist/module/{src/puppeteerConfiger.js → puppeteerConfiger.js} +0 -0
- /package/dist/module/{src/web.html.js → web.html.js} +0 -0
- /package/dist/types/{src/Init.d.ts → Init.d.ts} +0 -0
- /package/dist/types/{src/cli2.d.ts → ReportServer.d.ts} +0 -0
- /package/dist/types/{src/SubPackages → SubPackages}/react-test-renderer/component/interface.d.ts +0 -0
- /package/dist/types/{src/init-docs.d.ts → build.d.ts} +0 -0
- /package/dist/types/{src/esbuildConfigs → esbuildConfigs}/featuresPlugin.d.ts +0 -0
- /package/dist/types/{src/puppeteerConfiger.d.ts → puppeteerConfiger.d.ts} +0 -0
- /package/dist/types/{src/web.html.d.ts → web.html.d.ts} +0 -0
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,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,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;
|
|
@@ -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 {};
|