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
package/src/lib/types.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ibdd_in, Ibdd_out } from "../Types";
|
|
2
2
|
|
|
3
|
-
import type { Plugin } from "esbuild";
|
|
4
3
|
import {
|
|
5
4
|
IGivens,
|
|
6
5
|
BaseCheck,
|
|
@@ -9,170 +8,18 @@ import {
|
|
|
9
8
|
BaseWhen,
|
|
10
9
|
BaseThen,
|
|
11
10
|
} from "./abstractBase";
|
|
12
|
-
import { ITTestResourceConfiguration, ITestArtificer } from ".";
|
|
13
|
-
import { PM } from "../PM/index";
|
|
14
11
|
|
|
15
|
-
export type
|
|
16
|
-
|
|
17
|
-
export type IRunTime = `node` | `web`;
|
|
18
|
-
|
|
19
|
-
export type ITestTypes = [string, IRunTime, { ports: number }, ITestTypes[]];
|
|
20
|
-
|
|
21
|
-
export type IJsonConfig = {
|
|
22
|
-
outdir: string;
|
|
23
|
-
tests: ITestTypes[];
|
|
24
|
-
botEmail: string;
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
export type IPlugin = (
|
|
28
|
-
register: (entrypoint, sources) => any,
|
|
29
|
-
entrypoints
|
|
30
|
-
) => Plugin;
|
|
31
|
-
|
|
32
|
-
export type IBaseConfig = {
|
|
33
|
-
clearScreen: boolean;
|
|
34
|
-
debugger: boolean;
|
|
35
|
-
devMode: boolean;
|
|
36
|
-
externals: string[];
|
|
37
|
-
minify: boolean;
|
|
38
|
-
outbase: string;
|
|
39
|
-
outdir: string;
|
|
40
|
-
ports: string[];
|
|
41
|
-
tests: ITestTypes[];
|
|
42
|
-
|
|
43
|
-
nodePlugins: IPlugin[];
|
|
44
|
-
webPlugins: IPlugin[];
|
|
45
|
-
|
|
46
|
-
featureIngestor: (s: string) => Promise<string>;
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
export type IBuiltConfig = { buildDir: string } & IBaseConfig;
|
|
50
|
-
|
|
51
|
-
export type IWebTestInterface<
|
|
52
|
-
ITestShape extends IBaseTest<
|
|
53
|
-
unknown,
|
|
54
|
-
unknown,
|
|
55
|
-
unknown,
|
|
56
|
-
unknown,
|
|
57
|
-
unknown,
|
|
58
|
-
unknown,
|
|
59
|
-
unknown,
|
|
60
|
-
Record<string, any>,
|
|
61
|
-
Record<string, any>,
|
|
62
|
-
Record<string, any>,
|
|
63
|
-
Record<string, any>,
|
|
64
|
-
Record<string, any>
|
|
65
|
-
>
|
|
66
|
-
> = {
|
|
67
|
-
assertThis: (x: ITestShape["then"]) => void;
|
|
68
|
-
|
|
69
|
-
andWhen: (
|
|
70
|
-
store: ITestShape["istore"],
|
|
71
|
-
whenCB: ITestShape["when"],
|
|
72
|
-
testResource: ITTestResourceConfiguration,
|
|
73
|
-
utils: PM
|
|
74
|
-
) => Promise<ITestShape["istore"]>;
|
|
75
|
-
butThen: (
|
|
76
|
-
store: ITestShape["istore"],
|
|
77
|
-
thenCB,
|
|
78
|
-
testResource: ITTestResourceConfiguration,
|
|
79
|
-
utils: PM
|
|
80
|
-
) => Promise<ITestShape["iselection"]>;
|
|
81
|
-
|
|
82
|
-
afterAll: (
|
|
83
|
-
store: ITestShape["istore"],
|
|
84
|
-
artificer: ITestArtificer,
|
|
85
|
-
utils: PM
|
|
86
|
-
) => any;
|
|
87
|
-
afterEach: (
|
|
88
|
-
store: ITestShape["istore"],
|
|
89
|
-
key: string,
|
|
90
|
-
artificer: ITestArtificer,
|
|
91
|
-
utils: PM
|
|
92
|
-
) => Promise<unknown>;
|
|
93
|
-
beforeAll: (
|
|
94
|
-
input: ITestShape["iinput"],
|
|
95
|
-
testResource: ITTestResourceConfiguration,
|
|
96
|
-
artificer: ITestArtificer,
|
|
97
|
-
utils: PM
|
|
98
|
-
) => Promise<ITestShape["isubject"]>;
|
|
99
|
-
beforeEach: (
|
|
100
|
-
subject: ITestShape["isubject"],
|
|
101
|
-
initializer: (c?) => ITestShape["given"],
|
|
102
|
-
artificer: ITestArtificer,
|
|
103
|
-
testResource: ITTestResourceConfiguration,
|
|
104
|
-
initialValues,
|
|
105
|
-
utils: PM
|
|
106
|
-
) => Promise<ITestShape["istore"]>;
|
|
107
|
-
};
|
|
108
|
-
// & ITestInterface<ITestShape>;
|
|
109
|
-
|
|
110
|
-
export type INodeTestInterface<
|
|
111
|
-
ITestShape extends IBaseTest<
|
|
112
|
-
unknown,
|
|
113
|
-
unknown,
|
|
114
|
-
unknown,
|
|
115
|
-
unknown,
|
|
116
|
-
unknown,
|
|
117
|
-
unknown,
|
|
118
|
-
unknown,
|
|
119
|
-
Record<string, any>,
|
|
120
|
-
Record<string, any>,
|
|
121
|
-
Record<string, any>,
|
|
122
|
-
Record<string, any>,
|
|
123
|
-
Record<string, any>
|
|
124
|
-
>
|
|
125
|
-
> = {
|
|
126
|
-
assertThis: (x: ITestShape["then"]) => void;
|
|
127
|
-
andWhen: (
|
|
128
|
-
store: ITestShape["istore"],
|
|
129
|
-
whenCB: ITestShape["when"],
|
|
130
|
-
testResource: ITTestResourceConfiguration,
|
|
131
|
-
utils: PM
|
|
132
|
-
) => Promise<ITestShape["istore"]>;
|
|
133
|
-
butThen: (
|
|
134
|
-
store: ITestShape["istore"],
|
|
135
|
-
thenCB,
|
|
136
|
-
testResource: ITTestResourceConfiguration,
|
|
137
|
-
utils: PM
|
|
138
|
-
) => Promise<ITestShape["iselection"]>;
|
|
139
|
-
afterAll: (
|
|
140
|
-
store: ITestShape["istore"],
|
|
141
|
-
artificer: ITestArtificer,
|
|
142
|
-
pm: PM
|
|
143
|
-
) => any;
|
|
144
|
-
afterEach: (
|
|
145
|
-
store: ITestShape["istore"],
|
|
146
|
-
key: string,
|
|
147
|
-
artificer: ITestArtificer,
|
|
148
|
-
pm: PM
|
|
149
|
-
) => Promise<unknown>;
|
|
150
|
-
beforeAll: (
|
|
151
|
-
input: ITestShape["iinput"],
|
|
152
|
-
testResource: ITTestResourceConfiguration,
|
|
153
|
-
artificer: ITestArtificer,
|
|
154
|
-
pm: PM
|
|
155
|
-
) => Promise<ITestShape["isubject"]>;
|
|
156
|
-
beforeEach: (
|
|
157
|
-
subject: ITestShape["isubject"],
|
|
158
|
-
initializer: (c?) => ITestShape["given"],
|
|
159
|
-
artificer: ITestArtificer,
|
|
160
|
-
testResource: ITTestResourceConfiguration,
|
|
161
|
-
initialValues,
|
|
162
|
-
pm: PM
|
|
163
|
-
) => Promise<ITestShape["istore"]>;
|
|
164
|
-
};
|
|
165
|
-
// & ITestInterface<ITestShape>;
|
|
166
|
-
|
|
167
|
-
export type ITestInterface<
|
|
168
|
-
ITestShape extends IBaseTest<
|
|
169
|
-
unknown,
|
|
12
|
+
export type ITestCheckCallback<
|
|
13
|
+
I extends Ibdd_in<
|
|
170
14
|
unknown,
|
|
171
15
|
unknown,
|
|
172
16
|
unknown,
|
|
173
17
|
unknown,
|
|
174
18
|
unknown,
|
|
175
19
|
unknown,
|
|
20
|
+
unknown
|
|
21
|
+
>,
|
|
22
|
+
O extends Ibdd_out<
|
|
176
23
|
Record<string, any>,
|
|
177
24
|
Record<string, any>,
|
|
178
25
|
Record<string, any>,
|
|
@@ -180,57 +27,32 @@ export type ITestInterface<
|
|
|
180
27
|
Record<string, any>
|
|
181
28
|
>
|
|
182
29
|
> = {
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
) => Promise<ITestShape["iselection"]>;
|
|
197
|
-
|
|
198
|
-
afterAll: (
|
|
199
|
-
store: ITestShape["istore"],
|
|
200
|
-
artificer: ITestArtificer,
|
|
201
|
-
pm: PM
|
|
202
|
-
) => any;
|
|
203
|
-
afterEach: (
|
|
204
|
-
store: ITestShape["istore"],
|
|
205
|
-
key: string,
|
|
206
|
-
artificer: ITestArtificer,
|
|
207
|
-
pm: PM
|
|
208
|
-
) => Promise<unknown>;
|
|
209
|
-
beforeAll: (
|
|
210
|
-
input: ITestShape["iinput"],
|
|
211
|
-
testResource: ITTestResourceConfiguration,
|
|
212
|
-
artificer: ITestArtificer,
|
|
213
|
-
pm: PM
|
|
214
|
-
) => Promise<ITestShape["isubject"]>;
|
|
215
|
-
beforeEach: (
|
|
216
|
-
subject: ITestShape["isubject"],
|
|
217
|
-
initializer: (c?) => ITestShape["given"],
|
|
218
|
-
artificer: ITestArtificer,
|
|
219
|
-
testResource: ITTestResourceConfiguration,
|
|
220
|
-
initialValues,
|
|
221
|
-
pm: PM
|
|
222
|
-
) => Promise<ITestShape["istore"]>;
|
|
30
|
+
[K in keyof O["checks"]]: (
|
|
31
|
+
name: string,
|
|
32
|
+
features: string[],
|
|
33
|
+
callbackA: (
|
|
34
|
+
whens: {
|
|
35
|
+
[K in keyof O["whens"]]: (...unknown) => BaseWhen<I>;
|
|
36
|
+
},
|
|
37
|
+
thens: {
|
|
38
|
+
[K in keyof O["thens"]]: (...unknown) => BaseThen<I>;
|
|
39
|
+
}
|
|
40
|
+
) => Promise<any>,
|
|
41
|
+
...xtrasA: O["checks"][K]
|
|
42
|
+
) => BaseCheck<I, O>;
|
|
223
43
|
};
|
|
224
44
|
|
|
225
45
|
export type ISuiteKlasser<
|
|
226
|
-
|
|
227
|
-
unknown,
|
|
46
|
+
I extends Ibdd_in<
|
|
228
47
|
unknown,
|
|
229
48
|
unknown,
|
|
230
49
|
unknown,
|
|
231
50
|
unknown,
|
|
232
51
|
unknown,
|
|
233
52
|
unknown,
|
|
53
|
+
unknown
|
|
54
|
+
>,
|
|
55
|
+
O extends Ibdd_out<
|
|
234
56
|
Record<string, any>,
|
|
235
57
|
Record<string, any>,
|
|
236
58
|
Record<string, any>,
|
|
@@ -240,74 +62,61 @@ export type ISuiteKlasser<
|
|
|
240
62
|
> = (
|
|
241
63
|
name: string,
|
|
242
64
|
index: number,
|
|
243
|
-
givens: IGivens<
|
|
244
|
-
checks: BaseCheck<
|
|
245
|
-
) => BaseSuite<
|
|
65
|
+
givens: IGivens<I>,
|
|
66
|
+
checks: BaseCheck<I, O>[]
|
|
67
|
+
) => BaseSuite<I, O>;
|
|
246
68
|
|
|
247
69
|
export type IGivenKlasser<
|
|
248
|
-
|
|
70
|
+
I extends Ibdd_in<
|
|
249
71
|
unknown,
|
|
250
72
|
unknown,
|
|
251
73
|
unknown,
|
|
252
74
|
unknown,
|
|
253
75
|
unknown,
|
|
254
76
|
unknown,
|
|
255
|
-
unknown
|
|
256
|
-
Record<string, any>,
|
|
257
|
-
Record<string, any>,
|
|
258
|
-
Record<string, any>,
|
|
259
|
-
Record<string, any>,
|
|
260
|
-
Record<string, any>
|
|
77
|
+
unknown
|
|
261
78
|
>
|
|
262
|
-
> = (name, features, whens, thens, givenCB) => BaseGiven<
|
|
79
|
+
> = (name, features, whens, thens, givenCB) => BaseGiven<I>;
|
|
263
80
|
|
|
264
81
|
export type IWhenKlasser<
|
|
265
|
-
|
|
266
|
-
unknown,
|
|
82
|
+
I extends Ibdd_in<
|
|
267
83
|
unknown,
|
|
268
84
|
unknown,
|
|
269
85
|
unknown,
|
|
270
86
|
unknown,
|
|
271
87
|
unknown,
|
|
272
88
|
unknown,
|
|
273
|
-
|
|
274
|
-
Record<string, any>,
|
|
275
|
-
Record<string, any>,
|
|
276
|
-
Record<string, any>,
|
|
277
|
-
Record<string, any>
|
|
89
|
+
unknown
|
|
278
90
|
>
|
|
279
|
-
> = (s, o) => BaseWhen<
|
|
91
|
+
> = (s, o) => BaseWhen<I>;
|
|
280
92
|
|
|
281
93
|
export type IThenKlasser<
|
|
282
|
-
|
|
283
|
-
unknown,
|
|
94
|
+
I extends Ibdd_in<
|
|
284
95
|
unknown,
|
|
285
96
|
unknown,
|
|
286
97
|
unknown,
|
|
287
98
|
unknown,
|
|
288
99
|
unknown,
|
|
289
100
|
unknown,
|
|
290
|
-
|
|
291
|
-
Record<string, any>,
|
|
292
|
-
Record<string, any>,
|
|
293
|
-
Record<string, any>,
|
|
294
|
-
Record<string, any>
|
|
101
|
+
unknown
|
|
295
102
|
>
|
|
296
|
-
> = (s, o) => BaseThen<
|
|
103
|
+
> = (s, o) => BaseThen<I>;
|
|
297
104
|
|
|
298
105
|
export type ICheckKlasser<
|
|
299
|
-
|
|
300
|
-
unknown,
|
|
106
|
+
I extends Ibdd_in<
|
|
301
107
|
unknown,
|
|
302
108
|
unknown,
|
|
303
109
|
unknown,
|
|
304
110
|
unknown,
|
|
305
111
|
unknown,
|
|
306
112
|
unknown,
|
|
113
|
+
unknown
|
|
114
|
+
>,
|
|
115
|
+
O extends Ibdd_out<
|
|
307
116
|
Record<string, any>,
|
|
308
117
|
Record<string, any>,
|
|
309
118
|
Record<string, any>,
|
|
310
119
|
Record<string, any>,
|
|
311
120
|
Record<string, any>
|
|
312
121
|
>
|
|
313
|
-
> = (n, f, cb, w, t) => BaseCheck<
|
|
122
|
+
> = (n, f, cb, w, t) => BaseCheck<I, O>;
|