testeranto 0.94.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 -33
- package/dist/common/{src/Init.js → Init.js} +28 -0
- package/dist/common/{src/PM → PM}/main.js +272 -111
- package/dist/common/{src/PM → PM}/node.js +20 -5
- package/dist/common/{src/PM → PM}/web.js +19 -4
- 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/jsx/node.js +1 -6
- 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 +3 -14
- package/dist/common/{src/esbuildConfigs → esbuildConfigs}/web.js +3 -14
- package/dist/common/{src/init-docs.js → init-docs.js} +20 -10
- package/dist/common/{src/lib → lib}/abstractBase.js +20 -92
- 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/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 +253 -102
- package/dist/module/{src/PM → PM}/node.js +20 -5
- package/dist/module/{src/PM → PM}/web.js +19 -4
- 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/jsx/node.js +1 -6
- 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 +3 -14
- package/dist/module/{src/esbuildConfigs → esbuildConfigs}/web.js +3 -14
- package/dist/module/{src/init-docs.js → init-docs.js} +1 -1
- package/dist/module/{src/lib → lib}/abstractBase.js +20 -92
- 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/{run-tests.mjs → run.mjs} +501 -182
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/dist/types/Node.d.ts +12 -0
- package/dist/types/{src/PM → PM}/index.d.ts +11 -3
- package/dist/types/{src/PM → PM}/main.d.ts +24 -15
- package/dist/types/{src/PM → PM}/node.d.ts +11 -6
- package/dist/types/{src/PM → PM}/web.d.ts +11 -7
- 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/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 +50 -39
- package/src/Footer.tsx +4 -0
- package/src/Init.ts +48 -0
- package/src/Node.ts +23 -17
- package/src/PM/index.ts +13 -9
- package/src/PM/main.ts +337 -139
- package/src/PM/node.ts +43 -8
- package/src/PM/web.ts +34 -6
- 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 +23 -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 +22 -5
- 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 +131 -129
- 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 -114
- package/src/esbuildConfigs/node.ts +7 -19
- package/src/esbuildConfigs/web.ts +6 -21
- package/src/init-docs.ts +2 -1
- package/src/lib/abstractBase.ts +140 -195
- 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 +40 -231
- 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/dist/module/src/Init.js +0 -40
- package/dist/common/src/Aider.js +0 -143
- package/dist/common/src/Project.js +0 -227
- package/dist/common/src/Puppeteer.js +0 -111
- package/dist/common/src/SubPackages/puppeteer.js +0 -21
- package/dist/common/src/build-tests.js +0 -39
- package/dist/common/src/esbuildConfigs/features.js +0 -14
- package/dist/common/src/esbuildConfigs/inputFilesPlugin.js +0 -87
- package/dist/common/src/esbuildConfigs/report.js +0 -14
- package/dist/common/src/esbuildConfigs/tests.js +0 -13
- package/dist/common/src/run-tests.js +0 -39
- package/dist/common/src/utils.js +0 -16
- package/dist/common/testeranto.js +0 -15
- package/dist/module/src/Aider.js +0 -136
- package/dist/module/src/Init.js +0 -35
- package/dist/module/src/Project.js +0 -220
- package/dist/module/src/Puppeteer.js +0 -106
- package/dist/module/src/SubPackages/puppeteer.js +0 -16
- package/dist/module/src/SubPackages/react/jsx/index.js +0 -27
- package/dist/module/src/build-tests.js +0 -11
- package/dist/module/src/esbuildConfigs/features.js +0 -12
- package/dist/module/src/esbuildConfigs/inputFilesPlugin.js +0 -82
- package/dist/module/src/esbuildConfigs/report.js +0 -14
- package/dist/module/src/esbuildConfigs/tests.js +0 -11
- package/dist/module/src/run-tests.js +0 -11
- package/dist/module/src/utils.js +0 -9
- package/dist/module/testeranto.js +0 -13
- package/dist/prebuild/build-tests.mjs +0 -553
- package/dist/types/dist/module/src/Init.d.ts +0 -2
- package/dist/types/src/Aider.d.ts +0 -1
- package/dist/types/src/Node.d.ts +0 -13
- package/dist/types/src/Project.d.ts +0 -12
- package/dist/types/src/Puppeteer.d.ts +0 -2
- 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 -8
- 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 -51
- package/dist/types/src/Web.d.ts +0 -10
- package/dist/types/src/defaultConfig.d.ts +0 -3
- package/dist/types/src/esbuildConfigs/features.d.ts +0 -4
- package/dist/types/src/esbuildConfigs/report.d.ts +0 -0
- package/dist/types/src/esbuildConfigs/tests.d.ts +0 -4
- 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 -68
- 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/Aider.ts +0 -168
- package/src/Project.ts +0 -292
- package/src/Puppeteer.ts +0 -143
- package/src/SubPackages/puppeteer.ts +0 -51
- package/src/build-tests.ts +0 -12
- package/src/esbuildConfigs/features.ts +0 -17
- package/src/esbuildConfigs/report.ts +0 -15
- package/src/esbuildConfigs/tests.ts +0 -14
- package/src/run-tests.ts +0 -12
- 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/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/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/lib → lib}/types.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/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/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/module/{src/lib → 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/build-tests.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/run-tests.d.ts → init-docs.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
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { ITestImplementation, ITestSpecification } from "../../../Types";
|
|
2
|
-
import type { IInput } from "./index";
|
|
3
|
-
export declare type ISubject = HTMLElement;
|
|
4
|
-
declare const _default: <ITestShape extends any>(testImplementations: ITestImplementation<ITestShape, object>, 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 { ITestImplementation, ITestSpecification } from "../../../Types";
|
|
3
|
-
declare type IInput = React.MemoExoticComponent<() => JSX.Element>;
|
|
4
|
-
declare const _default: <ITestShape extends any, PropShape>(testImplementations: ITestImplementation<ITestShape, object>, 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 { IImpl, ISpec, IInput } from "./index.js";
|
|
3
|
-
declare const _default: <ITestShape extends any, IProps, IState>(testImplementations: IImpl<ITestShape>, 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 { IImpl, ISpec, IInput } from "./index.js";
|
|
2
|
-
declare const _default: <ITestShape extends any, IProps, IState>(testImplementations: IImpl<ITestShape>, 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, ITestImplementation, 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: ITestImplementation<ITestShape, object>, 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, ITestImplementation, 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: ITestImplementation<ITestShape, object>, 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,8 +0,0 @@
|
|
|
1
|
-
import type { ITestImpl, ITestSpec } from "../jsx-promised";
|
|
2
|
-
import { IInput } from "./index.js";
|
|
3
|
-
declare const _default: <ITestShape extends any>(testImplementations: ITestImpl<ITestShape>, 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.js").default<ITestShape>>;
|
|
8
|
-
export default _default;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ITestImpl, ITestSpec } from "../jsx-promised";
|
|
2
|
-
import { IInput } from "./index.js";
|
|
3
|
-
declare const _default: <ITestShape extends any>(testImplementations: ITestImpl<ITestShape>, 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 { ITestImpl, ITestSpec } from "../../react/jsx";
|
|
3
|
-
declare const _default: <ITestShape extends any>(testImplementations: ITestImpl<ITestShape>, testSpecifications: ITestSpec<ITestShape>, testInput: IInput) => Promise<import("../../../lib/core").default<ITestShape>>;
|
|
4
|
-
export default _default;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { ITestImpl, ITestSpec } from "../../react/jsx";
|
|
2
|
-
import { IInput } from "./index";
|
|
3
|
-
declare const _default: <ITestShape extends any>(testImplementations: ITestImpl<ITestShape>, testSpecifications: ITestSpec<ITestShape>, testInput: IInput) => Promise<import("../../../lib/core").default<ITestShape>>;
|
|
4
|
-
export default _default;
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { ITTestResourceRequest, ITestCheckCallback } from "./lib/index.js";
|
|
2
|
-
import { IGivens, BaseCheck, BaseSuite, BaseWhen, BaseThen, BaseGiven } from "./lib/abstractBase.js";
|
|
3
|
-
import Testeranto from "./lib/core.js";
|
|
4
|
-
import { INodeTestInterface, ITestInterface, IWebTestInterface } from "./lib/types.js";
|
|
5
|
-
import { PM } from "./PM/index.js";
|
|
6
|
-
export declare type IPartialInterface<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<ITestInterface<I>>;
|
|
7
|
-
export declare type IPartialNodeInterface<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<INodeTestInterface<I>>;
|
|
8
|
-
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>>;
|
|
9
|
-
export declare type IEntry<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: IPartialInterface<ITestShape>, testResourceRequirement: ITTestResourceRequest) => Promise<Testeranto<ITestShape>>;
|
|
10
|
-
export declare type ITestSpecification<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>>> = (Suite: {
|
|
11
|
-
[K in keyof ITestShape["suites"]]: (name: string, givens: IGivens<ITestShape>, checks: BaseCheck<ITestShape>[]) => BaseSuite<ITestShape>;
|
|
12
|
-
}, Given: {
|
|
13
|
-
[K in keyof ITestShape["givens"]]: (features: string[], whens: BaseWhen<ITestShape>[], thens: BaseThen<ITestShape>[], ...xtrasB: ITestShape["givens"][K]) => BaseGiven<ITestShape>;
|
|
14
|
-
}, When: {
|
|
15
|
-
[K in keyof ITestShape["whens"]]: (...xtrasC: ITestShape["whens"][K]) => BaseWhen<ITestShape>;
|
|
16
|
-
}, Then: {
|
|
17
|
-
[K in keyof ITestShape["thens"]]: (...xtrasD: ITestShape["thens"][K]) => BaseThen<ITestShape>;
|
|
18
|
-
}, Check: ITestCheckCallback<ITestShape>) => any[];
|
|
19
|
-
export declare type ITestImplementation<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>>, IMod = object> = Modify<{
|
|
20
|
-
suites: {
|
|
21
|
-
[K in keyof ITestShape["suites"]]: string;
|
|
22
|
-
};
|
|
23
|
-
givens: {
|
|
24
|
-
[K in keyof ITestShape["givens"]]: (...Ig: ITestShape["givens"][K]) => ITestShape["given"];
|
|
25
|
-
};
|
|
26
|
-
whens: {
|
|
27
|
-
[K in keyof ITestShape["whens"]]: (...Iw: ITestShape["whens"][K]) => (zel: ITestShape["iselection"], utils: PM) => Promise<ITestShape["when"]>;
|
|
28
|
-
};
|
|
29
|
-
thens: {
|
|
30
|
-
[K in keyof ITestShape["thens"]]: (...It: ITestShape["thens"][K]) => (ssel: ITestShape["iselection"], utils: PM) => ITestShape["then"];
|
|
31
|
-
};
|
|
32
|
-
checks: {
|
|
33
|
-
[K in keyof ITestShape["checks"]]: (...Ic: ITestShape["checks"][K]) => ITestShape["given"];
|
|
34
|
-
};
|
|
35
|
-
}, IMod>;
|
|
36
|
-
declare type Modify<T, R> = Omit<T, keyof R> & R;
|
|
37
|
-
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>> = {
|
|
38
|
-
iinput: IInput;
|
|
39
|
-
isubject: ISubject;
|
|
40
|
-
istore: IStore;
|
|
41
|
-
iselection: ISelection;
|
|
42
|
-
given: IGiven;
|
|
43
|
-
when: IWhen;
|
|
44
|
-
then: IThen;
|
|
45
|
-
suites: ISuites;
|
|
46
|
-
givens: IGivens;
|
|
47
|
-
whens: IWhens;
|
|
48
|
-
thens: IThens;
|
|
49
|
-
checks: IChecks;
|
|
50
|
-
};
|
|
51
|
-
export {};
|
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, 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<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: ITestImplementation<ITestShape, object>, testInterface: Partial<IWebTestInterface<ITestShape>>, testResourceRequirement?: ITTestResourceRequest) => Promise<Testeranto<ITestShape>>;
|
|
10
|
-
export default _default;
|
|
File without changes
|
|
@@ -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: Partial<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,68 +0,0 @@
|
|
|
1
|
-
import { IBaseTest } from "../Types";
|
|
2
|
-
import type { Plugin } from "esbuild";
|
|
3
|
-
import { IGivens, BaseCheck, BaseSuite, BaseGiven, BaseWhen, BaseThen } from "./abstractBase";
|
|
4
|
-
import { ITTestResourceConfiguration, ITestArtificer } from ".";
|
|
5
|
-
import { PM } from "../PM/index";
|
|
6
|
-
export declare type IFinalResults = {
|
|
7
|
-
features: string[];
|
|
8
|
-
failed: number;
|
|
9
|
-
};
|
|
10
|
-
export declare type IRunTime = `node` | `web`;
|
|
11
|
-
export declare type ITestTypes = [string, IRunTime, {
|
|
12
|
-
ports: number;
|
|
13
|
-
}, ITestTypes[]];
|
|
14
|
-
export declare type IJsonConfig = {
|
|
15
|
-
outdir: string;
|
|
16
|
-
tests: ITestTypes[];
|
|
17
|
-
botEmail: string;
|
|
18
|
-
};
|
|
19
|
-
export declare type IPlugin = (register: (entrypoint: any, sources: any) => any, entrypoints: any) => Plugin;
|
|
20
|
-
export declare type IBaseConfig = {
|
|
21
|
-
clearScreen: boolean;
|
|
22
|
-
debugger: boolean;
|
|
23
|
-
devMode: boolean;
|
|
24
|
-
externals: string[];
|
|
25
|
-
minify: boolean;
|
|
26
|
-
outbase: string;
|
|
27
|
-
outdir: string;
|
|
28
|
-
ports: string[];
|
|
29
|
-
tests: ITestTypes[];
|
|
30
|
-
nodePlugins: IPlugin[];
|
|
31
|
-
webPlugins: IPlugin[];
|
|
32
|
-
featureIngestor: (s: string) => Promise<string>;
|
|
33
|
-
};
|
|
34
|
-
export declare type IBuiltConfig = {
|
|
35
|
-
buildDir: string;
|
|
36
|
-
} & IBaseConfig;
|
|
37
|
-
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>>> = {
|
|
38
|
-
assertThis: (x: ITestShape["then"]) => void;
|
|
39
|
-
andWhen: (store: ITestShape["istore"], whenCB: ITestShape["when"], testResource: ITTestResourceConfiguration, utils: PM) => Promise<ITestShape["istore"]>;
|
|
40
|
-
butThen: (store: ITestShape["istore"], thenCB: any, testResource: ITTestResourceConfiguration, utils: PM) => Promise<ITestShape["iselection"]>;
|
|
41
|
-
afterAll: (store: ITestShape["istore"], artificer: ITestArtificer, utils: PM) => any;
|
|
42
|
-
afterEach: (store: ITestShape["istore"], key: string, artificer: ITestArtificer, utils: PM) => Promise<unknown>;
|
|
43
|
-
beforeAll: (input: ITestShape["iinput"], testResource: ITTestResourceConfiguration, artificer: ITestArtificer, utils: PM) => Promise<ITestShape["isubject"]>;
|
|
44
|
-
beforeEach: (subject: ITestShape["isubject"], initializer: (c?: any) => ITestShape["given"], artificer: ITestArtificer, testResource: ITTestResourceConfiguration, initialValues: any, utils: PM) => Promise<ITestShape["istore"]>;
|
|
45
|
-
};
|
|
46
|
-
export declare type INodeTestInterface<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>>> = {
|
|
47
|
-
assertThis: (x: ITestShape["then"]) => void;
|
|
48
|
-
andWhen: (store: ITestShape["istore"], whenCB: ITestShape["when"], testResource: ITTestResourceConfiguration, utils: PM) => Promise<ITestShape["istore"]>;
|
|
49
|
-
butThen: (store: ITestShape["istore"], thenCB: any, testResource: ITTestResourceConfiguration, utils: PM) => Promise<ITestShape["iselection"]>;
|
|
50
|
-
afterAll: (store: ITestShape["istore"], artificer: ITestArtificer, pm: PM) => any;
|
|
51
|
-
afterEach: (store: ITestShape["istore"], key: string, artificer: ITestArtificer, pm: PM) => Promise<unknown>;
|
|
52
|
-
beforeAll: (input: ITestShape["iinput"], testResource: ITTestResourceConfiguration, artificer: ITestArtificer, pm: PM) => Promise<ITestShape["isubject"]>;
|
|
53
|
-
beforeEach: (subject: ITestShape["isubject"], initializer: (c?: any) => ITestShape["given"], artificer: ITestArtificer, testResource: ITTestResourceConfiguration, initialValues: any, pm: PM) => Promise<ITestShape["istore"]>;
|
|
54
|
-
};
|
|
55
|
-
export declare type ITestInterface<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>>> = {
|
|
56
|
-
assertThis: (x: ITestShape["then"]) => void;
|
|
57
|
-
andWhen: (store: ITestShape["istore"], whenCB: ITestShape["when"], testResource: ITTestResourceConfiguration, pm: PM) => Promise<ITestShape["istore"]>;
|
|
58
|
-
butThen: (store: ITestShape["istore"], thenCB: any, testResource: ITTestResourceConfiguration, pm: PM) => Promise<ITestShape["iselection"]>;
|
|
59
|
-
afterAll: (store: ITestShape["istore"], artificer: ITestArtificer, pm: PM) => any;
|
|
60
|
-
afterEach: (store: ITestShape["istore"], key: string, artificer: ITestArtificer, pm: PM) => Promise<unknown>;
|
|
61
|
-
beforeAll: (input: ITestShape["iinput"], testResource: ITTestResourceConfiguration, artificer: ITestArtificer, pm: PM) => Promise<ITestShape["isubject"]>;
|
|
62
|
-
beforeEach: (subject: ITestShape["isubject"], initializer: (c?: any) => ITestShape["given"], artificer: ITestArtificer, testResource: ITTestResourceConfiguration, initialValues: any, pm: PM) => Promise<ITestShape["istore"]>;
|
|
63
|
-
};
|
|
64
|
-
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>;
|
|
65
|
-
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>;
|
|
66
|
-
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>;
|
|
67
|
-
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>;
|
|
68
|
-
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;
|
package/docker-compose.yml
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
version: "0.1"
|
|
2
|
-
|
|
3
|
-
services:
|
|
4
|
-
report:
|
|
5
|
-
image: us-west1-docker.pkg.dev/dev-trail-450920-p2/testeranto-docker/report:latest
|
|
6
|
-
container_name: report
|
|
7
|
-
ports:
|
|
8
|
-
- 8080:8080
|
|
9
|
-
|
|
10
|
-
mongodb:
|
|
11
|
-
image: mongo
|
|
12
|
-
container_name: mongodb
|
|
13
|
-
environment:
|
|
14
|
-
- PUID=1000
|
|
15
|
-
- PGID=1000
|
|
16
|
-
volumes:
|
|
17
|
-
- /home/barry/mongodb/database:/data/db
|
|
18
|
-
ports:
|
|
19
|
-
- 27017:27017
|
|
20
|
-
restart: unless-stopped
|
|
21
|
-
# services:
|
|
22
|
-
|
|
23
|
-
# counter:
|
|
24
|
-
# image: gcr.io/${PROJECT_ID}/gcb-docker-compose:latest
|
|
25
|
-
# container_name: counter
|
|
26
|
-
# depends_on:
|
|
27
|
-
# - redis
|
|
28
|
-
# ports:
|
|
29
|
-
# - "50051:50051"
|
|
30
|
-
# environment:
|
|
31
|
-
# - REDIS_HOST=redis
|
|
32
|
-
# - REDIS_PORT=6379
|
|
33
|
-
|
|
34
|
-
# redis:
|
|
35
|
-
# image: redis
|
|
36
|
-
# ports:
|
|
37
|
-
# - "6379:6379"
|