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
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IRunTime, IBuiltConfig } from "./lib";
|
|
2
|
+
export declare const destinationOfRuntime: (f: string, r: IRunTime, configs: IBuiltConfig) => string;
|
|
3
|
+
export declare const tscPather: (entryPoint: string, platform: "web" | "node") => string;
|
|
4
|
+
export declare const tscExitCodePather: (entryPoint: string, platform: "web" | "node") => string;
|
|
5
|
+
export declare const lintPather: (entryPoint: string, platform: "web" | "node") => string;
|
|
6
|
+
export declare const lintExitCodePather: (entryPoint: string, platform: "web" | "node") => string;
|
|
7
|
+
export declare const bddPather: (entryPoint: string, platform: "web" | "node") => string;
|
|
8
|
+
export declare const bddExitCodePather: (entryPoint: string, platform: "web" | "node") => string;
|
|
9
|
+
export declare const promptPather: (entryPoint: string, platform: "web" | "node") => string;
|
package/package.json
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "testeranto",
|
|
3
3
|
"description": "the AI powered BDD test framework for typescript projects",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.110.0",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": "18.18.0"
|
|
7
7
|
},
|
|
8
|
-
"bin": {
|
|
9
|
-
"testeranto-init": "bin/init-docs.js testeranto.mts"
|
|
10
|
-
},
|
|
11
8
|
"type": "module",
|
|
12
9
|
"types": "./dist/index.d.mts",
|
|
13
10
|
"module": "dist/module/index.js",
|
|
@@ -25,16 +22,16 @@
|
|
|
25
22
|
"require": "./dist/common/SubPackages/puppeteer.js"
|
|
26
23
|
},
|
|
27
24
|
"./src/SubPackages/react/jsx/index": {
|
|
28
|
-
"import": "./dist/module/
|
|
29
|
-
"require": "./dist/common/
|
|
25
|
+
"import": "./dist/module/SubPackages/react/jsx/index.js",
|
|
26
|
+
"require": "./dist/common/SubPackages/react/jsx/index.js"
|
|
30
27
|
},
|
|
31
28
|
"./src/SubPackages/react/jsx/web": {
|
|
32
29
|
"import": "./src/SubPackages/react/jsx/web.ts",
|
|
33
30
|
"require": "./src/SubPackages/react/jsx/web.ts"
|
|
34
31
|
},
|
|
35
32
|
"./src/SubPackages/react/jsx/node": {
|
|
36
|
-
"import": "./dist/module/
|
|
37
|
-
"require": "./dist/common/
|
|
33
|
+
"import": "./dist/module/SubPackages/react/jsx/node.js",
|
|
34
|
+
"require": "./dist/common/SubPackages/react/jsx/node.js"
|
|
38
35
|
},
|
|
39
36
|
"./src/SubPackages/react/component/index": {
|
|
40
37
|
"import": "./dist/module/SubPackages/react/component/index.js",
|
|
@@ -49,32 +46,32 @@
|
|
|
49
46
|
"require": "./dist/common/SubPackages/react/component/node.js"
|
|
50
47
|
},
|
|
51
48
|
"./src/SubPackages/react-test-renderer/component/index.ts": {
|
|
52
|
-
"import": "./
|
|
53
|
-
"require": "./
|
|
49
|
+
"import": "./SubPackages/react-test-renderer/component/index.ts",
|
|
50
|
+
"require": "./SubPackages/react-test-renderer/component/index.ts"
|
|
54
51
|
},
|
|
55
52
|
"./src/SubPackages/react-test-renderer/component/index": {
|
|
56
|
-
"import": "./
|
|
57
|
-
"require": "./
|
|
53
|
+
"import": "./SubPackages/react-test-renderer/component/index.ts",
|
|
54
|
+
"require": "./SubPackages/react-test-renderer/component/index.ts"
|
|
58
55
|
},
|
|
59
56
|
"./src/SubPackages/react-test-renderer/component/web": {
|
|
60
|
-
"import": "./dist/module/
|
|
61
|
-
"require": "./dist/common/
|
|
57
|
+
"import": "./dist/module/SubPackages/react-test-renderer/component/web.js",
|
|
58
|
+
"require": "./dist/common/SubPackages/react-test-renderer/component/web.js"
|
|
62
59
|
},
|
|
63
60
|
"./src/SubPackages/react-test-renderer/component/node": {
|
|
64
|
-
"import": "./dist/module/
|
|
65
|
-
"require": "./dist/common/
|
|
61
|
+
"import": "./dist/module/SubPackages/react-test-renderer/component/node.js",
|
|
62
|
+
"require": "./dist/common/SubPackages/react-test-renderer/component/node.js"
|
|
66
63
|
},
|
|
67
64
|
"./src/SubPackages/react-test-renderer/jsx/index.js": {
|
|
68
|
-
"import": "./dist/module/
|
|
69
|
-
"require": "./dist/common/
|
|
65
|
+
"import": "./dist/module/SubPackages/react-test-renderer/jsx/index.js",
|
|
66
|
+
"require": "./dist/common/SubPackages/react-test-renderer/jsx/index.js"
|
|
70
67
|
},
|
|
71
68
|
"./src/SubPackages/react-test-renderer/jsx/web.js": {
|
|
72
|
-
"import": "./dist/module/
|
|
73
|
-
"require": "./dist/common/
|
|
69
|
+
"import": "./dist/module/SubPackages/react-test-renderer/jsx/web.js",
|
|
70
|
+
"require": "./dist/common/SubPackages/react-test-renderer/jsx/web.js"
|
|
74
71
|
},
|
|
75
72
|
"./src/SubPackages/react-test-renderer/jsx/node.js": {
|
|
76
|
-
"import": "./dist/module/
|
|
77
|
-
"require": "./dist/common/
|
|
73
|
+
"import": "./dist/module/SubPackages/react-test-renderer/jsx/node.js",
|
|
74
|
+
"require": "./dist/common/SubPackages/react-test-renderer/jsx/node.js"
|
|
78
75
|
},
|
|
79
76
|
"./src/SubPackages/react-test-renderer/jsx-promised/index": {
|
|
80
77
|
"import": "./dist/module/SubPackages/react-test-renderer/jsx-promised/index.js",
|
|
@@ -109,20 +106,20 @@
|
|
|
109
106
|
"require": "./dist/common/SubPackages/react-dom/jsx/index.js"
|
|
110
107
|
},
|
|
111
108
|
"./src/SubPackages/react-dom/component/web": {
|
|
112
|
-
"import": "./dist/module/
|
|
113
|
-
"require": "./dist/common/
|
|
109
|
+
"import": "./dist/module/SubPackages/react-dom/component/web.js",
|
|
110
|
+
"require": "./dist/common/SubPackages/react-dom/component/web.js"
|
|
114
111
|
},
|
|
115
112
|
"./src/SubPackages/react-dom/component/node": {
|
|
116
|
-
"import": "./dist/module/
|
|
117
|
-
"require": "./dist/common/
|
|
113
|
+
"import": "./dist/module/SubPackages/react-dom/component/node.js",
|
|
114
|
+
"require": "./dist/common/SubPackages/react-dom/component/node.js"
|
|
118
115
|
},
|
|
119
116
|
"./src/Types": {
|
|
120
|
-
"import": "./
|
|
121
|
-
"require": "./
|
|
117
|
+
"import": "./Types.ts",
|
|
118
|
+
"require": "./Types.ts"
|
|
122
119
|
},
|
|
123
120
|
"./src/utils": {
|
|
124
|
-
"import": "./
|
|
125
|
-
"require": "./
|
|
121
|
+
"import": "./utils.ts",
|
|
122
|
+
"require": "./utils.ts"
|
|
126
123
|
},
|
|
127
124
|
"./src/Features": {
|
|
128
125
|
"import": "./dist/module/Features.js",
|
|
@@ -184,13 +181,15 @@
|
|
|
184
181
|
"ATDD"
|
|
185
182
|
],
|
|
186
183
|
"scripts": {
|
|
184
|
+
"build-hard": "rm -rf dist/** && yarn build && yarn bundle && yarn type-check",
|
|
187
185
|
"doit": "rm -rf node_modules && yarn install && yarn build",
|
|
188
186
|
"build": "sh prebuild.sh; cp ./src/cjs-shim.js ./dist/cjs-shim.js; tsc -p tsconfig.module.json; tsc -p tsconfig.common.json; tsc -p tsconfig.types.json; sh postBuild.sh; yarn bundle",
|
|
189
187
|
"dev": "cp ./src/cjs-shim.js ./dist/cjs-shim.js && tsc -p tsconfig.module.json --watch & tsc -p tsconfig.common.json --watch & tsc -p tsconfig.types.json --watch ",
|
|
190
188
|
"bundle": "node bundle.js",
|
|
191
189
|
"build-module": "tsc -p tsconfig.module.json",
|
|
192
190
|
"build-common": "tsc -p tsconfig.common.json",
|
|
193
|
-
"build-types": "tsc -p tsconfig.types.json"
|
|
191
|
+
"build-types": "tsc -p tsconfig.types.json",
|
|
192
|
+
"type-check": "yarn tsc --noEmit > tsc.log"
|
|
194
193
|
},
|
|
195
194
|
"peerDependencies": {
|
|
196
195
|
"@types/react": "18.2.0",
|
|
@@ -209,7 +208,7 @@
|
|
|
209
208
|
"@types/express": "^5.0.0",
|
|
210
209
|
"@types/express-session": "^1.18.1",
|
|
211
210
|
"@types/node": "^22.7.5",
|
|
212
|
-
"@types/react": "18.2.
|
|
211
|
+
"@types/react": "18.2.0",
|
|
213
212
|
"@types/react-dom": "18.2.0",
|
|
214
213
|
"@types/react-test-renderer": "19.0.0",
|
|
215
214
|
"@types/uuid": "^10.0.0",
|
|
@@ -223,8 +222,11 @@
|
|
|
223
222
|
"@bscotch/debounce-watch": "^1.1.0",
|
|
224
223
|
"@humanwhocodes/config-array": "^0.13.0",
|
|
225
224
|
"@types/eslint": "^9.6.1",
|
|
225
|
+
"@types/node-static": "^0.7.11",
|
|
226
226
|
"@ungap/structured-clone": "^1.3.0",
|
|
227
|
+
"ansi-colors": "^4.1.3",
|
|
227
228
|
"babel-loader": "^8.2.5",
|
|
229
|
+
"bootstrap": "^5.3.4",
|
|
228
230
|
"chai": "^5.2.0",
|
|
229
231
|
"chromium": "^3.0.3",
|
|
230
232
|
"dot-prop": "^9.0.0",
|
|
@@ -232,6 +234,7 @@
|
|
|
232
234
|
"esbuild-plugin-external-package": "^1.0.0",
|
|
233
235
|
"esbuild-plugin-import-map": "^2.1.0",
|
|
234
236
|
"esbuild-plugin-markdown": "^0.0.3",
|
|
237
|
+
"eslint": "^9.23.0",
|
|
235
238
|
"eslint-plugin-import": "^2.31.0",
|
|
236
239
|
"eslint-plugin-react": "^7.31.11",
|
|
237
240
|
"eslint-plugin-react-hooks": "^5.1.0",
|
|
@@ -240,13 +243,18 @@
|
|
|
240
243
|
"fs.promises.exists": "^1.1.4",
|
|
241
244
|
"glob": "^10.3.12",
|
|
242
245
|
"iterm-tab": "^0.4.0",
|
|
246
|
+
"live-server": "^1.2.2",
|
|
247
|
+
"node-static": "^0.7.11",
|
|
243
248
|
"octokit": "^4.1.2",
|
|
244
249
|
"puppeteer": "^24.4.0",
|
|
245
250
|
"puppeteer-core": "24.4.0",
|
|
251
|
+
"react": "18.2.0",
|
|
252
|
+
"react-bootstrap": "^2.10.9",
|
|
246
253
|
"react-dom": "18.2.0",
|
|
247
254
|
"react-router-dom": "6.29.0",
|
|
248
255
|
"react-test-renderer": "18.2.0",
|
|
249
256
|
"recursive-watch": "^1.1.4",
|
|
257
|
+
"tsc-prog": "^2.3.0",
|
|
250
258
|
"url": "^0.11.4",
|
|
251
259
|
"uuid": "^10.0.0",
|
|
252
260
|
"why-is-node-running": "^3.2.2",
|
package/src/Footer.tsx
ADDED
package/src/Init.ts
CHANGED
|
@@ -12,6 +12,54 @@ export default async (partialConfig) => {
|
|
|
12
12
|
// console.log()
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
+
fs.writeFileSync(
|
|
16
|
+
`${config.outdir}/index.html`,
|
|
17
|
+
`
|
|
18
|
+
<!DOCTYPE html>
|
|
19
|
+
<html lang="en">
|
|
20
|
+
|
|
21
|
+
<head>
|
|
22
|
+
<meta name="description" content="Webpage description goes here" />
|
|
23
|
+
<meta charset="utf-8" />
|
|
24
|
+
<title>kokomoBay - testeranto</title>
|
|
25
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
26
|
+
<meta name="author" content="" />
|
|
27
|
+
|
|
28
|
+
<link rel="stylesheet" href="/kokomoBay/docs/ReportClient.css" />
|
|
29
|
+
<script type="module" src="/kokomoBay/docs/ReportClient.js"></script>
|
|
30
|
+
|
|
31
|
+
</head>
|
|
32
|
+
|
|
33
|
+
<body>
|
|
34
|
+
<div id="root">
|
|
35
|
+
react is loading
|
|
36
|
+
</div>
|
|
37
|
+
</body>
|
|
38
|
+
|
|
39
|
+
</html>
|
|
40
|
+
`
|
|
41
|
+
);
|
|
42
|
+
|
|
43
|
+
fs.copyFileSync(
|
|
44
|
+
`node_modules/testeranto/dist/prebuild/ReportClient.js`,
|
|
45
|
+
`${config.outdir}/ReportClient.js`
|
|
46
|
+
);
|
|
47
|
+
|
|
48
|
+
fs.copyFileSync(
|
|
49
|
+
`node_modules/testeranto/dist/prebuild/ReportClient.css`,
|
|
50
|
+
`${config.outdir}/ReportClient.css`
|
|
51
|
+
);
|
|
52
|
+
|
|
53
|
+
fs.copyFileSync(
|
|
54
|
+
`node_modules/testeranto/dist/prebuild/TestReport.js`,
|
|
55
|
+
`${config.outdir}/TestReport.js`
|
|
56
|
+
);
|
|
57
|
+
|
|
58
|
+
fs.copyFileSync(
|
|
59
|
+
`node_modules/testeranto/dist/prebuild/TestReport.css`,
|
|
60
|
+
`${config.outdir}/TestReport.css`
|
|
61
|
+
);
|
|
62
|
+
|
|
15
63
|
fs.writeFileSync(
|
|
16
64
|
`${config.outdir}/testeranto.json`,
|
|
17
65
|
JSON.stringify(
|
package/src/Node.ts
CHANGED
|
@@ -5,35 +5,39 @@ import {
|
|
|
5
5
|
ITTestResourceRequest,
|
|
6
6
|
} from "./lib/index.js";
|
|
7
7
|
import type {
|
|
8
|
-
|
|
8
|
+
Ibdd_in,
|
|
9
|
+
Ibdd_out,
|
|
10
|
+
INodeTestInterface,
|
|
9
11
|
ITestImplementation,
|
|
12
|
+
ITestInterface,
|
|
10
13
|
ITestSpecification,
|
|
11
14
|
} from "./Types.js";
|
|
12
|
-
import { ITestInterface, INodeTestInterface } from "./lib/types.js";
|
|
13
15
|
import { PM_Node } from "./PM/node.js";
|
|
14
16
|
|
|
15
17
|
export class NodeTesteranto<
|
|
16
|
-
|
|
17
|
-
unknown,
|
|
18
|
+
I extends Ibdd_in<
|
|
18
19
|
unknown,
|
|
19
20
|
unknown,
|
|
20
21
|
unknown,
|
|
21
22
|
unknown,
|
|
22
23
|
unknown,
|
|
23
24
|
unknown,
|
|
25
|
+
unknown
|
|
26
|
+
>,
|
|
27
|
+
O extends Ibdd_out<
|
|
24
28
|
Record<string, any>,
|
|
25
29
|
Record<string, any>,
|
|
26
30
|
Record<string, any>,
|
|
27
31
|
Record<string, any>,
|
|
28
32
|
Record<string, any>
|
|
29
33
|
>
|
|
30
|
-
> extends Testeranto<
|
|
34
|
+
> extends Testeranto<I, O> {
|
|
31
35
|
constructor(
|
|
32
|
-
input:
|
|
33
|
-
testSpecification: ITestSpecification<
|
|
34
|
-
testImplementation: ITestImplementation<
|
|
36
|
+
input: I["iinput"],
|
|
37
|
+
testSpecification: ITestSpecification<I, O>,
|
|
38
|
+
testImplementation: ITestImplementation<I, O>,
|
|
35
39
|
testResourceRequirement: ITTestResourceRequest,
|
|
36
|
-
testInterface: Partial<ITestInterface<
|
|
40
|
+
testInterface: Partial<ITestInterface<I>>
|
|
37
41
|
) {
|
|
38
42
|
super(
|
|
39
43
|
input,
|
|
@@ -58,14 +62,16 @@ export class NodeTesteranto<
|
|
|
58
62
|
}
|
|
59
63
|
|
|
60
64
|
export default async <
|
|
61
|
-
|
|
62
|
-
unknown,
|
|
65
|
+
I extends Ibdd_in<
|
|
63
66
|
unknown,
|
|
64
67
|
unknown,
|
|
65
68
|
unknown,
|
|
66
69
|
unknown,
|
|
67
70
|
unknown,
|
|
68
71
|
unknown,
|
|
72
|
+
unknown
|
|
73
|
+
>,
|
|
74
|
+
O extends Ibdd_out<
|
|
69
75
|
Record<string, any>,
|
|
70
76
|
Record<string, any>,
|
|
71
77
|
Record<string, any>,
|
|
@@ -73,13 +79,13 @@ export default async <
|
|
|
73
79
|
Record<string, any>
|
|
74
80
|
>
|
|
75
81
|
>(
|
|
76
|
-
input:
|
|
77
|
-
testSpecification: ITestSpecification<
|
|
78
|
-
testImplementation: ITestImplementation<
|
|
79
|
-
testInterface: Partial<INodeTestInterface<
|
|
82
|
+
input: I["iinput"],
|
|
83
|
+
testSpecification: ITestSpecification<I, O>,
|
|
84
|
+
testImplementation: ITestImplementation<I, O>,
|
|
85
|
+
testInterface: Partial<INodeTestInterface<I>>,
|
|
80
86
|
testResourceRequirement: ITTestResourceRequest = defaultTestResourceRequirement
|
|
81
|
-
): Promise<Testeranto<
|
|
82
|
-
return new NodeTesteranto<
|
|
87
|
+
): Promise<Testeranto<I, O>> => {
|
|
88
|
+
return new NodeTesteranto<I, O>(
|
|
83
89
|
input,
|
|
84
90
|
testSpecification,
|
|
85
91
|
testImplementation,
|
package/src/PM/index.ts
CHANGED
|
@@ -26,7 +26,7 @@ export abstract class PM {
|
|
|
26
26
|
abstract typeInto(value: string): any;
|
|
27
27
|
abstract getValue(value: string): any;
|
|
28
28
|
abstract getAttribute(selector: string, attribute: string): any;
|
|
29
|
-
abstract isDisabled(selector: string): boolean
|
|
29
|
+
abstract isDisabled(selector: string): Promise<boolean>;
|
|
30
30
|
abstract $(selector: string): any;
|
|
31
31
|
|
|
32
32
|
abstract newPage(): CdpPage;
|