testeranto 0.121.1 → 0.125.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/.aider.chat.history.md +97001 -0
- package/.aider.conf.yml +5 -0
- package/.aider.input.history +9 -0
- package/.aider.tags.cache.v3/b7/e6/5be87b62aeaf2bc244ff41c1b61a.val +0 -0
- package/.aider.tags.cache.v3/cache.db +0 -0
- package/.aider.tags.cache.v3/e3/e6/3501625caf5d5eb171f0d248462e.val +0 -0
- package/.aider.tags.cache.v3/ec/c0/161c249c35be853cc40cf11f9267.val +0 -0
- package/README.md +9 -0
- package/dist/common/{Init.js → src/Init.js} +1 -32
- package/dist/common/src/Node.js +49 -0
- package/dist/common/src/PM/base.js +230 -0
- package/dist/common/{PM → src/PM}/main.js +300 -233
- package/dist/common/src/PM/node.js +161 -0
- package/dist/common/{PM/node.js → src/PM/pure.js} +27 -18
- package/dist/common/{PM → src/PM}/web.js +14 -47
- package/dist/common/{Node.js → src/Pure.js} +11 -9
- package/dist/common/{SubPackages/react/component/web.js → src/SubPackages/react/component/index.js} +5 -4
- package/dist/common/src/SubPackages/react/component/node.js +10 -0
- package/dist/common/src/SubPackages/react/component/pure.js +10 -0
- package/dist/common/{SubPackages/react/jsx → src/SubPackages/react/component}/web.js +2 -2
- package/dist/common/src/SubPackages/react/jsx/index.js +64 -0
- package/dist/common/src/SubPackages/react/jsx/pure.js +10 -0
- package/dist/common/src/SubPackages/react/jsx/web.js +10 -0
- package/dist/common/{SubPackages/react-dom/component/web.js → src/SubPackages/react-dom/component/dynamic.js} +8 -14
- package/dist/common/src/SubPackages/react-dom/component/node.js +10 -0
- package/dist/common/src/SubPackages/react-dom/component/pure.js +10 -0
- package/dist/common/src/SubPackages/react-dom/component/static.js +26 -0
- package/dist/common/src/SubPackages/react-dom/component/web.js +16 -0
- package/dist/common/src/SubPackages/react-dom/jsx/dynamic.js +31 -0
- package/dist/common/src/SubPackages/react-dom/jsx/node.js +10 -0
- package/dist/common/src/SubPackages/react-dom/jsx/pure.js +10 -0
- package/dist/common/src/SubPackages/react-dom/jsx/static.js +59 -0
- package/dist/common/src/SubPackages/react-dom/jsx/web.js +16 -0
- package/dist/common/src/SubPackages/react-test-renderer/component/index.js +15 -0
- package/dist/common/src/SubPackages/react-test-renderer/component/pure.js +8 -0
- package/dist/common/src/SubPackages/react-test-renderer/component/test/implementation.js +57 -0
- package/dist/common/src/SubPackages/react-test-renderer/component/test/node.js +10 -0
- package/dist/common/src/SubPackages/react-test-renderer/component/test/pure.js +10 -0
- package/dist/common/src/SubPackages/react-test-renderer/component/test/web.js +10 -0
- package/dist/common/src/SubPackages/react-test-renderer/jsx/pure.js +10 -0
- package/dist/common/{Web.js → src/Web.js} +1 -4
- package/dist/common/{build.js → src/build.js} +37 -57
- package/dist/common/{defaultConfig.js → src/defaultConfig.js} +1 -3
- package/dist/common/{esbuildConfigs → src/esbuildConfigs}/node.js +5 -4
- package/dist/common/src/esbuildConfigs/pure.js +41 -0
- package/dist/common/{esbuildConfigs → src/esbuildConfigs}/web.js +5 -2
- package/dist/common/src/examples/react/component/index.js +33 -0
- package/dist/common/src/examples/react/component/test.js +36 -0
- package/dist/common/{lib → src/lib}/abstractBase.js +50 -52
- package/dist/common/{lib → src/lib}/basebuilder.js +18 -13
- package/dist/common/{lib → src/lib}/core.js +5 -43
- package/dist/common/{lib → src/lib}/index.js +1 -1
- package/dist/common/{run.js → src/run.js} +5 -5
- package/dist/common/{utils.js → src/utils.js} +35 -1
- package/dist/common/testeranto.config.js +41 -0
- package/dist/common/tsconfig.common.tsbuildinfo +1 -1
- package/dist/module/{Init.js → src/Init.js} +1 -32
- package/dist/module/src/Node.js +42 -0
- package/dist/module/src/PM/base.js +223 -0
- package/dist/module/{PM → src/PM}/main.js +301 -234
- package/dist/module/src/PM/node.js +154 -0
- package/dist/module/{PM/node.js → src/PM/pure.js} +25 -16
- package/dist/module/{PM → src/PM}/web.js +14 -47
- package/dist/module/{Project.js → src/Project.js} +6 -3
- package/dist/module/{Node.js → src/Pure.js} +9 -7
- package/dist/module/{ReportClient.js → src/ReportClient.js} +1 -1
- package/dist/module/{SubPackages/react/component/web.js → src/SubPackages/react/component/index.js} +3 -4
- package/dist/module/src/SubPackages/react/component/node.js +5 -0
- package/dist/module/src/SubPackages/react/component/pure.js +5 -0
- package/dist/module/{SubPackages/react/jsx → src/SubPackages/react/component}/web.js +3 -3
- package/dist/module/src/SubPackages/react/jsx/index.js +58 -0
- package/dist/module/{SubPackages → src/SubPackages}/react/jsx/node.js +1 -1
- package/dist/module/src/SubPackages/react/jsx/pure.js +5 -0
- package/dist/module/src/SubPackages/react/jsx/web.js +5 -0
- package/dist/module/{SubPackages/react-dom/component/web.js → src/SubPackages/react-dom/component/dynamic.js} +5 -13
- package/dist/module/src/SubPackages/react-dom/component/node.js +5 -0
- package/dist/module/src/SubPackages/react-dom/component/pure.js +5 -0
- package/dist/module/src/SubPackages/react-dom/component/static.js +22 -0
- package/dist/module/src/SubPackages/react-dom/component/web.js +11 -0
- package/dist/module/{SubPackages/react-dom/jsx/node.js → src/SubPackages/react-dom/jsx/dynamic.js} +3 -7
- package/dist/module/src/SubPackages/react-dom/jsx/node.js +5 -0
- package/dist/module/src/SubPackages/react-dom/jsx/pure.js +5 -0
- package/dist/module/src/SubPackages/react-dom/jsx/static.js +53 -0
- package/dist/module/src/SubPackages/react-dom/jsx/web.js +11 -0
- package/dist/module/src/SubPackages/react-test-renderer/component/index.js +14 -0
- package/dist/module/src/SubPackages/react-test-renderer/component/pure.js +3 -0
- package/dist/module/src/SubPackages/react-test-renderer/component/test/implementation.js +54 -0
- package/dist/module/src/SubPackages/react-test-renderer/component/test/node.js +5 -0
- package/dist/module/src/SubPackages/react-test-renderer/component/test/pure.js +5 -0
- package/dist/module/src/SubPackages/react-test-renderer/component/test/web.js +5 -0
- package/dist/module/src/SubPackages/react-test-renderer/jsx/pure.js +5 -0
- package/dist/module/{TestReport.js → src/TestReport.js} +19 -16
- package/dist/module/{Web.js → src/Web.js} +1 -4
- package/dist/module/{build.js → src/build.js} +37 -57
- package/dist/module/{defaultConfig.js → src/defaultConfig.js} +1 -3
- package/dist/module/{esbuildConfigs → src/esbuildConfigs}/node.js +5 -4
- package/dist/module/src/esbuildConfigs/pure.js +36 -0
- package/dist/module/{esbuildConfigs → src/esbuildConfigs}/web.js +5 -2
- package/dist/module/src/examples/react/component/index.js +26 -0
- package/dist/module/src/examples/react/component/test.js +32 -0
- package/dist/module/{lib → src/lib}/abstractBase.js +50 -52
- package/dist/module/{lib → src/lib}/basebuilder.js +18 -13
- package/dist/module/{lib → src/lib}/core.js +5 -43
- package/dist/module/{lib → src/lib}/index.js +1 -1
- package/dist/module/{run.js → src/run.js} +5 -5
- package/dist/module/src/utils.js +53 -0
- package/dist/module/testeranto.config.js +39 -0
- package/dist/module/tsconfig.module.tsbuildinfo +1 -1
- package/dist/prebuild/Project.js +5 -2
- package/dist/prebuild/ReportClient.js +1 -1
- package/dist/prebuild/TestReport.js +4 -1
- package/dist/prebuild/build.mjs +115 -65
- package/dist/prebuild/init-docs.mjs +1 -0
- package/dist/prebuild/run.mjs +418 -382
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/src/Node.d.ts +9 -0
- package/dist/types/src/PM/base.d.ts +34 -0
- package/dist/types/{PM → src/PM}/index.d.ts +21 -22
- package/dist/types/{PM → src/PM}/main.d.ts +15 -10
- package/dist/types/src/PM/node.d.ts +38 -0
- package/dist/types/{PM/node.d.ts → src/PM/pure.d.ts} +16 -17
- package/dist/types/{PM → src/PM}/web.d.ts +10 -15
- package/dist/types/src/Pure.d.ts +9 -0
- package/dist/types/src/SubPackages/react/component/index.d.ts +4 -0
- package/dist/types/src/SubPackages/react/component/node.d.ts +4 -0
- package/dist/types/src/SubPackages/react/component/pure.d.ts +4 -0
- package/dist/types/src/SubPackages/react/component/web.d.ts +4 -0
- package/dist/types/src/SubPackages/react/jsx/index.d.ts +5 -0
- package/dist/types/src/SubPackages/react/jsx/node.d.ts +4 -0
- package/dist/types/src/SubPackages/react/jsx/pure.d.ts +4 -0
- package/dist/types/src/SubPackages/react/jsx/web.d.ts +4 -0
- package/dist/types/src/SubPackages/react-dom/component/dynamic.d.ts +20 -0
- package/dist/types/src/SubPackages/react-dom/component/node.d.ts +4 -0
- package/dist/types/src/SubPackages/react-dom/component/pure.d.ts +4 -0
- package/dist/types/src/SubPackages/react-dom/component/static.d.ts +9 -0
- package/dist/types/src/SubPackages/react-dom/component/web.d.ts +4 -0
- package/dist/types/src/SubPackages/react-dom/jsx/dynamic.d.ts +5 -0
- package/dist/types/src/SubPackages/react-dom/jsx/node.d.ts +4 -0
- package/dist/types/src/SubPackages/react-dom/jsx/pure.d.ts +4 -0
- package/dist/types/src/SubPackages/react-dom/jsx/static.d.ts +5 -0
- package/dist/types/src/SubPackages/react-dom/jsx/web.d.ts +5 -0
- package/dist/types/{SubPackages → src/SubPackages}/react-test-renderer/MemoExoticComponent/node.d.ts +1 -1
- package/dist/types/src/SubPackages/react-test-renderer/component/index.d.ts +5 -0
- package/dist/types/src/SubPackages/react-test-renderer/component/interface.d.ts +3 -0
- package/dist/types/src/SubPackages/react-test-renderer/component/node.d.ts +4 -0
- package/dist/types/src/SubPackages/react-test-renderer/component/pure.d.ts +4 -0
- package/dist/types/src/SubPackages/react-test-renderer/component/test/implementation.d.ts +4 -0
- package/dist/types/src/SubPackages/react-test-renderer/component/test/node.d.ts +3 -0
- package/dist/types/src/SubPackages/react-test-renderer/component/test/pure.d.ts +4 -0
- package/dist/types/src/SubPackages/react-test-renderer/component/test/web.d.ts +3 -0
- package/dist/types/src/SubPackages/react-test-renderer/component/web.d.ts +4 -0
- package/dist/types/{SubPackages → src/SubPackages}/react-test-renderer/fc/node.d.ts +1 -1
- package/dist/types/{SubPackages → src/SubPackages}/react-test-renderer/fc/web.d.ts +1 -1
- package/dist/types/src/SubPackages/react-test-renderer/jsx/index.d.ts +11 -0
- package/dist/types/src/SubPackages/react-test-renderer/jsx/node.d.ts +4 -0
- package/dist/types/src/SubPackages/react-test-renderer/jsx/pure.d.ts +4 -0
- package/dist/types/src/SubPackages/react-test-renderer/jsx/web.d.ts +4 -0
- package/dist/types/{SubPackages → src/SubPackages}/react-test-renderer/jsx-promised/node.d.ts +1 -1
- package/dist/types/{SubPackages → src/SubPackages}/react-test-renderer/jsx-promised/web.d.ts +1 -1
- package/dist/types/src/Types.d.ts +88 -0
- package/dist/types/src/Web.d.ts +9 -0
- package/dist/types/src/defaultConfig.d.ts +3 -0
- package/dist/types/src/esbuildConfigs/index.d.ts +4 -0
- package/dist/types/{esbuildConfigs → src/esbuildConfigs}/inputFilesPlugin.d.ts +2 -1
- package/dist/types/src/esbuildConfigs/node.d.ts +4 -0
- package/dist/types/src/esbuildConfigs/pure.d.ts +4 -0
- package/dist/types/src/esbuildConfigs/web.d.ts +4 -0
- package/dist/types/src/examples/react/component/index.d.ts +13 -0
- package/dist/types/src/examples/react/component/test.d.ts +17 -0
- package/dist/types/{lib → src/lib}/abstractBase.d.ts +35 -30
- package/dist/types/{lib → src/lib}/basebuilder.d.ts +7 -8
- package/dist/types/src/lib/classBuilder.d.ts +9 -0
- package/dist/types/src/lib/core.d.ts +7 -0
- package/dist/types/{lib → src/lib}/index.d.ts +14 -36
- package/dist/types/src/lib/types.d.ts +15 -0
- package/dist/types/src/utils.d.ts +18 -0
- package/dist/types/testeranto.config.d.ts +3 -0
- package/dist/types/tsconfig.types.tsbuildinfo +1 -1
- package/eslint.config.mjs +111 -0
- package/package.json +28 -8
- package/src/Init.ts +1 -39
- package/src/Node.ts +42 -46
- package/src/PM/base.ts +179 -181
- package/src/PM/index.ts +28 -21
- package/src/PM/main.ts +359 -318
- package/src/PM/node.ts +88 -44
- package/src/PM/pure.ts +209 -0
- package/src/PM/web.ts +19 -121
- package/src/Project.tsx +8 -5
- package/src/Pure.ts +69 -0
- package/src/ReportClient.tsx +8 -3
- package/src/SubPackages/react/component/index.ts +28 -0
- package/src/SubPackages/react/component/node.ts +12 -82
- package/src/SubPackages/react/component/pure.ts +17 -0
- package/src/SubPackages/react/component/web.ts +12 -81
- package/src/SubPackages/react/jsx/index.ts +56 -52
- package/src/SubPackages/react/jsx/node.ts +12 -29
- package/src/SubPackages/react/jsx/pure.ts +23 -0
- package/src/SubPackages/react/jsx/web.ts +17 -36
- package/src/SubPackages/react-dom/component/dynamic.ts +107 -0
- package/src/SubPackages/react-dom/component/node.ts +11 -116
- package/src/SubPackages/react-dom/component/pure.ts +17 -0
- package/src/SubPackages/react-dom/component/static.ts +41 -0
- package/src/SubPackages/react-dom/component/web.ts +7 -113
- package/src/SubPackages/react-dom/jsx/dynamic.ts +46 -0
- package/src/SubPackages/react-dom/jsx/node.ts +10 -58
- package/src/SubPackages/react-dom/jsx/pure.ts +18 -0
- package/src/SubPackages/react-dom/jsx/static.ts +87 -0
- package/src/SubPackages/react-dom/jsx/web.ts +7 -135
- package/src/SubPackages/react-test-renderer/component/index.ts +27 -51
- package/src/SubPackages/react-test-renderer/component/interface.ts +7 -5
- package/src/SubPackages/react-test-renderer/component/node.ts +7 -25
- package/src/SubPackages/react-test-renderer/component/pure.ts +18 -0
- package/src/SubPackages/react-test-renderer/component/test/implementation.ts +63 -0
- package/src/SubPackages/react-test-renderer/component/test/node.ts +14 -0
- package/src/SubPackages/react-test-renderer/component/test/pure.ts +14 -0
- package/src/SubPackages/react-test-renderer/component/test/web.ts +14 -0
- package/src/SubPackages/react-test-renderer/component/web.ts +7 -23
- package/src/SubPackages/react-test-renderer/jsx/index.ts +13 -46
- package/src/SubPackages/react-test-renderer/jsx/node.ts +9 -15
- package/src/SubPackages/react-test-renderer/jsx/pure.ts +31 -0
- package/src/SubPackages/react-test-renderer/jsx/web.ts +9 -14
- package/src/TestReport.tsx +7 -4
- package/src/Types.ts +114 -140
- package/src/Web.ts +13 -48
- package/src/build.ts +52 -78
- package/src/defaultConfig.ts +3 -5
- package/src/esbuildConfigs/index.ts +2 -2
- package/src/esbuildConfigs/inputFilesPlugin.ts +2 -1
- package/src/esbuildConfigs/node.ts +7 -5
- package/src/esbuildConfigs/pure.ts +72 -0
- package/src/esbuildConfigs/web.ts +8 -5
- package/src/examples/react/component/index.tsx +35 -0
- package/src/examples/react/component/test.ts +83 -0
- package/src/lib/abstractBase.ts +100 -192
- package/src/lib/basebuilder.ts +40 -40
- package/src/lib/classBuilder.ts +18 -26
- package/src/lib/core.ts +22 -77
- package/src/lib/index.ts +31 -66
- package/src/lib/types.ts +20 -90
- package/src/run.ts +3 -6
- package/src/utils.ts +50 -5
- package/testeranto/Project.css +11367 -0
- package/testeranto/Project.js +24643 -0
- package/testeranto/ReportClient.css +11367 -0
- package/testeranto/ReportClient.js +24641 -0
- package/testeranto/TestReport.css +11367 -0
- package/testeranto/TestReport.js +27485 -0
- package/testeranto/bundles/node/react/metafile.json +627 -0
- package/testeranto/bundles/node/react/src/SubPackages/react-test-renderer/component/test/node.mjs +24687 -0
- package/testeranto/bundles/pure/react/metafile.json +8 -0
- package/testeranto/bundles/pure/react/src/SubPackages/react-test-renderer/component/test/pure.mjs +24625 -0
- package/testeranto/bundles/web/react/metafile.json +8 -0
- package/testeranto/bundles/web/react/src/SubPackages/react-test-renderer/component/test/web.html +19 -0
- package/testeranto/bundles/web/react/src/SubPackages/react-test-renderer/component/test/web.mjs +21290 -0
- package/testeranto/index.html +28 -0
- package/testeranto/reports/react/config.json +22 -0
- package/testeranto/reports/react/index.html +24 -0
- package/testeranto/reports/react/src/SubPackages/react-test-renderer/component/test/node/node/console_log.txt +0 -0
- package/testeranto/reports/react/src/SubPackages/react-test-renderer/component/test/pure/pure/bdd_errors.txt +1 -0
- package/testeranto/reports/react/src/SubPackages/react-test-renderer/component/test/pure/pure/featurePrompt.txt +0 -0
- package/testeranto/reports/react/src/SubPackages/react-test-renderer/component/test/pure/pure/lint_errors.json +3381 -0
- package/testeranto/reports/react/src/SubPackages/react-test-renderer/component/test/pure/pure/littleBoard.html +20 -0
- package/testeranto/reports/react/src/SubPackages/react-test-renderer/component/test/pure/pure/log.txt +40 -0
- package/testeranto/reports/react/src/SubPackages/react-test-renderer/component/test/pure/pure/prompt.txt +24 -0
- package/testeranto/reports/react/src/SubPackages/react-test-renderer/component/test/pure/pure/tests.json +132 -0
- package/testeranto/reports/react/src/SubPackages/react-test-renderer/component/test/pure/pure/type_errors.txt +17 -0
- package/testeranto/reports/react/src/SubPackages/react-test-renderer/component/test/web/web/bdd_errors.txt +1 -0
- package/testeranto/reports/react/src/SubPackages/react-test-renderer/component/test/web/web/console_log.txt +1 -0
- package/testeranto/reports/react/src/SubPackages/react-test-renderer/component/test/web/web/lint_errors.json +2947 -0
- package/testeranto/reports/react/src/SubPackages/react-test-renderer/component/test/web/web/littleBoard.html +20 -0
- package/testeranto/reports/react/src/SubPackages/react-test-renderer/component/test/web/web/log.txt +40 -0
- package/testeranto/reports/react/src/SubPackages/react-test-renderer/component/test/web/web/prompt.txt +23 -0
- package/testeranto/reports/react/src/SubPackages/react-test-renderer/component/test/web/web/tests.json +132 -0
- package/testeranto/reports/react/src/SubPackages/react-test-renderer/component/test/web/web/type_errors.txt +18 -0
- package/testeranto/reports/react/summary.json +8 -0
- package/testeranto.config.ts +45 -0
- package/tsc.log +52 -64
- package/type-fix.txt +2 -0
- package/dist/common/PM/base.js +0 -233
- package/dist/common/SubPackages/react/component/node.js +0 -19
- package/dist/common/SubPackages/react/jsx/index.js +0 -21
- package/dist/common/SubPackages/react-dom/component/node.js +0 -88
- package/dist/common/SubPackages/react-dom/jsx/node.js +0 -39
- package/dist/common/SubPackages/react-dom/jsx/web.js +0 -128
- package/dist/common/SubPackages/react-test-renderer/component/index.js +0 -2
- package/dist/module/PM/base.js +0 -226
- package/dist/module/SubPackages/react/component/node.js +0 -14
- package/dist/module/SubPackages/react/jsx/index.js +0 -15
- package/dist/module/SubPackages/react-dom/component/node.js +0 -80
- package/dist/module/SubPackages/react-dom/jsx/web.js +0 -90
- package/dist/module/SubPackages/react-test-renderer/component/index.js +0 -1
- package/dist/module/utils.js +0 -20
- package/dist/types/Node.d.ts +0 -12
- package/dist/types/PM/base.d.ts +0 -38
- package/dist/types/SubPackages/react/component/node.d.ts +0 -7
- package/dist/types/SubPackages/react/component/web.d.ts +0 -7
- package/dist/types/SubPackages/react/jsx/index.d.ts +0 -12
- package/dist/types/SubPackages/react/jsx/node.d.ts +0 -4
- package/dist/types/SubPackages/react/jsx/web.d.ts +0 -4
- package/dist/types/SubPackages/react-dom/component/node.d.ts +0 -11
- package/dist/types/SubPackages/react-dom/component/web.d.ts +0 -20
- package/dist/types/SubPackages/react-dom/jsx/node.d.ts +0 -7
- package/dist/types/SubPackages/react-dom/jsx/web.d.ts +0 -5
- package/dist/types/SubPackages/react-test-renderer/component/index.d.ts +0 -13
- package/dist/types/SubPackages/react-test-renderer/component/interface.d.ts +0 -9
- package/dist/types/SubPackages/react-test-renderer/component/node.d.ts +0 -4
- package/dist/types/SubPackages/react-test-renderer/component/web.d.ts +0 -4
- package/dist/types/SubPackages/react-test-renderer/jsx/index.d.ts +0 -16
- package/dist/types/SubPackages/react-test-renderer/jsx/node.d.ts +0 -9
- package/dist/types/SubPackages/react-test-renderer/jsx/web.d.ts +0 -9
- package/dist/types/Types.d.ts +0 -61
- package/dist/types/Web.d.ts +0 -9
- package/dist/types/defaultConfig.d.ts +0 -3
- package/dist/types/esbuildConfigs/index.d.ts +0 -4
- package/dist/types/esbuildConfigs/node.d.ts +0 -4
- package/dist/types/esbuildConfigs/web.d.ts +0 -4
- package/dist/types/lib/classBuilder.d.ts +0 -7
- package/dist/types/lib/core.d.ts +0 -7
- package/dist/types/lib/types.d.ts +0 -11
- package/dist/types/utils.d.ts +0 -12
- /package/dist/common/{PM → src/PM}/index.js +0 -0
- /package/dist/common/{ReportServer.js → src/ReportServer.js} +0 -0
- /package/dist/common/{SubPackages → src/SubPackages}/react/jsx/node.js +0 -0
- /package/dist/common/{SubPackages → src/SubPackages}/react-dom/jsx/index.js +0 -0
- /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/MemoExoticComponent/node.js +0 -0
- /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/component/interface.js +0 -0
- /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/component/node.js +0 -0
- /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/component/web.js +0 -0
- /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/fc/node.js +0 -0
- /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/fc/web.js +0 -0
- /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/jsx/index.js +0 -0
- /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/jsx/node.js +0 -0
- /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/jsx/web.js +0 -0
- /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/jsx-promised/index.js +0 -0
- /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/jsx-promised/node.js +0 -0
- /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/jsx-promised/web.js +0 -0
- /package/dist/common/{Types.js → src/Types.js} +0 -0
- /package/dist/common/{esbuildConfigs → src/esbuildConfigs}/eslint-formatter-testeranto.js +0 -0
- /package/dist/common/{esbuildConfigs → src/esbuildConfigs}/featuresPlugin.js +0 -0
- /package/dist/common/{esbuildConfigs → src/esbuildConfigs}/index.js +0 -0
- /package/dist/common/{esbuildConfigs → src/esbuildConfigs}/inputFilesPlugin.js +0 -0
- /package/dist/common/{init-docs.js → src/init-docs.js} +0 -0
- /package/dist/common/{lib → src/lib}/classBuilder.js +0 -0
- /package/dist/common/{lib → src/lib}/types.js +0 -0
- /package/dist/common/{web.html.js → src/web.html.js} +0 -0
- /package/dist/module/{Footer.js → src/Footer.js} +0 -0
- /package/dist/module/{PM → src/PM}/index.js +0 -0
- /package/dist/module/{ReportServer.js → src/ReportServer.js} +0 -0
- /package/dist/module/{SubPackages → src/SubPackages}/react-dom/jsx/index.js +0 -0
- /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/MemoExoticComponent/node.js +0 -0
- /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/component/interface.js +0 -0
- /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/component/node.js +0 -0
- /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/component/web.js +0 -0
- /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/fc/node.js +0 -0
- /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/fc/web.js +0 -0
- /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/jsx/index.js +0 -0
- /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/jsx/node.js +0 -0
- /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/jsx/web.js +0 -0
- /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/jsx-promised/index.js +0 -0
- /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/jsx-promised/node.js +0 -0
- /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/jsx-promised/web.js +0 -0
- /package/dist/module/{Types.js → src/Types.js} +0 -0
- /package/dist/module/{esbuildConfigs → src/esbuildConfigs}/eslint-formatter-testeranto.js +0 -0
- /package/dist/module/{esbuildConfigs → src/esbuildConfigs}/featuresPlugin.js +0 -0
- /package/dist/module/{esbuildConfigs → src/esbuildConfigs}/index.js +0 -0
- /package/dist/module/{esbuildConfigs → src/esbuildConfigs}/inputFilesPlugin.js +0 -0
- /package/dist/module/{init-docs.js → src/init-docs.js} +0 -0
- /package/dist/module/{lib → src/lib}/classBuilder.js +0 -0
- /package/dist/module/{lib → src/lib}/types.js +0 -0
- /package/dist/module/{web.html.js → src/web.html.js} +0 -0
- /package/dist/types/{Init.d.ts → src/Init.d.ts} +0 -0
- /package/dist/types/{ReportServer.d.ts → src/ReportServer.d.ts} +0 -0
- /package/dist/types/{SubPackages → src/SubPackages}/react-dom/jsx/index.d.ts +0 -0
- /package/dist/types/{SubPackages → src/SubPackages}/react-test-renderer/jsx-promised/index.d.ts +0 -0
- /package/dist/types/{build.d.ts → src/build.d.ts} +0 -0
- /package/dist/types/{esbuildConfigs → src/esbuildConfigs}/eslint-formatter-testeranto.d.ts +0 -0
- /package/dist/types/{esbuildConfigs → src/esbuildConfigs}/featuresPlugin.d.ts +0 -0
- /package/dist/types/{init-docs.d.ts → src/init-docs.d.ts} +0 -0
- /package/dist/types/{run.d.ts → src/run.d.ts} +0 -0
- /package/dist/types/{web.html.d.ts → src/web.html.d.ts} +0 -0
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
import net from "net";
|
|
2
|
+
import fs from "fs";
|
|
3
|
+
import path from "path";
|
|
4
|
+
import { PM } from ".";
|
|
5
|
+
const fPaths = [];
|
|
6
|
+
export class PM_Node extends PM {
|
|
7
|
+
constructor(t) {
|
|
8
|
+
super();
|
|
9
|
+
this.testResourceConfiguration = t;
|
|
10
|
+
}
|
|
11
|
+
start() {
|
|
12
|
+
return new Promise((res) => {
|
|
13
|
+
process.on("message", (message) => {
|
|
14
|
+
if (message.path) {
|
|
15
|
+
this.client = net.createConnection(message.path, () => {
|
|
16
|
+
res();
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
stop() {
|
|
23
|
+
throw new Error("Method not implemented.");
|
|
24
|
+
}
|
|
25
|
+
send(command, ...argz) {
|
|
26
|
+
return new Promise((res) => {
|
|
27
|
+
const key = Math.random().toString();
|
|
28
|
+
const myListener = (event) => {
|
|
29
|
+
const x = JSON.parse(event);
|
|
30
|
+
if (x.key === key) {
|
|
31
|
+
process.removeListener("message", myListener);
|
|
32
|
+
res(x.payload);
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
process.addListener("message", myListener);
|
|
36
|
+
this.client.write(JSON.stringify([command, ...argz, key]));
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
async pages() {
|
|
40
|
+
return this.send("pages", ...arguments);
|
|
41
|
+
}
|
|
42
|
+
waitForSelector(p, s) {
|
|
43
|
+
return this.send("waitForSelector", ...arguments);
|
|
44
|
+
}
|
|
45
|
+
closePage(p) {
|
|
46
|
+
return this.send("closePage", ...arguments);
|
|
47
|
+
// return globalThis["closePage"](p);
|
|
48
|
+
}
|
|
49
|
+
goto(page, url) {
|
|
50
|
+
return this.send("goto", ...arguments);
|
|
51
|
+
// return globalThis["goto"](cdpPage.mainFrame()._id, url);
|
|
52
|
+
}
|
|
53
|
+
async newPage() {
|
|
54
|
+
return this.send("newPage");
|
|
55
|
+
}
|
|
56
|
+
$(selector) {
|
|
57
|
+
return this.send("$", ...arguments);
|
|
58
|
+
}
|
|
59
|
+
isDisabled(selector) {
|
|
60
|
+
return this.send("isDisabled", ...arguments);
|
|
61
|
+
}
|
|
62
|
+
getAttribute(selector, attribute) {
|
|
63
|
+
return this.send("getAttribute", ...arguments);
|
|
64
|
+
}
|
|
65
|
+
getValue(selector) {
|
|
66
|
+
return this.send("getValue", ...arguments);
|
|
67
|
+
}
|
|
68
|
+
focusOn(selector) {
|
|
69
|
+
return this.send("focusOn", ...arguments);
|
|
70
|
+
}
|
|
71
|
+
typeInto(selector) {
|
|
72
|
+
return this.send("typeInto", ...arguments);
|
|
73
|
+
}
|
|
74
|
+
page() {
|
|
75
|
+
return this.send("page");
|
|
76
|
+
}
|
|
77
|
+
click(selector) {
|
|
78
|
+
return this.send("click", ...arguments);
|
|
79
|
+
}
|
|
80
|
+
screencast(opts, page) {
|
|
81
|
+
return this.send("screencast", Object.assign(Object.assign({}, opts), { path: this.testResourceConfiguration.fs + "/" + opts.path }), page, this.testResourceConfiguration.name);
|
|
82
|
+
}
|
|
83
|
+
screencastStop(p) {
|
|
84
|
+
return this.send("screencastStop", ...arguments);
|
|
85
|
+
}
|
|
86
|
+
customScreenShot(opts, page) {
|
|
87
|
+
return this.send("customScreenShot", Object.assign(Object.assign({}, opts), { path: this.testResourceConfiguration.fs + "/" + opts.path }), page, this.testResourceConfiguration.name);
|
|
88
|
+
}
|
|
89
|
+
async existsSync(destFolder) {
|
|
90
|
+
return await this.send("existsSync", this.testResourceConfiguration.fs + "/" + destFolder);
|
|
91
|
+
}
|
|
92
|
+
mkdirSync() {
|
|
93
|
+
return this.send("mkdirSync", this.testResourceConfiguration.fs + "/");
|
|
94
|
+
}
|
|
95
|
+
async write(uid, contents) {
|
|
96
|
+
return await this.send("write", ...arguments);
|
|
97
|
+
}
|
|
98
|
+
async writeFileSync(filepath, contents) {
|
|
99
|
+
return await this.send("writeFileSync", this.testResourceConfiguration.fs + "/" + filepath, contents, this.testResourceConfiguration.name);
|
|
100
|
+
}
|
|
101
|
+
async createWriteStream(filepath) {
|
|
102
|
+
return await this.send("createWriteStream", this.testResourceConfiguration.fs + "/" + filepath, this.testResourceConfiguration.name);
|
|
103
|
+
}
|
|
104
|
+
async end(uid) {
|
|
105
|
+
return await this.send("end", ...arguments);
|
|
106
|
+
}
|
|
107
|
+
async customclose() {
|
|
108
|
+
return await this.send("customclose", this.testResourceConfiguration.fs, this.testResourceConfiguration.name);
|
|
109
|
+
}
|
|
110
|
+
testArtiFactoryfileWriter(tLog, callback) {
|
|
111
|
+
return (fPath, value) => {
|
|
112
|
+
callback(new Promise((res, rej) => {
|
|
113
|
+
tLog("testArtiFactory =>", fPath);
|
|
114
|
+
const cleanPath = path.resolve(fPath);
|
|
115
|
+
fPaths.push(cleanPath.replace(process.cwd(), ``));
|
|
116
|
+
const targetDir = cleanPath.split("/").slice(0, -1).join("/");
|
|
117
|
+
fs.mkdir(targetDir, { recursive: true }, async (error) => {
|
|
118
|
+
if (error) {
|
|
119
|
+
console.error(`❗️testArtiFactory failed`, targetDir, error);
|
|
120
|
+
}
|
|
121
|
+
fs.writeFileSync(path.resolve(targetDir.split("/").slice(0, -1).join("/"), "manifest"), fPaths.join(`\n`), {
|
|
122
|
+
encoding: "utf-8",
|
|
123
|
+
});
|
|
124
|
+
if (Buffer.isBuffer(value)) {
|
|
125
|
+
fs.writeFileSync(fPath, value, "binary");
|
|
126
|
+
res();
|
|
127
|
+
}
|
|
128
|
+
else if (`string` === typeof value) {
|
|
129
|
+
fs.writeFileSync(fPath, value.toString(), {
|
|
130
|
+
encoding: "utf-8",
|
|
131
|
+
});
|
|
132
|
+
res();
|
|
133
|
+
}
|
|
134
|
+
else {
|
|
135
|
+
/* @ts-ignore:next-line */
|
|
136
|
+
const pipeStream = value;
|
|
137
|
+
const myFile = fs.createWriteStream(fPath);
|
|
138
|
+
pipeStream.pipe(myFile);
|
|
139
|
+
pipeStream.on("close", () => {
|
|
140
|
+
myFile.close();
|
|
141
|
+
res();
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
});
|
|
145
|
+
}));
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
// launch(options?: PuppeteerLaunchOptions): Promise<Browser>;
|
|
149
|
+
startPuppeteer(options) {
|
|
150
|
+
// return puppeteer.connect(options).then((b) => {
|
|
151
|
+
// this.browser = b;
|
|
152
|
+
// });
|
|
153
|
+
}
|
|
154
|
+
}
|
|
@@ -1,13 +1,22 @@
|
|
|
1
1
|
import fs from "fs";
|
|
2
2
|
import path from "path";
|
|
3
|
-
import { PM } from "
|
|
3
|
+
import { PM } from ".";
|
|
4
4
|
const fPaths = [];
|
|
5
|
-
export class
|
|
5
|
+
export class PM_Pure extends PM {
|
|
6
6
|
constructor(t) {
|
|
7
7
|
super();
|
|
8
8
|
this.server = {};
|
|
9
9
|
this.testResourceConfiguration = t;
|
|
10
10
|
}
|
|
11
|
+
start() {
|
|
12
|
+
return new Promise((r) => r());
|
|
13
|
+
}
|
|
14
|
+
stop() {
|
|
15
|
+
return new Promise((r) => r());
|
|
16
|
+
}
|
|
17
|
+
pages() {
|
|
18
|
+
return globalThis["pages"]();
|
|
19
|
+
}
|
|
11
20
|
waitForSelector(p, s) {
|
|
12
21
|
return globalThis["waitForSelector"](p, s);
|
|
13
22
|
}
|
|
@@ -21,22 +30,22 @@ export class PM_Node extends PM {
|
|
|
21
30
|
return globalThis["newPage"]();
|
|
22
31
|
}
|
|
23
32
|
$(selector) {
|
|
24
|
-
|
|
33
|
+
return globalThis["$"](selector);
|
|
25
34
|
}
|
|
26
35
|
isDisabled(selector) {
|
|
27
|
-
|
|
36
|
+
return globalThis["isDisabled"](selector);
|
|
28
37
|
}
|
|
29
38
|
getAttribute(selector, attribute) {
|
|
30
|
-
|
|
39
|
+
return globalThis["getAttribute"](selector, attribute);
|
|
31
40
|
}
|
|
32
41
|
getValue(selector) {
|
|
33
|
-
|
|
42
|
+
return globalThis["getValue"](selector);
|
|
34
43
|
}
|
|
35
44
|
focusOn(selector) {
|
|
36
|
-
|
|
45
|
+
return globalThis["focusOn"](selector);
|
|
37
46
|
}
|
|
38
|
-
typeInto(value) {
|
|
39
|
-
|
|
47
|
+
typeInto(selector, value) {
|
|
48
|
+
return globalThis["typeInto"](selector, value);
|
|
40
49
|
}
|
|
41
50
|
page() {
|
|
42
51
|
return globalThis["page"]();
|
|
@@ -45,13 +54,13 @@ export class PM_Node extends PM {
|
|
|
45
54
|
return globalThis["click"](selector);
|
|
46
55
|
}
|
|
47
56
|
screencast(opts, page) {
|
|
48
|
-
return globalThis["screencast"](Object.assign(Object.assign({}, opts), { path: this.testResourceConfiguration.fs + "/" + opts.path }), page
|
|
57
|
+
return globalThis["screencast"](Object.assign(Object.assign({}, opts), { path: this.testResourceConfiguration.fs + "/" + opts.path }), page, this.testResourceConfiguration.name);
|
|
49
58
|
}
|
|
50
59
|
screencastStop(p) {
|
|
51
60
|
return globalThis["screencastStop"](p);
|
|
52
61
|
}
|
|
53
|
-
customScreenShot(opts,
|
|
54
|
-
return globalThis["customScreenShot"](Object.assign(Object.assign({}, opts), { path: this.testResourceConfiguration.fs + "/" + opts.path }),
|
|
62
|
+
customScreenShot(opts, page) {
|
|
63
|
+
return globalThis["customScreenShot"](Object.assign(Object.assign({}, opts), { path: this.testResourceConfiguration.fs + "/" + opts.path }), page, this.testResourceConfiguration.name);
|
|
55
64
|
}
|
|
56
65
|
existsSync(destFolder) {
|
|
57
66
|
return globalThis["existsSync"](this.testResourceConfiguration.fs + "/" + destFolder);
|
|
@@ -59,8 +68,8 @@ export class PM_Node extends PM {
|
|
|
59
68
|
mkdirSync() {
|
|
60
69
|
return globalThis["mkdirSync"](this.testResourceConfiguration.fs + "/");
|
|
61
70
|
}
|
|
62
|
-
write(
|
|
63
|
-
return globalThis["write"](
|
|
71
|
+
write(uid, contents) {
|
|
72
|
+
return globalThis["write"](uid, contents);
|
|
64
73
|
}
|
|
65
74
|
writeFileSync(filepath, contents) {
|
|
66
75
|
return globalThis["writeFileSync"](this.testResourceConfiguration.fs + "/" + filepath, contents, this.testResourceConfiguration.name);
|
|
@@ -68,8 +77,8 @@ export class PM_Node extends PM {
|
|
|
68
77
|
createWriteStream(filepath) {
|
|
69
78
|
return globalThis["createWriteStream"](this.testResourceConfiguration.fs + "/" + filepath, this.testResourceConfiguration.name);
|
|
70
79
|
}
|
|
71
|
-
end(
|
|
72
|
-
return globalThis["end"](
|
|
80
|
+
end(uid) {
|
|
81
|
+
return globalThis["end"](uid);
|
|
73
82
|
}
|
|
74
83
|
customclose() {
|
|
75
84
|
globalThis["customclose"](this.testResourceConfiguration.fs, this.testResourceConfiguration.name);
|
|
@@ -1,15 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
export class PM_Web extends PM {
|
|
1
|
+
export class PM_Web {
|
|
3
2
|
constructor(t) {
|
|
4
|
-
super();
|
|
5
|
-
this.server = {};
|
|
6
3
|
this.testResourceConfiguration = t;
|
|
7
4
|
}
|
|
5
|
+
start() {
|
|
6
|
+
return new Promise((r) => r());
|
|
7
|
+
}
|
|
8
|
+
stop() {
|
|
9
|
+
return new Promise((r) => r());
|
|
10
|
+
}
|
|
8
11
|
waitForSelector(p, s) {
|
|
9
12
|
return window["waitForSelector"](p, s);
|
|
10
13
|
}
|
|
11
|
-
screencast(opts) {
|
|
12
|
-
return window["screencast"](Object.assign(Object.assign({}, opts), { path: this.testResourceConfiguration.fs + "/" + opts.path }), this.testResourceConfiguration.name);
|
|
14
|
+
screencast(opts, page) {
|
|
15
|
+
return window["screencast"](Object.assign(Object.assign({}, opts), { path: this.testResourceConfiguration.fs + "/" + opts.path }), page.mainFrame()._id, this.testResourceConfiguration.name);
|
|
13
16
|
}
|
|
14
17
|
screencastStop(recorder) {
|
|
15
18
|
return window["screencastStop"](recorder);
|
|
@@ -47,7 +50,7 @@ export class PM_Web extends PM {
|
|
|
47
50
|
click(selector) {
|
|
48
51
|
return window["click"](selector);
|
|
49
52
|
}
|
|
50
|
-
customScreenShot(opts) {
|
|
53
|
+
customScreenShot(opts, page) {
|
|
51
54
|
return window["customScreenShot"](Object.assign(Object.assign({}, opts), { path: this.testResourceConfiguration.fs + "/" + opts.path }), this.testResourceConfiguration.name);
|
|
52
55
|
}
|
|
53
56
|
existsSync(destFolder) {
|
|
@@ -56,8 +59,8 @@ export class PM_Web extends PM {
|
|
|
56
59
|
mkdirSync(x) {
|
|
57
60
|
return window["mkdirSync"](this.testResourceConfiguration.fs + "/");
|
|
58
61
|
}
|
|
59
|
-
write(
|
|
60
|
-
return window["write"](
|
|
62
|
+
write(uid, contents) {
|
|
63
|
+
return window["write"](uid, contents);
|
|
61
64
|
}
|
|
62
65
|
writeFileSync(filepath, contents) {
|
|
63
66
|
return window["writeFileSync"](this.testResourceConfiguration.fs + "/" + filepath, contents, this.testResourceConfiguration.name);
|
|
@@ -65,8 +68,8 @@ export class PM_Web extends PM {
|
|
|
65
68
|
createWriteStream(filepath) {
|
|
66
69
|
return window["createWriteStream"](this.testResourceConfiguration.fs + "/" + filepath, this.testResourceConfiguration.name);
|
|
67
70
|
}
|
|
68
|
-
end(
|
|
69
|
-
return window["end"](
|
|
71
|
+
end(uid) {
|
|
72
|
+
return window["end"](uid);
|
|
70
73
|
}
|
|
71
74
|
customclose() {
|
|
72
75
|
window["customclose"](this.testResourceConfiguration.fs, this.testResourceConfiguration.name);
|
|
@@ -75,42 +78,6 @@ export class PM_Web extends PM {
|
|
|
75
78
|
return (fPath, value) => {
|
|
76
79
|
callback(new Promise((res, rej) => {
|
|
77
80
|
tLog("testArtiFactory =>", fPath);
|
|
78
|
-
// const cleanPath = path.resolve(fPath);
|
|
79
|
-
// fPaths.push(cleanPath.replace(process.cwd(), ``));
|
|
80
|
-
// const targetDir = cleanPath.split("/").slice(0, -1).join("/");
|
|
81
|
-
// fs.mkdir(targetDir, { recursive: true }, async (error) => {
|
|
82
|
-
// if (error) {
|
|
83
|
-
// console.error(`❗️testArtiFactory failed`, targetDir, error);
|
|
84
|
-
// }
|
|
85
|
-
// fs.writeFileSync(
|
|
86
|
-
// path.resolve(
|
|
87
|
-
// targetDir.split("/").slice(0, -1).join("/"),
|
|
88
|
-
// "manifest"
|
|
89
|
-
// ),
|
|
90
|
-
// fPaths.join(`\n`),
|
|
91
|
-
// {
|
|
92
|
-
// encoding: "utf-8",
|
|
93
|
-
// }
|
|
94
|
-
// );
|
|
95
|
-
// if (Buffer.isBuffer(value)) {
|
|
96
|
-
// fs.writeFileSync(fPath, value, "binary");
|
|
97
|
-
// res();
|
|
98
|
-
// } else if (`string` === typeof value) {
|
|
99
|
-
// fs.writeFileSync(fPath, value.toString(), {
|
|
100
|
-
// encoding: "utf-8",
|
|
101
|
-
// });
|
|
102
|
-
// res();
|
|
103
|
-
// } else {
|
|
104
|
-
// /* @ts-ignore:next-line */
|
|
105
|
-
// const pipeStream: PassThrough = value;
|
|
106
|
-
// const myFile = fs.createWriteStream(fPath);
|
|
107
|
-
// pipeStream.pipe(myFile);
|
|
108
|
-
// pipeStream.on("close", () => {
|
|
109
|
-
// myFile.close();
|
|
110
|
-
// res();
|
|
111
|
-
// });
|
|
112
|
-
// }
|
|
113
|
-
// });
|
|
114
81
|
}));
|
|
115
82
|
};
|
|
116
83
|
}
|
|
@@ -5,7 +5,10 @@ import "./style.css";
|
|
|
5
5
|
import { Footer } from "./Footer";
|
|
6
6
|
import { Table } from "react-bootstrap";
|
|
7
7
|
const BigBoard = () => {
|
|
8
|
-
const
|
|
8
|
+
const bigConfigElement = document.getElementById('bigConfig');
|
|
9
|
+
if (!bigConfigElement)
|
|
10
|
+
throw new Error('bigConfig element not found');
|
|
11
|
+
const projects = JSON.parse(bigConfigElement.innerHTML);
|
|
9
12
|
// const projects = Object.keys(bigConfig.projects);
|
|
10
13
|
// const [configs, setConfigs] = useState<IBuiltConfig>();
|
|
11
14
|
// useEffect(() => {
|
|
@@ -99,7 +102,7 @@ const BigBoard = () => {
|
|
|
99
102
|
React.createElement("td", null,
|
|
100
103
|
React.createElement("a", { href: `/kokomoBay/testeranto/reports/${x}/littleBoard.html` }, y.runTimeError)),
|
|
101
104
|
React.createElement("td", null,
|
|
102
|
-
React.createElement("a", { href: `/kokomoBay/testeranto/reports/${x}/lint_errors.
|
|
105
|
+
React.createElement("a", { href: `/kokomoBay/testeranto/reports/${x}/lint_errors.json` }, y.staticErrors)),
|
|
103
106
|
React.createElement("td", null,
|
|
104
107
|
React.createElement("a", { href: `/kokomoBay/testeranto/reports/${x}/type_errors.txt` }, y.typeErrors)),
|
|
105
108
|
React.createElement("td", null,
|
|
@@ -111,7 +114,7 @@ const BigBoard = () => {
|
|
|
111
114
|
document.addEventListener("DOMContentLoaded", function () {
|
|
112
115
|
const elem = document.getElementById("root");
|
|
113
116
|
if (elem) {
|
|
114
|
-
ReactDom.createRoot(elem).render(React.createElement(BigBoard, {}
|
|
117
|
+
ReactDom.createRoot(elem).render(React.createElement(BigBoard, {}));
|
|
115
118
|
}
|
|
116
119
|
});
|
|
117
120
|
console.log("hello BigBoard!");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Testeranto from "./lib/core.js";
|
|
2
2
|
import { defaultTestResourceRequirement, } from "./lib/index.js";
|
|
3
|
-
import {
|
|
4
|
-
export class
|
|
3
|
+
import { PM_Pure } from "./PM/pure.js";
|
|
4
|
+
export class PureTesteranto extends Testeranto {
|
|
5
5
|
constructor(input, testSpecification, testImplementation, testResourceRequirement, testInterface) {
|
|
6
6
|
super(input, testSpecification, testImplementation, testResourceRequirement, testInterface, () => {
|
|
7
7
|
// no-op
|
|
@@ -9,12 +9,14 @@ export class NodeTesteranto extends Testeranto {
|
|
|
9
9
|
}
|
|
10
10
|
async receiveTestResourceConfig(partialTestResource) {
|
|
11
11
|
const t = JSON.parse(partialTestResource);
|
|
12
|
-
const pm = new
|
|
13
|
-
|
|
14
|
-
//
|
|
15
|
-
|
|
12
|
+
const pm = new PM_Pure(t);
|
|
13
|
+
return await this.testJobs[0].receiveTestResourceConfig(pm);
|
|
14
|
+
// const { failed, artifacts, logPromise, features, fails } =
|
|
15
|
+
// await this.testJobs[0].receiveTestResourceConfig(pm);
|
|
16
|
+
// // pm.customclose();
|
|
17
|
+
// return { features, failed, fails };
|
|
16
18
|
}
|
|
17
19
|
}
|
|
18
20
|
export default async (input, testSpecification, testImplementation, testInterface, testResourceRequirement = defaultTestResourceRequirement) => {
|
|
19
|
-
return new
|
|
21
|
+
return new PureTesteranto(input, testSpecification, testImplementation, testResourceRequirement, testInterface);
|
|
20
22
|
};
|
|
@@ -8,7 +8,7 @@ const BigBoard = () => {
|
|
|
8
8
|
const [configs, setConfigs] = useState();
|
|
9
9
|
useEffect(() => {
|
|
10
10
|
(async () => {
|
|
11
|
-
fetch(
|
|
11
|
+
fetch(`/kokomoBay/testeranto/reports/${window.location.pathname.split('/').pop()}/config.json`)
|
|
12
12
|
.then(response => response.json())
|
|
13
13
|
.then(json => {
|
|
14
14
|
setConfigs(json);
|
package/dist/module/{SubPackages/react/component/web.js → src/SubPackages/react/component/index.js}
RENAMED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
return Testeranto(testInput, testSpecifications, testImplementations, {
|
|
2
|
+
export const reactInterfacer = (testInput) => {
|
|
3
|
+
return {
|
|
5
4
|
beforeEach: async () => {
|
|
6
5
|
return new Promise((resolve, rej) => {
|
|
7
6
|
resolve(React.createElement(testInput, {}, []));
|
|
@@ -10,5 +9,5 @@ export default (testImplementations, testSpecifications, testInput) => {
|
|
|
10
9
|
andWhen: function (s, whenCB) {
|
|
11
10
|
return whenCB()(s);
|
|
12
11
|
},
|
|
13
|
-
}
|
|
12
|
+
};
|
|
14
13
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Testeranto from "../../../Web.js";
|
|
2
|
-
import {
|
|
3
|
-
export default (testImplementations, testSpecifications, testInput
|
|
4
|
-
return Testeranto(testInput, testSpecifications, testImplementations,
|
|
2
|
+
import { reactInterfacer } from "./index.js";
|
|
3
|
+
export default (testImplementations, testSpecifications, testInput) => {
|
|
4
|
+
return Testeranto(testInput, testSpecifications, testImplementations, reactInterfacer(testInput));
|
|
5
5
|
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export const testInterface = {
|
|
3
|
+
andWhen: async (s, whenCB) => {
|
|
4
|
+
await whenCB(s());
|
|
5
|
+
return new Promise((resolve, rej) => {
|
|
6
|
+
resolve(React.createElement(s));
|
|
7
|
+
});
|
|
8
|
+
},
|
|
9
|
+
butThen: async (subject, thenCB) => {
|
|
10
|
+
await thenCB(subject());
|
|
11
|
+
return new Promise((resolve, rej) => {
|
|
12
|
+
resolve(React.createElement(subject));
|
|
13
|
+
});
|
|
14
|
+
},
|
|
15
|
+
};
|
|
16
|
+
// export type IWhenShape = any;
|
|
17
|
+
// export type IThenShape = any;
|
|
18
|
+
// export type InitialState = unknown;
|
|
19
|
+
// export type IInput = () => JSX.Element;
|
|
20
|
+
// export type ISelection = CElement<any, any>;
|
|
21
|
+
// export type IStore = CElement<any, any>;
|
|
22
|
+
// export type ISubject = CElement<any, any>;
|
|
23
|
+
// export type ITestImpl<
|
|
24
|
+
// I extends Ibdd_in<
|
|
25
|
+
// unknown,
|
|
26
|
+
// unknown,
|
|
27
|
+
// unknown,
|
|
28
|
+
// unknown,
|
|
29
|
+
// unknown,
|
|
30
|
+
// unknown,
|
|
31
|
+
// unknown
|
|
32
|
+
// >,
|
|
33
|
+
// O extends Ibdd_out<
|
|
34
|
+
// Record<string, any>,
|
|
35
|
+
// Record<string, any>,
|
|
36
|
+
// Record<string, any>,
|
|
37
|
+
// Record<string, any>,
|
|
38
|
+
// Record<string, any>
|
|
39
|
+
// >
|
|
40
|
+
// > = ITestImplementation<I, O>;
|
|
41
|
+
// export type ITestSpec<
|
|
42
|
+
// I extends Ibdd_in<
|
|
43
|
+
// unknown,
|
|
44
|
+
// unknown,
|
|
45
|
+
// unknown,
|
|
46
|
+
// unknown,
|
|
47
|
+
// unknown,
|
|
48
|
+
// unknown,
|
|
49
|
+
// unknown
|
|
50
|
+
// >,
|
|
51
|
+
// O extends Ibdd_out<
|
|
52
|
+
// Record<string, any>,
|
|
53
|
+
// Record<string, any>,
|
|
54
|
+
// Record<string, any>,
|
|
55
|
+
// Record<string, any>,
|
|
56
|
+
// Record<string, any>
|
|
57
|
+
// >
|
|
58
|
+
// > = ITestSpecification<I, O>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Testeranto from "../../../Node.js";
|
|
2
|
-
import { testInterface as baseInterface
|
|
2
|
+
import { testInterface as baseInterface } from "./index.js";
|
|
3
3
|
export default (testImplementations, testSpecifications, testInput, testInterface = baseInterface) => {
|
|
4
4
|
return Testeranto(testInput, testSpecifications, testImplementations, testInterface);
|
|
5
5
|
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import Testeranto from "../../../Pure.js";
|
|
2
|
+
import { testInterface as baseInterface } from "./index.js";
|
|
3
|
+
export default (testImplementations, testSpecifications, testInput, testInterface = baseInterface) => {
|
|
4
|
+
return Testeranto(testInput, testSpecifications, testImplementations, testInterface);
|
|
5
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import Testeranto from "../../../Web.js";
|
|
2
|
+
import { testInterface as baseInterface } from "./index.js";
|
|
3
|
+
export default (testImplementations, testSpecifications, testInput, testInterface = baseInterface) => {
|
|
4
|
+
return Testeranto(testInput, testSpecifications, testImplementations, testInterface);
|
|
5
|
+
};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from "react";
|
|
2
2
|
import ReactDom from "react-dom/client";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
class TesterantoComponent extends testInput {
|
|
3
|
+
export const testInterfacer = () => {
|
|
4
|
+
class TesterantoComponent extends React.Component {
|
|
6
5
|
constructor(props) {
|
|
7
6
|
super(props);
|
|
8
7
|
this.done = props.done;
|
|
@@ -12,7 +11,7 @@ export default (testInput, testSpecifications, testImplementations, testInterfac
|
|
|
12
11
|
return this.done(this);
|
|
13
12
|
}
|
|
14
13
|
}
|
|
15
|
-
|
|
14
|
+
return {
|
|
16
15
|
beforeAll: async (subject, artificer) => {
|
|
17
16
|
return await new Promise((resolve, rej) => {
|
|
18
17
|
const htmlElement = document.getElementById("root");
|
|
@@ -51,12 +50,5 @@ export default (testInput, testSpecifications, testImplementations, testInterfac
|
|
|
51
50
|
// store.htmlElement = document.createElement("root");
|
|
52
51
|
return store;
|
|
53
52
|
},
|
|
54
|
-
}
|
|
55
|
-
document.addEventListener("DOMContentLoaded", function () {
|
|
56
|
-
const elem = document.getElementById("root");
|
|
57
|
-
if (elem) {
|
|
58
|
-
return t;
|
|
59
|
-
}
|
|
60
|
-
});
|
|
61
|
-
return t;
|
|
53
|
+
};
|
|
62
54
|
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { createElement } from "react";
|
|
2
|
+
export const testInterfacer = (testInput) => {
|
|
3
|
+
return {
|
|
4
|
+
beforeEach: async () => {
|
|
5
|
+
return new Promise((resolve, rej) => {
|
|
6
|
+
resolve(createElement(testInput));
|
|
7
|
+
});
|
|
8
|
+
},
|
|
9
|
+
andWhen: async function (s, whenCB) {
|
|
10
|
+
return whenCB(s);
|
|
11
|
+
},
|
|
12
|
+
butThen: async function (s) {
|
|
13
|
+
return s;
|
|
14
|
+
},
|
|
15
|
+
afterEach: async function () {
|
|
16
|
+
return {};
|
|
17
|
+
},
|
|
18
|
+
afterAll: () => {
|
|
19
|
+
return;
|
|
20
|
+
},
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import Testeranto from "../../../Web.js";
|
|
2
|
+
export default (testInput, testSpecifications, testImplementations, testInterface) => {
|
|
3
|
+
const t = Testeranto(testInput, testSpecifications, testImplementations, testInterface);
|
|
4
|
+
document.addEventListener("DOMContentLoaded", function () {
|
|
5
|
+
const elem = document.getElementById("root");
|
|
6
|
+
if (elem) {
|
|
7
|
+
return t;
|
|
8
|
+
}
|
|
9
|
+
});
|
|
10
|
+
return t;
|
|
11
|
+
};
|
package/dist/module/{SubPackages/react-dom/jsx/node.js → src/SubPackages/react-dom/jsx/dynamic.js}
RENAMED
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import { createElement } from "react";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import Testeranto from "../../../Node.js";
|
|
5
|
-
export { renderToStaticMarkup, renderToStaticNodeStream, Stream };
|
|
6
|
-
export default (testImplementations, testSpecifications, testInput) => {
|
|
7
|
-
return Testeranto(testInput, testSpecifications, testImplementations, {
|
|
2
|
+
export const testInterfacer = (testInput) => {
|
|
3
|
+
return {
|
|
8
4
|
beforeAll: async (prototype, artificer) => {
|
|
9
5
|
return await new Promise((resolve, rej) => {
|
|
10
6
|
resolve(null);
|
|
@@ -27,5 +23,5 @@ export default (testImplementations, testSpecifications, testInput) => {
|
|
|
27
23
|
afterAll: (store, artificer) => {
|
|
28
24
|
return;
|
|
29
25
|
},
|
|
30
|
-
}
|
|
26
|
+
};
|
|
31
27
|
};
|