testeranto 0.114.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 +15 -1
- package/bundle.js +1 -1
- package/dist/common/src/Init.js +31 -0
- package/dist/common/src/Node.js +49 -0
- package/dist/common/src/PM/base.js +230 -0
- package/dist/common/src/PM/main.js +1026 -0
- 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/src/build.js +223 -0
- package/dist/common/{defaultConfig.js → src/defaultConfig.js} +1 -3
- package/dist/common/{esbuildConfigs → src/esbuildConfigs}/index.js +1 -1
- package/dist/common/{esbuildConfigs → src/esbuildConfigs}/inputFilesPlugin.js +7 -3
- package/dist/common/{esbuildConfigs → src/esbuildConfigs}/node.js +7 -4
- package/dist/common/src/esbuildConfigs/pure.js +41 -0
- package/dist/common/{esbuildConfigs → src/esbuildConfigs}/web.js +8 -5
- 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/src/init-docs.js +9 -0
- package/dist/common/{lib → src/lib}/abstractBase.js +99 -95
- package/dist/common/{lib → src/lib}/basebuilder.js +24 -20
- package/dist/common/{lib → src/lib}/classBuilder.js +8 -5
- package/dist/common/{lib → src/lib}/core.js +10 -60
- package/dist/common/{lib → src/lib}/index.js +7 -2
- package/dist/common/{run.js → src/run.js} +12 -4
- package/dist/common/src/utils.js +65 -0
- package/dist/common/testeranto.config.js +41 -0
- package/dist/common/tsconfig.common.tsbuildinfo +1 -1
- package/dist/module/src/Init.js +26 -0
- package/dist/module/src/Node.js +42 -0
- package/dist/module/src/PM/base.js +223 -0
- package/dist/module/src/PM/main.js +986 -0
- 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/src/Project.js +120 -0
- 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} +26 -14
- package/dist/module/{Web.js → src/Web.js} +1 -4
- package/dist/module/src/build.js +185 -0
- package/dist/module/{defaultConfig.js → src/defaultConfig.js} +1 -3
- package/dist/module/{esbuildConfigs → src/esbuildConfigs}/index.js +1 -1
- package/dist/module/{esbuildConfigs → src/esbuildConfigs}/inputFilesPlugin.js +7 -3
- package/dist/module/{esbuildConfigs → src/esbuildConfigs}/node.js +7 -4
- package/dist/module/src/esbuildConfigs/pure.js +36 -0
- package/dist/module/{esbuildConfigs → src/esbuildConfigs}/web.js +8 -5
- 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/src/init-docs.js +4 -0
- package/dist/module/{lib → src/lib}/abstractBase.js +99 -95
- package/dist/module/{lib → src/lib}/basebuilder.js +24 -20
- package/dist/module/{lib → src/lib}/classBuilder.js +8 -5
- package/dist/module/{lib → src/lib}/core.js +10 -60
- package/dist/module/{lib → src/lib}/index.js +7 -2
- package/dist/module/{run.js → src/run.js} +12 -4
- 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.css +11367 -0
- package/dist/prebuild/Project.js +24643 -0
- package/dist/prebuild/ReportClient.js +1 -1
- package/dist/prebuild/TestReport.js +13 -12
- package/dist/prebuild/build.mjs +217 -106
- package/dist/prebuild/init-docs.mjs +29 -83
- package/dist/prebuild/run.mjs +803 -686
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/src/Init.d.ts +2 -0
- 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/src/PM/main.d.ts +47 -0
- 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 +47 -34
- package/dist/types/{lib → src/lib}/basebuilder.d.ts +7 -9
- 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 +33 -12
- package/src/Init.ts +29 -75
- package/src/Node.ts +42 -46
- package/src/PM/base.ts +299 -0
- package/src/PM/index.ts +28 -21
- package/src/PM/main.ts +569 -819
- 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 +200 -0
- 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 +37 -19
- package/src/Types.ts +114 -140
- package/src/Web.ts +13 -48
- package/src/build.ts +153 -143
- package/src/defaultConfig.ts +3 -5
- package/src/esbuildConfigs/index.ts +3 -3
- package/src/esbuildConfigs/inputFilesPlugin.ts +9 -7
- package/src/esbuildConfigs/node.ts +10 -6
- package/src/esbuildConfigs/pure.ts +72 -0
- package/src/esbuildConfigs/web.ts +11 -7
- package/src/examples/react/component/index.tsx +35 -0
- package/src/examples/react/component/test.ts +83 -0
- package/src/init-docs.ts +2 -15
- package/src/lib/abstractBase.ts +188 -260
- package/src/lib/basebuilder.ts +47 -48
- package/src/lib/classBuilder.ts +28 -35
- package/src/lib/core.ts +35 -102
- package/src/lib/index.ts +37 -65
- package/src/lib/types.ts +23 -98
- package/src/run.ts +18 -5
- package/src/utils.ts +73 -40
- 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 +53 -76
- package/type-fix.txt +2 -0
- package/dist/common/Init.js +0 -68
- package/dist/common/PM/main.js +0 -1176
- 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/common/build.js +0 -222
- package/dist/common/init-docs.js +0 -53
- package/dist/common/puppeteerConfiger.js +0 -24
- package/dist/common/utils.js +0 -43
- package/dist/module/Init.js +0 -63
- package/dist/module/PM/main.js +0 -1136
- 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/build.js +0 -184
- package/dist/module/init-docs.js +0 -15
- package/dist/module/puppeteerConfiger.js +0 -19
- package/dist/module/utils.js +0 -29
- package/dist/types/Init.d.ts +0 -2
- package/dist/types/Node.d.ts +0 -12
- package/dist/types/PM/main.d.ts +0 -66
- 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 -14
- package/dist/types/puppeteerConfiger.d.ts +0 -4
- package/dist/types/utils.d.ts +0 -15
- package/src/puppeteerConfiger.ts +0 -26
- /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/{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/{lib → src/lib}/types.js +0 -0
- /package/dist/module/{web.html.js → src/web.html.js} +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
package/src/Project.tsx
ADDED
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
import ReactDom from "react-dom/client";
|
|
2
|
+
import React, { useEffect, useState } from "react";
|
|
3
|
+
|
|
4
|
+
import 'bootstrap/dist/css/bootstrap.min.css';
|
|
5
|
+
import "./style.css"
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
import { Footer } from "./Footer";
|
|
9
|
+
import { Table } from "react-bootstrap";
|
|
10
|
+
import { ITestTypes, IRunTime, IBuiltConfig } from "./lib";
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
type ISummary = {
|
|
14
|
+
staticAnalysis: number | "?";
|
|
15
|
+
typeErrors: number | "?";
|
|
16
|
+
bddErrors: number | "?";
|
|
17
|
+
prompt: string | "?";
|
|
18
|
+
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
type ICollation = {
|
|
22
|
+
name: string;
|
|
23
|
+
runTime: IRunTime;
|
|
24
|
+
tr: {
|
|
25
|
+
ports: number;
|
|
26
|
+
};
|
|
27
|
+
sidecars: ITestTypes[];
|
|
28
|
+
staticAnalysis: number | "?";
|
|
29
|
+
typeErrors: number | "?";
|
|
30
|
+
bddErrors: number | "?";
|
|
31
|
+
prompt: string | "?";
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
type ICollations = ICollation[];
|
|
35
|
+
|
|
36
|
+
const BigBoard = () => {
|
|
37
|
+
|
|
38
|
+
const bigConfigElement = document.getElementById('bigConfig');
|
|
39
|
+
if (!bigConfigElement) throw new Error('bigConfig element not found');
|
|
40
|
+
const projects = JSON.parse(bigConfigElement.innerHTML) as string[];
|
|
41
|
+
// const projects = Object.keys(bigConfig.projects);
|
|
42
|
+
|
|
43
|
+
// const [configs, setConfigs] = useState<IBuiltConfig>();
|
|
44
|
+
// useEffect(() => {
|
|
45
|
+
// (async () => {
|
|
46
|
+
// fetch('/kokomoBay/docs/testeranto.json')
|
|
47
|
+
// .then(response => response.json())
|
|
48
|
+
// .then(json => {
|
|
49
|
+
// setConfigs(json)
|
|
50
|
+
// })
|
|
51
|
+
// .catch(error => console.error(error));
|
|
52
|
+
|
|
53
|
+
// })();
|
|
54
|
+
// }, []);
|
|
55
|
+
|
|
56
|
+
// const [bigBoard, setBigBoard] = useState<Record<string, ISummary>>({});
|
|
57
|
+
// useEffect(() => {
|
|
58
|
+
// (async () => {
|
|
59
|
+
// fetch('/kokomoBay/docs/summary.json')
|
|
60
|
+
// .then(response => response.json())
|
|
61
|
+
// .then(json => {
|
|
62
|
+
// setBigBoard(json)
|
|
63
|
+
// })
|
|
64
|
+
// .catch(error => console.error(error));
|
|
65
|
+
|
|
66
|
+
// })();
|
|
67
|
+
// }, []);
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
const [summary, setSummary] = useState<[
|
|
71
|
+
string,
|
|
72
|
+
IBuiltConfig,
|
|
73
|
+
ISummary
|
|
74
|
+
][]>();
|
|
75
|
+
useEffect(() => {
|
|
76
|
+
(async () => {
|
|
77
|
+
|
|
78
|
+
const x: Promise<[string, IBuiltConfig, ISummary]>[] = projects.map(async (p) => {
|
|
79
|
+
return [
|
|
80
|
+
p,
|
|
81
|
+
(await (await fetch(`/kokomoBay/testeranto/reports/${p}/config.json`)).json()) as IBuiltConfig,
|
|
82
|
+
(await (await fetch(`/kokomoBay/testeranto/reports/${p}/summary.json`)).json()) as ISummary
|
|
83
|
+
] as [string, IBuiltConfig, ISummary]
|
|
84
|
+
})
|
|
85
|
+
|
|
86
|
+
Promise.all(x).then((v) => {
|
|
87
|
+
setSummary(v)
|
|
88
|
+
})
|
|
89
|
+
|
|
90
|
+
// fetch('/kokomoBay/docs/summary.json')
|
|
91
|
+
// .then(response => response.json())
|
|
92
|
+
// .then(json => {
|
|
93
|
+
// setBigBoard(json)
|
|
94
|
+
// })
|
|
95
|
+
// .catch(error => console.error(error));
|
|
96
|
+
|
|
97
|
+
})();
|
|
98
|
+
}, []);
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
if (!summary || summary?.length === 0) {
|
|
102
|
+
return <div>loading...</div>
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
console.log("summary", summary)
|
|
106
|
+
// const collated: ICollations = configs.tests.map((c) => {
|
|
107
|
+
// return {
|
|
108
|
+
// ...bigBoard[c[0]],
|
|
109
|
+
// name: c[0],
|
|
110
|
+
// runTime: c[1],
|
|
111
|
+
// tr: c[2],
|
|
112
|
+
// sidecars: c[3],
|
|
113
|
+
// staticAnalysis: bigBoard[c[0]].staticErrors,
|
|
114
|
+
// typeErrors: bigBoard[c[0]].typeErrors,
|
|
115
|
+
// bddErrors: bigBoard[c[0]].runTimeError,
|
|
116
|
+
// prompt: bigBoard[c[0]].prompt
|
|
117
|
+
// } as ICollation
|
|
118
|
+
// });
|
|
119
|
+
|
|
120
|
+
function copyToClipboard(text) {
|
|
121
|
+
navigator.clipboard.writeText(text)
|
|
122
|
+
.then(() => {
|
|
123
|
+
console.log('Text copied to clipboard');
|
|
124
|
+
})
|
|
125
|
+
.catch(err => {
|
|
126
|
+
console.error('Error copying text: ', err);
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
return <div >
|
|
131
|
+
|
|
132
|
+
<Table striped bordered hover>
|
|
133
|
+
<thead>
|
|
134
|
+
<tr>
|
|
135
|
+
<th>project</th>
|
|
136
|
+
<th>platform</th>
|
|
137
|
+
<th>BDD errors</th>
|
|
138
|
+
<th>Lint errors</th>
|
|
139
|
+
<th>Type errors</th>
|
|
140
|
+
<th>prompt</th>
|
|
141
|
+
</tr>
|
|
142
|
+
|
|
143
|
+
</thead>
|
|
144
|
+
|
|
145
|
+
<tbody>
|
|
146
|
+
{
|
|
147
|
+
...summary.map((s) => {
|
|
148
|
+
return <>
|
|
149
|
+
<tr>
|
|
150
|
+
<th>{s[0]}</th>
|
|
151
|
+
</tr>
|
|
152
|
+
{
|
|
153
|
+
...s[1].tests.map((t) => {
|
|
154
|
+
|
|
155
|
+
const x = `${s[0]}/${t[0].split(".").slice(0, -1).join(".")}/${t[1]}`
|
|
156
|
+
const y = s[2][t[0]];
|
|
157
|
+
|
|
158
|
+
return <tr>
|
|
159
|
+
<td>{t[0]}</td>
|
|
160
|
+
<td>{t[1]}</td>
|
|
161
|
+
<td><a href={`/kokomoBay/testeranto/reports/${x}/littleBoard.html`}>{y.runTimeError}</a></td>
|
|
162
|
+
<td><a href={`/kokomoBay/testeranto/reports/${x}/lint_errors.json`}>{y.staticErrors}</a></td>
|
|
163
|
+
<td><a href={`/kokomoBay/testeranto/reports/${x}/type_errors.txt`}>{y.typeErrors}</a></td>
|
|
164
|
+
<td>
|
|
165
|
+
<pre>
|
|
166
|
+
|
|
167
|
+
{s[2][t[0]].prompt}
|
|
168
|
+
{/* <button onClick={() => {
|
|
169
|
+
copyToClipboard(s[2][t[0]].prompt)
|
|
170
|
+
}}>prompt</button> */}
|
|
171
|
+
</pre>
|
|
172
|
+
</td>
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
</tr>
|
|
176
|
+
})
|
|
177
|
+
}
|
|
178
|
+
</>
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
})
|
|
182
|
+
}
|
|
183
|
+
</tbody>
|
|
184
|
+
|
|
185
|
+
</Table>
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
<Footer />
|
|
190
|
+
</div>
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
document.addEventListener("DOMContentLoaded", function () {
|
|
194
|
+
const elem = document.getElementById("root");
|
|
195
|
+
if (elem) {
|
|
196
|
+
ReactDom.createRoot(elem).render(React.createElement(BigBoard, {}));
|
|
197
|
+
}
|
|
198
|
+
});
|
|
199
|
+
|
|
200
|
+
console.log("hello BigBoard!")
|
package/src/Pure.ts
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import Testeranto from "./lib/core.js";
|
|
2
|
+
import {
|
|
3
|
+
defaultTestResourceRequirement,
|
|
4
|
+
ITTestResourceConfiguration,
|
|
5
|
+
ITTestResourceRequest,
|
|
6
|
+
} from "./lib/index.js";
|
|
7
|
+
import type {
|
|
8
|
+
Ibdd_in,
|
|
9
|
+
Ibdd_out,
|
|
10
|
+
INodeTestInterface,
|
|
11
|
+
IT,
|
|
12
|
+
ITestImplementation,
|
|
13
|
+
ITestInterface,
|
|
14
|
+
ITestSpecification,
|
|
15
|
+
OT,
|
|
16
|
+
} from "./Types.js";
|
|
17
|
+
|
|
18
|
+
import { PM_Pure } from "./PM/pure.js";
|
|
19
|
+
|
|
20
|
+
export class PureTesteranto<I extends IT, O extends OT, M> extends Testeranto<
|
|
21
|
+
I,
|
|
22
|
+
O,
|
|
23
|
+
M
|
|
24
|
+
> {
|
|
25
|
+
constructor(
|
|
26
|
+
input: I["iinput"],
|
|
27
|
+
testSpecification: ITestSpecification<I, O>,
|
|
28
|
+
testImplementation: ITestImplementation<I, O, M>,
|
|
29
|
+
testResourceRequirement: ITTestResourceRequest,
|
|
30
|
+
testInterface: Partial<ITestInterface<I>>
|
|
31
|
+
) {
|
|
32
|
+
super(
|
|
33
|
+
input,
|
|
34
|
+
testSpecification,
|
|
35
|
+
testImplementation,
|
|
36
|
+
testResourceRequirement,
|
|
37
|
+
testInterface,
|
|
38
|
+
() => {
|
|
39
|
+
// no-op
|
|
40
|
+
}
|
|
41
|
+
);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
async receiveTestResourceConfig(partialTestResource: string) {
|
|
45
|
+
const t: ITTestResourceConfiguration = JSON.parse(partialTestResource);
|
|
46
|
+
const pm = new PM_Pure(t);
|
|
47
|
+
return await this.testJobs[0].receiveTestResourceConfig(pm);
|
|
48
|
+
// const { failed, artifacts, logPromise, features, fails } =
|
|
49
|
+
// await this.testJobs[0].receiveTestResourceConfig(pm);
|
|
50
|
+
// // pm.customclose();
|
|
51
|
+
// return { features, failed, fails };
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export default async <I extends IT, O extends OT, M>(
|
|
56
|
+
input: I["iinput"],
|
|
57
|
+
testSpecification: ITestSpecification<I, O>,
|
|
58
|
+
testImplementation: ITestImplementation<I, O, M>,
|
|
59
|
+
testInterface: Partial<INodeTestInterface<I>>,
|
|
60
|
+
testResourceRequirement: ITTestResourceRequest = defaultTestResourceRequirement
|
|
61
|
+
): Promise<Testeranto<I, O, M>> => {
|
|
62
|
+
return new PureTesteranto<I, O, M>(
|
|
63
|
+
input,
|
|
64
|
+
testSpecification,
|
|
65
|
+
testImplementation,
|
|
66
|
+
testResourceRequirement,
|
|
67
|
+
testInterface
|
|
68
|
+
);
|
|
69
|
+
};
|
package/src/ReportClient.tsx
CHANGED
|
@@ -7,8 +7,13 @@ import "./style.css"
|
|
|
7
7
|
import { IRunTime, ITestTypes, IBuiltConfig } from "./lib";
|
|
8
8
|
import { Footer } from "./Footer";
|
|
9
9
|
import { Table } from "react-bootstrap";
|
|
10
|
-
import { ISummary } from "./utils";
|
|
11
10
|
|
|
11
|
+
type ISummary = {
|
|
12
|
+
runTimeError: number | "?";
|
|
13
|
+
typeErrors: number | "?";
|
|
14
|
+
staticErrors: number | "?";
|
|
15
|
+
prompt: string | "?";
|
|
16
|
+
};
|
|
12
17
|
|
|
13
18
|
type ICollation = {
|
|
14
19
|
name: string;
|
|
@@ -30,7 +35,7 @@ const BigBoard = () => {
|
|
|
30
35
|
const [configs, setConfigs] = useState<IBuiltConfig>();
|
|
31
36
|
useEffect(() => {
|
|
32
37
|
(async () => {
|
|
33
|
-
fetch(
|
|
38
|
+
fetch(`/kokomoBay/testeranto/reports/${window.location.pathname.split('/').pop()}/config.json`)
|
|
34
39
|
.then(response => response.json())
|
|
35
40
|
.then(json => {
|
|
36
41
|
setConfigs(json)
|
|
@@ -162,4 +167,4 @@ document.addEventListener("DOMContentLoaded", function () {
|
|
|
162
167
|
}
|
|
163
168
|
});
|
|
164
169
|
|
|
165
|
-
console.log("hello BigBoard!")
|
|
170
|
+
console.log("hello BigBoard!")
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
|
|
3
|
+
import { Ibdd_in, IPartialInterface } from "../../../Types";
|
|
4
|
+
|
|
5
|
+
export type I = Ibdd_in<
|
|
6
|
+
typeof React.Component,
|
|
7
|
+
React.CElement<any, any>,
|
|
8
|
+
React.CElement<any, any>,
|
|
9
|
+
React.CElement<any, any>,
|
|
10
|
+
unknown,
|
|
11
|
+
() => (s: React.CElement<any, any>) => any,
|
|
12
|
+
unknown
|
|
13
|
+
>;
|
|
14
|
+
|
|
15
|
+
export const reactInterfacer = (
|
|
16
|
+
testInput: I["iinput"]
|
|
17
|
+
): IPartialInterface<I> => {
|
|
18
|
+
return {
|
|
19
|
+
beforeEach: async () => {
|
|
20
|
+
return new Promise((resolve, rej) => {
|
|
21
|
+
resolve(React.createElement(testInput, {}, []));
|
|
22
|
+
});
|
|
23
|
+
},
|
|
24
|
+
andWhen: function (s, whenCB) {
|
|
25
|
+
return whenCB()(s);
|
|
26
|
+
},
|
|
27
|
+
};
|
|
28
|
+
};
|
|
@@ -1,87 +1,17 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
|
|
3
1
|
import Testeranto from "../../../Node.js";
|
|
2
|
+
import { ITestImplementation, ITestSpecification, OT } from "../../../Types";
|
|
4
3
|
|
|
5
|
-
import {
|
|
6
|
-
Ibdd_in,
|
|
7
|
-
Ibdd_out,
|
|
8
|
-
ITestImplementation,
|
|
9
|
-
ITestSpecification,
|
|
10
|
-
} from "../../../Types";
|
|
11
|
-
|
|
12
|
-
type IInput = typeof React.Component;
|
|
13
|
-
type ISelection = React.CElement<any, any>;
|
|
14
|
-
type IStore = React.CElement<any, any>;
|
|
15
|
-
type ISubject = React.CElement<any, any>;
|
|
16
|
-
|
|
17
|
-
export type IImpl<
|
|
18
|
-
I extends Ibdd_in<
|
|
19
|
-
unknown,
|
|
20
|
-
unknown,
|
|
21
|
-
unknown,
|
|
22
|
-
unknown,
|
|
23
|
-
unknown,
|
|
24
|
-
unknown,
|
|
25
|
-
unknown
|
|
26
|
-
>,
|
|
27
|
-
O extends Ibdd_out<
|
|
28
|
-
Record<string, any>,
|
|
29
|
-
Record<string, any>,
|
|
30
|
-
Record<string, any>,
|
|
31
|
-
Record<string, any>,
|
|
32
|
-
Record<string, any>
|
|
33
|
-
>
|
|
34
|
-
> = ITestImplementation<I, O>;
|
|
35
|
-
|
|
36
|
-
export type ISpec<
|
|
37
|
-
I extends Ibdd_in<
|
|
38
|
-
unknown,
|
|
39
|
-
unknown,
|
|
40
|
-
unknown,
|
|
41
|
-
unknown,
|
|
42
|
-
unknown,
|
|
43
|
-
unknown,
|
|
44
|
-
unknown
|
|
45
|
-
>,
|
|
46
|
-
O extends Ibdd_out<
|
|
47
|
-
Record<string, any>,
|
|
48
|
-
Record<string, any>,
|
|
49
|
-
Record<string, any>,
|
|
50
|
-
Record<string, any>,
|
|
51
|
-
Record<string, any>
|
|
52
|
-
>
|
|
53
|
-
> = ITestSpecification<I, O>;
|
|
4
|
+
import { reactInterfacer, I } from "./index.js";
|
|
54
5
|
|
|
55
|
-
export default <
|
|
56
|
-
I
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
unknown,
|
|
60
|
-
unknown,
|
|
61
|
-
unknown,
|
|
62
|
-
unknown,
|
|
63
|
-
unknown
|
|
64
|
-
>,
|
|
65
|
-
O extends Ibdd_out<
|
|
66
|
-
Record<string, any>,
|
|
67
|
-
Record<string, any>,
|
|
68
|
-
Record<string, any>,
|
|
69
|
-
Record<string, any>,
|
|
70
|
-
Record<string, any>
|
|
71
|
-
>
|
|
72
|
-
>(
|
|
73
|
-
testImplementations: ITestImplementation<I, O>,
|
|
74
|
-
testSpecifications: ISpec<I, O>,
|
|
75
|
-
testInput: IInput
|
|
6
|
+
export default <O extends OT, M>(
|
|
7
|
+
testImplementations: ITestImplementation<I, O, M>,
|
|
8
|
+
testSpecifications: ITestSpecification<I, O>,
|
|
9
|
+
testInput: I["iinput"]
|
|
76
10
|
) => {
|
|
77
|
-
return Testeranto<I, O>(
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
andWhen: function (s: IStore, whenCB): Promise<ISelection> {
|
|
84
|
-
return whenCB()(s);
|
|
85
|
-
},
|
|
86
|
-
});
|
|
11
|
+
return Testeranto<I, O, M>(
|
|
12
|
+
testInput,
|
|
13
|
+
testSpecifications,
|
|
14
|
+
testImplementations,
|
|
15
|
+
reactInterfacer(testInput)
|
|
16
|
+
);
|
|
87
17
|
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import Testeranto from "../../../Pure.js";
|
|
2
|
+
import { ITestImplementation, ITestSpecification, OT } from "../../../Types";
|
|
3
|
+
|
|
4
|
+
import { reactInterfacer, I } from "./index.js";
|
|
5
|
+
|
|
6
|
+
export default <O extends OT, M>(
|
|
7
|
+
testImplementations: ITestImplementation<I, O, M>,
|
|
8
|
+
testSpecifications: ITestSpecification<I, O>,
|
|
9
|
+
testInput: I["iinput"]
|
|
10
|
+
) => {
|
|
11
|
+
return Testeranto<I, O, M>(
|
|
12
|
+
testInput,
|
|
13
|
+
testSpecifications,
|
|
14
|
+
testImplementations,
|
|
15
|
+
reactInterfacer(testInput)
|
|
16
|
+
);
|
|
17
|
+
};
|
|
@@ -1,86 +1,17 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
|
|
3
1
|
import Testeranto from "../../../Web.js";
|
|
2
|
+
import { ITestImplementation, ITestSpecification, OT } from "../../../Types";
|
|
4
3
|
|
|
5
|
-
import {
|
|
6
|
-
Ibdd_in,
|
|
7
|
-
Ibdd_out,
|
|
8
|
-
ITestImplementation,
|
|
9
|
-
ITestSpecification,
|
|
10
|
-
} from "../../../Types";
|
|
11
|
-
|
|
12
|
-
type IInput = typeof React.Component;
|
|
13
|
-
type ISelection = React.CElement<any, any>;
|
|
14
|
-
type Store = React.CElement<any, any>;
|
|
15
|
-
|
|
16
|
-
export type IImpl<
|
|
17
|
-
I extends Ibdd_in<
|
|
18
|
-
unknown,
|
|
19
|
-
unknown,
|
|
20
|
-
unknown,
|
|
21
|
-
unknown,
|
|
22
|
-
unknown,
|
|
23
|
-
unknown,
|
|
24
|
-
unknown
|
|
25
|
-
>,
|
|
26
|
-
O extends Ibdd_out<
|
|
27
|
-
Record<string, any>,
|
|
28
|
-
Record<string, any>,
|
|
29
|
-
Record<string, any>,
|
|
30
|
-
Record<string, any>,
|
|
31
|
-
Record<string, any>
|
|
32
|
-
>
|
|
33
|
-
> = ITestImplementation<I, O>;
|
|
34
|
-
|
|
35
|
-
export type ISpec<
|
|
36
|
-
I extends Ibdd_in<
|
|
37
|
-
unknown,
|
|
38
|
-
unknown,
|
|
39
|
-
unknown,
|
|
40
|
-
unknown,
|
|
41
|
-
unknown,
|
|
42
|
-
unknown,
|
|
43
|
-
unknown
|
|
44
|
-
>,
|
|
45
|
-
O extends Ibdd_out<
|
|
46
|
-
Record<string, any>,
|
|
47
|
-
Record<string, any>,
|
|
48
|
-
Record<string, any>,
|
|
49
|
-
Record<string, any>,
|
|
50
|
-
Record<string, any>
|
|
51
|
-
>
|
|
52
|
-
> = ITestSpecification<I, O>;
|
|
4
|
+
import { reactInterfacer, I } from "./index.js";
|
|
53
5
|
|
|
54
|
-
export default <
|
|
55
|
-
I
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
unknown,
|
|
59
|
-
unknown,
|
|
60
|
-
unknown,
|
|
61
|
-
unknown,
|
|
62
|
-
unknown
|
|
63
|
-
>,
|
|
64
|
-
O extends Ibdd_out<
|
|
65
|
-
Record<string, any>,
|
|
66
|
-
Record<string, any>,
|
|
67
|
-
Record<string, any>,
|
|
68
|
-
Record<string, any>,
|
|
69
|
-
Record<string, any>
|
|
70
|
-
>
|
|
71
|
-
>(
|
|
72
|
-
testImplementations: ITestImplementation<I, O>,
|
|
73
|
-
testSpecifications: ISpec<I, O>,
|
|
74
|
-
testInput: IInput
|
|
6
|
+
export default <O extends OT, M>(
|
|
7
|
+
testImplementations: ITestImplementation<I, O, M>,
|
|
8
|
+
testSpecifications: ITestSpecification<I, O>,
|
|
9
|
+
testInput: I["iinput"]
|
|
75
10
|
) => {
|
|
76
|
-
return Testeranto<I, O>(
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
andWhen: function (s: Store, whenCB): Promise<ISelection> {
|
|
83
|
-
return whenCB()(s);
|
|
84
|
-
},
|
|
85
|
-
});
|
|
11
|
+
return Testeranto<I, O, M>(
|
|
12
|
+
testInput,
|
|
13
|
+
testSpecifications,
|
|
14
|
+
testImplementations,
|
|
15
|
+
reactInterfacer(testInput)
|
|
16
|
+
);
|
|
86
17
|
};
|
|
@@ -1,59 +1,17 @@
|
|
|
1
1
|
import { CElement } from "react";
|
|
2
2
|
import React from "react";
|
|
3
3
|
|
|
4
|
-
import {
|
|
5
|
-
Ibdd_in,
|
|
6
|
-
Ibdd_out,
|
|
7
|
-
IPartialInterface,
|
|
8
|
-
ITestImplementation,
|
|
9
|
-
ITestSpecification,
|
|
10
|
-
} from "../../../Types";
|
|
4
|
+
import { Ibdd_in, IPartialInterface } from "../../../Types";
|
|
11
5
|
|
|
12
|
-
export type
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
I extends Ibdd_in<
|
|
22
|
-
unknown,
|
|
23
|
-
unknown,
|
|
24
|
-
unknown,
|
|
25
|
-
unknown,
|
|
26
|
-
unknown,
|
|
27
|
-
unknown,
|
|
28
|
-
unknown
|
|
29
|
-
>,
|
|
30
|
-
O extends Ibdd_out<
|
|
31
|
-
Record<string, any>,
|
|
32
|
-
Record<string, any>,
|
|
33
|
-
Record<string, any>,
|
|
34
|
-
Record<string, any>,
|
|
35
|
-
Record<string, any>
|
|
36
|
-
>
|
|
37
|
-
> = ITestImplementation<I, O>;
|
|
38
|
-
|
|
39
|
-
export type ITestSpec<
|
|
40
|
-
I extends Ibdd_in<
|
|
41
|
-
unknown,
|
|
42
|
-
unknown,
|
|
43
|
-
unknown,
|
|
44
|
-
unknown,
|
|
45
|
-
unknown,
|
|
46
|
-
unknown,
|
|
47
|
-
unknown
|
|
48
|
-
>,
|
|
49
|
-
O extends Ibdd_out<
|
|
50
|
-
Record<string, any>,
|
|
51
|
-
Record<string, any>,
|
|
52
|
-
Record<string, any>,
|
|
53
|
-
Record<string, any>,
|
|
54
|
-
Record<string, any>
|
|
55
|
-
>
|
|
56
|
-
> = ITestSpecification<I, O>;
|
|
6
|
+
export type I = Ibdd_in<
|
|
7
|
+
() => JSX.Element,
|
|
8
|
+
CElement<any, any>,
|
|
9
|
+
CElement<any, any>,
|
|
10
|
+
CElement<any, any>,
|
|
11
|
+
any,
|
|
12
|
+
() => (s: React.CElement<any, any>) => any,
|
|
13
|
+
any
|
|
14
|
+
>;
|
|
57
15
|
|
|
58
16
|
export const testInterface: IPartialInterface<any> = {
|
|
59
17
|
andWhen: async (s, whenCB) => {
|
|
@@ -69,3 +27,49 @@ export const testInterface: IPartialInterface<any> = {
|
|
|
69
27
|
});
|
|
70
28
|
},
|
|
71
29
|
};
|
|
30
|
+
|
|
31
|
+
// export type IWhenShape = any;
|
|
32
|
+
// export type IThenShape = any;
|
|
33
|
+
// export type InitialState = unknown;
|
|
34
|
+
// export type IInput = () => JSX.Element;
|
|
35
|
+
// export type ISelection = CElement<any, any>;
|
|
36
|
+
// export type IStore = CElement<any, any>;
|
|
37
|
+
// export type ISubject = CElement<any, any>;
|
|
38
|
+
|
|
39
|
+
// export type ITestImpl<
|
|
40
|
+
// I extends Ibdd_in<
|
|
41
|
+
// unknown,
|
|
42
|
+
// unknown,
|
|
43
|
+
// unknown,
|
|
44
|
+
// unknown,
|
|
45
|
+
// unknown,
|
|
46
|
+
// unknown,
|
|
47
|
+
// unknown
|
|
48
|
+
// >,
|
|
49
|
+
// O extends Ibdd_out<
|
|
50
|
+
// Record<string, any>,
|
|
51
|
+
// Record<string, any>,
|
|
52
|
+
// Record<string, any>,
|
|
53
|
+
// Record<string, any>,
|
|
54
|
+
// Record<string, any>
|
|
55
|
+
// >
|
|
56
|
+
// > = ITestImplementation<I, O>;
|
|
57
|
+
|
|
58
|
+
// export type ITestSpec<
|
|
59
|
+
// I extends Ibdd_in<
|
|
60
|
+
// unknown,
|
|
61
|
+
// unknown,
|
|
62
|
+
// unknown,
|
|
63
|
+
// unknown,
|
|
64
|
+
// unknown,
|
|
65
|
+
// unknown,
|
|
66
|
+
// unknown
|
|
67
|
+
// >,
|
|
68
|
+
// O extends Ibdd_out<
|
|
69
|
+
// Record<string, any>,
|
|
70
|
+
// Record<string, any>,
|
|
71
|
+
// Record<string, any>,
|
|
72
|
+
// Record<string, any>,
|
|
73
|
+
// Record<string, any>
|
|
74
|
+
// >
|
|
75
|
+
// > = ITestSpecification<I, O>;
|