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
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import Testeranto from "../../../Node.js";
|
|
3
|
-
export default (testImplementations, testSpecifications, testInput) => {
|
|
4
|
-
return Testeranto(testInput, testSpecifications, testImplementations, {
|
|
5
|
-
beforeEach: async () => {
|
|
6
|
-
return new Promise((resolve, rej) => {
|
|
7
|
-
resolve(React.createElement(testInput, {}, []));
|
|
8
|
-
});
|
|
9
|
-
},
|
|
10
|
-
andWhen: function (s, whenCB) {
|
|
11
|
-
return whenCB()(s);
|
|
12
|
-
},
|
|
13
|
-
});
|
|
14
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import { createElement } from "react";
|
|
2
|
-
import { renderToStaticMarkup, renderToStaticNodeStream, } from "react-dom/server";
|
|
3
|
-
import Stream from "stream";
|
|
4
|
-
import Testeranto from "../../../Node.js";
|
|
5
|
-
export { renderToStaticMarkup, renderToStaticNodeStream, Stream };
|
|
6
|
-
export default (testImplementations, testSpecifications, testInput) => {
|
|
7
|
-
return Testeranto(testInput, testSpecifications, testImplementations, {
|
|
8
|
-
beforeEach: async () => {
|
|
9
|
-
return new Promise((resolve, rej) => {
|
|
10
|
-
resolve(createElement(testInput));
|
|
11
|
-
});
|
|
12
|
-
},
|
|
13
|
-
andWhen: async function (s, whenCB) {
|
|
14
|
-
return whenCB(s);
|
|
15
|
-
},
|
|
16
|
-
butThen: async function (s) {
|
|
17
|
-
return s;
|
|
18
|
-
},
|
|
19
|
-
afterEach: async function () {
|
|
20
|
-
return {};
|
|
21
|
-
},
|
|
22
|
-
afterAll: () => {
|
|
23
|
-
return;
|
|
24
|
-
},
|
|
25
|
-
});
|
|
26
|
-
};
|
|
27
|
-
// type IInput = typeof React.Component;
|
|
28
|
-
// type InitialState = unknown;
|
|
29
|
-
// type IWhenShape = any;
|
|
30
|
-
// type IThenShape = any;
|
|
31
|
-
// type ISelection = string;
|
|
32
|
-
// type IStore = string;
|
|
33
|
-
// type ISubject = string
|
|
34
|
-
// export default <ITestShape extends ITTestShape>(
|
|
35
|
-
// testImplementations: ITestImplementation<
|
|
36
|
-
// InitialState,
|
|
37
|
-
// ISelection,
|
|
38
|
-
// IWhenShape,
|
|
39
|
-
// IThenShape,
|
|
40
|
-
// ITestShape
|
|
41
|
-
// >,
|
|
42
|
-
// testSpecifications: ITestSpecification<
|
|
43
|
-
// ITestShape,
|
|
44
|
-
// ISubject,
|
|
45
|
-
// IStore,
|
|
46
|
-
// ISelection,
|
|
47
|
-
// IThenShape
|
|
48
|
-
// >,
|
|
49
|
-
// testInput: IInput
|
|
50
|
-
// ) => {
|
|
51
|
-
// return Testeranto<
|
|
52
|
-
// ITestShape,
|
|
53
|
-
// IInput,
|
|
54
|
-
// ISubject,
|
|
55
|
-
// IStore,
|
|
56
|
-
// ISelection,
|
|
57
|
-
// IThenShape,
|
|
58
|
-
// IWhenShape,
|
|
59
|
-
// InitialState
|
|
60
|
-
// >(
|
|
61
|
-
// testInput,
|
|
62
|
-
// testSpecifications,
|
|
63
|
-
// testImplementations,
|
|
64
|
-
// {
|
|
65
|
-
// beforeEach: async (
|
|
66
|
-
// element,
|
|
67
|
-
// ndx,
|
|
68
|
-
// testResource,
|
|
69
|
-
// artificer
|
|
70
|
-
// ): Promise<IStore> => {
|
|
71
|
-
// return new Promise((resolve, rej) => {
|
|
72
|
-
// resolve(ReactDOMServer.renderToStaticMarkup(element));
|
|
73
|
-
// });
|
|
74
|
-
// },
|
|
75
|
-
// andWhen: function (s: IStore, whenCB): Promise<ISelection> {
|
|
76
|
-
// throw new Error(`"andWhens" are not permitted`);
|
|
77
|
-
// }
|
|
78
|
-
// },
|
|
79
|
-
// )
|
|
80
|
-
// };
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import React, { useEffect, useRef } from "react";
|
|
2
|
-
import { createElement } from "react";
|
|
3
|
-
import ReactDom from "react-dom";
|
|
4
|
-
import Testeranto from "../../../Web.js";
|
|
5
|
-
const TesterantoComponent = ({ done, innerComp, }) => {
|
|
6
|
-
const myContainer = useRef(null);
|
|
7
|
-
useEffect(() => {
|
|
8
|
-
console.log("useEffect called!", myContainer.current);
|
|
9
|
-
done(myContainer.current);
|
|
10
|
-
}, []);
|
|
11
|
-
return React.createElement("div", { ref: myContainer }, innerComp());
|
|
12
|
-
};
|
|
13
|
-
export default (testImplementations, testSpecifications, testInput) => {
|
|
14
|
-
const t = Testeranto(testInput, testSpecifications, testImplementations, {
|
|
15
|
-
beforeAll: async (reactElement, itr) => {
|
|
16
|
-
return await new Promise((resolve, rej) => {
|
|
17
|
-
const htmlElement = document.getElementById("root");
|
|
18
|
-
if (htmlElement) {
|
|
19
|
-
const domRoot = ReactDom.createRoot(htmlElement);
|
|
20
|
-
domRoot.render(createElement(TesterantoComponent, {
|
|
21
|
-
// ...initialProps,
|
|
22
|
-
innerComp: reactElement,
|
|
23
|
-
done: (reactElement) => {
|
|
24
|
-
resolve({
|
|
25
|
-
htmlElement,
|
|
26
|
-
reactElement,
|
|
27
|
-
domRoot,
|
|
28
|
-
});
|
|
29
|
-
},
|
|
30
|
-
}, []));
|
|
31
|
-
// resolve({ htmlElement });
|
|
32
|
-
}
|
|
33
|
-
});
|
|
34
|
-
},
|
|
35
|
-
beforeEach: async (subject) => {
|
|
36
|
-
return subject;
|
|
37
|
-
// return new Promise((resolve, rej) => {
|
|
38
|
-
// resolve(subject);
|
|
39
|
-
// // const tc = TesterantoComponent({
|
|
40
|
-
// // innerComp: () =>
|
|
41
|
-
// // testInput({
|
|
42
|
-
// // port: 3003,
|
|
43
|
-
// // address: "some-address",
|
|
44
|
-
// // secretKey: "someSecretKey",
|
|
45
|
-
// // abi: "foo",
|
|
46
|
-
// // }),
|
|
47
|
-
// // done: (reactElement: any) => {
|
|
48
|
-
// // console.log("mark9");
|
|
49
|
-
// // resolve(reactElement);
|
|
50
|
-
// // // process.nextTick(() => {
|
|
51
|
-
// // // resolve(reactElement);
|
|
52
|
-
// // // });
|
|
53
|
-
// // },
|
|
54
|
-
// // });
|
|
55
|
-
// // console.log("mark9", tc);
|
|
56
|
-
// // createPortal(tc, subject.domRoot);
|
|
57
|
-
// });
|
|
58
|
-
},
|
|
59
|
-
andWhen: async function (s, whenCB, tr, utils) {
|
|
60
|
-
return whenCB(s, utils);
|
|
61
|
-
// return new Promise(async (resolve, rej) => {
|
|
62
|
-
// // resolve(await whenCB(s, utils));
|
|
63
|
-
// // process.nextTick(() => {
|
|
64
|
-
// // resolve(whenCB()(s));
|
|
65
|
-
// // });
|
|
66
|
-
// });
|
|
67
|
-
},
|
|
68
|
-
butThen: async function (s, thenCB, tr, utils) {
|
|
69
|
-
return new Promise((resolve, rej) => {
|
|
70
|
-
resolve(thenCB(s, utils));
|
|
71
|
-
});
|
|
72
|
-
},
|
|
73
|
-
afterEach: async function (store, ndx, artificer) {
|
|
74
|
-
return new Promise((resolve, rej) => {
|
|
75
|
-
resolve({});
|
|
76
|
-
});
|
|
77
|
-
},
|
|
78
|
-
afterAll: (store, artificer) => {
|
|
79
|
-
return new Promise((resolve, rej) => {
|
|
80
|
-
resolve({});
|
|
81
|
-
});
|
|
82
|
-
},
|
|
83
|
-
});
|
|
84
|
-
document.addEventListener("DOMContentLoaded", function () {
|
|
85
|
-
const rootElement = document.getElementById("root");
|
|
86
|
-
if (rootElement) {
|
|
87
|
-
}
|
|
88
|
-
});
|
|
89
|
-
return t;
|
|
90
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/module/build.js
DELETED
|
@@ -1,184 +0,0 @@
|
|
|
1
|
-
import fs from "fs";
|
|
2
|
-
import path from "path";
|
|
3
|
-
import readline from "readline";
|
|
4
|
-
import { glob } from "glob";
|
|
5
|
-
import esbuild from "esbuild";
|
|
6
|
-
import esbuildNodeConfiger from "./esbuildConfigs/node.js";
|
|
7
|
-
import esbuildWebConfiger from "./esbuildConfigs/web.js";
|
|
8
|
-
import webHtmlFrame from "./web.html.js";
|
|
9
|
-
readline.emitKeypressEvents(process.stdin);
|
|
10
|
-
if (process.stdin.isTTY)
|
|
11
|
-
process.stdin.setRawMode(true);
|
|
12
|
-
const getRunnables = (tests, payload = {
|
|
13
|
-
nodeEntryPoints: {},
|
|
14
|
-
webEntryPoints: {},
|
|
15
|
-
}) => {
|
|
16
|
-
return tests.reduce((pt, cv, cndx, cry) => {
|
|
17
|
-
if (cv[1] === "node") {
|
|
18
|
-
pt.nodeEntryPoints[cv[0]] = path.resolve(`./docs/node/${cv[0].split(".").slice(0, -1).concat("mjs").join(".")}`);
|
|
19
|
-
}
|
|
20
|
-
else if (cv[1] === "web") {
|
|
21
|
-
pt.webEntryPoints[cv[0]] = path.resolve(`./docs/web/${cv[0].split(".").slice(0, -1).concat("mjs").join(".")}`);
|
|
22
|
-
}
|
|
23
|
-
if (cv[3].length) {
|
|
24
|
-
getRunnables(cv[3], payload);
|
|
25
|
-
}
|
|
26
|
-
return pt;
|
|
27
|
-
}, payload);
|
|
28
|
-
};
|
|
29
|
-
import(process.cwd() + "/" + process.argv[2]).then(async (module) => {
|
|
30
|
-
const rawConfig = module.default;
|
|
31
|
-
const getSecondaryEndpointsPoints = (runtime) => {
|
|
32
|
-
const meta = (ts, st) => {
|
|
33
|
-
ts.forEach((t) => {
|
|
34
|
-
if (t[1] === runtime) {
|
|
35
|
-
st.add(t[0]);
|
|
36
|
-
}
|
|
37
|
-
if (Array.isArray(t[3])) {
|
|
38
|
-
meta(t[3], st);
|
|
39
|
-
}
|
|
40
|
-
});
|
|
41
|
-
return st;
|
|
42
|
-
};
|
|
43
|
-
return Array.from(meta(config.tests, new Set()));
|
|
44
|
-
};
|
|
45
|
-
const config = Object.assign(Object.assign({}, rawConfig), { buildDir: process.cwd() + "/" + rawConfig.outdir });
|
|
46
|
-
let nodeDone = false;
|
|
47
|
-
let webDone = false;
|
|
48
|
-
let mode = config.devMode ? "DEV" : "PROD";
|
|
49
|
-
let status = "build";
|
|
50
|
-
// let pm: PM_Main | undefined = new PM_Main(config);
|
|
51
|
-
// const fileHashes = {};
|
|
52
|
-
const { nodeEntryPoints, webEntryPoints } = getRunnables(config.tests);
|
|
53
|
-
const onNodeDone = () => {
|
|
54
|
-
nodeDone = true;
|
|
55
|
-
onDone();
|
|
56
|
-
};
|
|
57
|
-
const onWebDone = () => {
|
|
58
|
-
webDone = true;
|
|
59
|
-
onDone();
|
|
60
|
-
};
|
|
61
|
-
const onDone = async () => {
|
|
62
|
-
if (nodeDone && webDone) {
|
|
63
|
-
status = "built";
|
|
64
|
-
}
|
|
65
|
-
if (nodeDone && webDone && status === "built") {
|
|
66
|
-
// Object.entries(nodeEntryPoints).forEach(([k, outputFile]) => {
|
|
67
|
-
// console.log("watching", outputFile);
|
|
68
|
-
// try {
|
|
69
|
-
// watch(outputFile, async (filename) => {
|
|
70
|
-
// const hash = await fileHash(outputFile);
|
|
71
|
-
// if (fileHashes[k] !== hash) {
|
|
72
|
-
// fileHashes[k] = hash;
|
|
73
|
-
// console.log(`< ${filename} `);
|
|
74
|
-
// pm.launchNode(k, outputFile);
|
|
75
|
-
// }
|
|
76
|
-
// });
|
|
77
|
-
// } catch (e) {
|
|
78
|
-
// console.error(e);
|
|
79
|
-
// }
|
|
80
|
-
// });
|
|
81
|
-
// Object.entries(webEntryPoints).forEach(([k, outputFile]) => {
|
|
82
|
-
// console.log("watching", outputFile);
|
|
83
|
-
// watch(outputFile, async (filename) => {
|
|
84
|
-
// const hash = await fileHash(outputFile);
|
|
85
|
-
// console.log(`< ${filename} ${hash}`);
|
|
86
|
-
// if (fileHashes[k] !== hash) {
|
|
87
|
-
// fileHashes[k] = hash;
|
|
88
|
-
// pm.launchWeb(k, outputFile);
|
|
89
|
-
// }
|
|
90
|
-
// });
|
|
91
|
-
// });
|
|
92
|
-
}
|
|
93
|
-
if (nodeDone && webDone && mode === "PROD") {
|
|
94
|
-
console.log("Testeranto-EsBuild is all done. Goodbye!");
|
|
95
|
-
process.exit();
|
|
96
|
-
}
|
|
97
|
-
else {
|
|
98
|
-
if (mode === "PROD") {
|
|
99
|
-
console.log("waiting for tests to finish");
|
|
100
|
-
console.log(JSON.stringify({
|
|
101
|
-
nodeDone: nodeDone,
|
|
102
|
-
webDone: webDone,
|
|
103
|
-
mode: mode,
|
|
104
|
-
}, null, 2));
|
|
105
|
-
}
|
|
106
|
-
else {
|
|
107
|
-
console.log("waiting for tests to change");
|
|
108
|
-
}
|
|
109
|
-
if (config.devMode) {
|
|
110
|
-
console.log("ready and watching for changes...");
|
|
111
|
-
}
|
|
112
|
-
else {
|
|
113
|
-
// pm.shutDown();
|
|
114
|
-
}
|
|
115
|
-
////////////////////////////////////////////////////////////////////////////////
|
|
116
|
-
}
|
|
117
|
-
};
|
|
118
|
-
console.log(`Press 'q' to shutdown gracefully. Press 'x' to shutdown forcefully.`);
|
|
119
|
-
process.stdin.on("keypress", (str, key) => {
|
|
120
|
-
if (key.name === "q") {
|
|
121
|
-
console.log("Testeranto-Build is shutting down...");
|
|
122
|
-
mode = "PROD";
|
|
123
|
-
onDone();
|
|
124
|
-
}
|
|
125
|
-
if (key.name === "x") {
|
|
126
|
-
console.log("Testeranto-Build is shutting down forcefully...");
|
|
127
|
-
process.exit(-1);
|
|
128
|
-
}
|
|
129
|
-
});
|
|
130
|
-
fs.writeFileSync(`${config.outdir}/testeranto.json`, JSON.stringify(config, null, 2));
|
|
131
|
-
Promise.resolve(Promise.all([...getSecondaryEndpointsPoints("web")].map(async (sourceFilePath) => {
|
|
132
|
-
const sourceFileSplit = sourceFilePath.split("/");
|
|
133
|
-
const sourceDir = sourceFileSplit.slice(0, -1);
|
|
134
|
-
const sourceFileName = sourceFileSplit[sourceFileSplit.length - 1];
|
|
135
|
-
const sourceFileNameMinusJs = sourceFileName
|
|
136
|
-
.split(".")
|
|
137
|
-
.slice(0, -1)
|
|
138
|
-
.join(".");
|
|
139
|
-
const htmlFilePath = path.normalize(`${process.cwd()}/${config.outdir}/web/${sourceDir.join("/")}/${sourceFileNameMinusJs}.html`);
|
|
140
|
-
const jsfilePath = `./${sourceFileNameMinusJs}.mjs`;
|
|
141
|
-
return fs.promises
|
|
142
|
-
.mkdir(path.dirname(htmlFilePath), { recursive: true })
|
|
143
|
-
.then((x) => fs.writeFileSync(htmlFilePath, webHtmlFrame(jsfilePath, htmlFilePath)));
|
|
144
|
-
})));
|
|
145
|
-
glob(`./${config.outdir}/chunk-*.mjs`, {
|
|
146
|
-
ignore: "node_modules/**",
|
|
147
|
-
}).then((chunks) => {
|
|
148
|
-
chunks.forEach((chunk) => {
|
|
149
|
-
fs.unlinkSync(chunk);
|
|
150
|
-
});
|
|
151
|
-
});
|
|
152
|
-
await Promise.all([
|
|
153
|
-
esbuild
|
|
154
|
-
.context(esbuildNodeConfiger(config, Object.keys(nodeEntryPoints)))
|
|
155
|
-
.then(async (nodeContext) => {
|
|
156
|
-
if (config.devMode) {
|
|
157
|
-
await nodeContext.watch().then((v) => {
|
|
158
|
-
onNodeDone();
|
|
159
|
-
});
|
|
160
|
-
}
|
|
161
|
-
else {
|
|
162
|
-
nodeContext.rebuild().then((v) => {
|
|
163
|
-
onNodeDone();
|
|
164
|
-
});
|
|
165
|
-
}
|
|
166
|
-
return nodeContext;
|
|
167
|
-
}),
|
|
168
|
-
esbuild
|
|
169
|
-
.context(esbuildWebConfiger(config, Object.keys(webEntryPoints)))
|
|
170
|
-
.then(async (webContext) => {
|
|
171
|
-
if (config.devMode) {
|
|
172
|
-
await webContext.watch().then((v) => {
|
|
173
|
-
onWebDone();
|
|
174
|
-
});
|
|
175
|
-
}
|
|
176
|
-
else {
|
|
177
|
-
webContext.rebuild().then((v) => {
|
|
178
|
-
onWebDone();
|
|
179
|
-
});
|
|
180
|
-
}
|
|
181
|
-
return webContext;
|
|
182
|
-
}),
|
|
183
|
-
]);
|
|
184
|
-
});
|
package/dist/module/init-docs.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import fs from "fs";
|
|
2
|
-
import Init from "./Init";
|
|
3
|
-
console.log("Initializing a testeranto project");
|
|
4
|
-
if (!process.argv[2]) {
|
|
5
|
-
console.log("You didn't pass a config file, so I will create one for you.");
|
|
6
|
-
fs.writeFileSync("testeranto.mts", fs.readFileSync("node_modules/testeranto/src/defaultConfig.ts"));
|
|
7
|
-
import(process.cwd() + "/" + "testeranto.mts").then((module) => {
|
|
8
|
-
Init(module.default);
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
else {
|
|
12
|
-
import(process.cwd() + "/" + process.argv[2]).then((module) => {
|
|
13
|
-
Init(module.default);
|
|
14
|
-
});
|
|
15
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import http from "http";
|
|
2
|
-
export default async (port) => new Promise((resolve, reject) => {
|
|
3
|
-
let json = "";
|
|
4
|
-
const request = http.request({
|
|
5
|
-
host: "127.0.0.1",
|
|
6
|
-
path: "/json/version",
|
|
7
|
-
port,
|
|
8
|
-
}, (response) => {
|
|
9
|
-
response.on("error", reject);
|
|
10
|
-
response.on("data", (chunk) => {
|
|
11
|
-
json += chunk.toString();
|
|
12
|
-
});
|
|
13
|
-
response.on("end", () => {
|
|
14
|
-
resolve(JSON.parse(json));
|
|
15
|
-
});
|
|
16
|
-
});
|
|
17
|
-
request.on("error", reject);
|
|
18
|
-
request.end();
|
|
19
|
-
});
|
package/dist/module/utils.js
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import path from "path";
|
|
2
|
-
export const destinationOfRuntime = (f, r, configs) => {
|
|
3
|
-
return path
|
|
4
|
-
.normalize(`${configs.buildDir}/${r}/${f}`)
|
|
5
|
-
.split(".")
|
|
6
|
-
.slice(0, -1)
|
|
7
|
-
.join(".");
|
|
8
|
-
};
|
|
9
|
-
export const tscPather = (entryPoint, platform) => {
|
|
10
|
-
return path.join("./docs/", platform, entryPoint.split(".").slice(0, -1).join("."), `type_errors.txt`);
|
|
11
|
-
};
|
|
12
|
-
export const tscExitCodePather = (entryPoint, platform) => {
|
|
13
|
-
return path.join("./docs/", platform, entryPoint.split(".").slice(0, -1).join("."), `type_errors.txt`);
|
|
14
|
-
};
|
|
15
|
-
export const lintPather = (entryPoint, platform) => {
|
|
16
|
-
return path.join("./docs/", platform, entryPoint.split(".").slice(0, -1).join("."), `lint_errors.json`);
|
|
17
|
-
};
|
|
18
|
-
export const lintExitCodePather = (entryPoint, platform) => {
|
|
19
|
-
return path.join("./docs/", platform, entryPoint.split(".").slice(0, -1).join("."), `lint_errors.txt`);
|
|
20
|
-
};
|
|
21
|
-
export const bddPather = (entryPoint, platform) => {
|
|
22
|
-
return path.join("./docs/", platform, entryPoint.split(".").slice(0, -1).join("."), `tests.json`);
|
|
23
|
-
};
|
|
24
|
-
export const bddExitCodePather = (entryPoint, platform) => {
|
|
25
|
-
return path.join("./docs/", platform, entryPoint.split(".").slice(0, -1).join("."), `bdd_errors.txt`);
|
|
26
|
-
};
|
|
27
|
-
export const promptPather = (entryPoint, platform) => {
|
|
28
|
-
return path.join("./docs/", platform, entryPoint.split(".").slice(0, -1).join("."), `prompt.txt`);
|
|
29
|
-
};
|
package/dist/types/Init.d.ts
DELETED
package/dist/types/Node.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import Testeranto from "./lib/core.js";
|
|
2
|
-
import { ITTestResourceRequest } from "./lib/index.js";
|
|
3
|
-
import type { Ibdd_in, Ibdd_out, INodeTestInterface, ITestImplementation, ITestInterface, ITestSpecification } from "./Types.js";
|
|
4
|
-
export declare class NodeTesteranto<I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>, O extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>> extends Testeranto<I, O> {
|
|
5
|
-
constructor(input: I["iinput"], testSpecification: ITestSpecification<I, O>, testImplementation: ITestImplementation<I, O>, testResourceRequirement: ITTestResourceRequest, testInterface: Partial<ITestInterface<I>>);
|
|
6
|
-
receiveTestResourceConfig(partialTestResource: string): Promise<{
|
|
7
|
-
features: string[];
|
|
8
|
-
failed: number;
|
|
9
|
-
}>;
|
|
10
|
-
}
|
|
11
|
-
declare const _default: <I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>, O extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>>(input: I["iinput"], testSpecification: ITestSpecification<I, O>, testImplementation: ITestImplementation<I, O>, testInterface: Partial<INodeTestInterface<I>>, testResourceRequirement?: ITTestResourceRequest) => Promise<Testeranto<I, O>>;
|
|
12
|
-
export default _default;
|
package/dist/types/PM/main.d.ts
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { CdpPage, Page } from "puppeteer-core/lib/esm/puppeteer";
|
|
2
|
-
import fs from "fs";
|
|
3
|
-
import { Browser } from "puppeteer-core";
|
|
4
|
-
import { PassThrough } from "stream";
|
|
5
|
-
import { IBuiltConfig, ITestTypes, ITLog } from "../lib/index.js";
|
|
6
|
-
import { ISummary } from "../utils";
|
|
7
|
-
import { PM } from "./index.js";
|
|
8
|
-
export declare class PM_Main extends PM {
|
|
9
|
-
browser: Browser;
|
|
10
|
-
shutdownMode: boolean;
|
|
11
|
-
configs: IBuiltConfig;
|
|
12
|
-
ports: Record<number, boolean>;
|
|
13
|
-
queue: any[];
|
|
14
|
-
mode: "DEV" | "PROD";
|
|
15
|
-
bigBoard: ISummary;
|
|
16
|
-
webMetafileWatcher: fs.FSWatcher;
|
|
17
|
-
nodeMetafileWatcher: fs.FSWatcher;
|
|
18
|
-
constructor(configs: IBuiltConfig);
|
|
19
|
-
stop: () => void;
|
|
20
|
-
customclose(): void;
|
|
21
|
-
waitForSelector(p: string, s: string): any;
|
|
22
|
-
closePage(p: any): any;
|
|
23
|
-
newPage(): CdpPage;
|
|
24
|
-
goto(p: any, url: string): any;
|
|
25
|
-
$(selector: string): boolean;
|
|
26
|
-
screencast(opts: object): void;
|
|
27
|
-
customScreenShot(opts: object, cdpPage?: CdpPage): void;
|
|
28
|
-
end(accessObject: {
|
|
29
|
-
uid: number;
|
|
30
|
-
}): boolean;
|
|
31
|
-
existsSync(destFolder: string): boolean;
|
|
32
|
-
mkdirSync(fp: string): Promise<string | false | undefined>;
|
|
33
|
-
writeFileSync(fp: string, contents: string): void;
|
|
34
|
-
createWriteStream(filepath: string): fs.WriteStream;
|
|
35
|
-
testArtiFactoryfileWriter(tLog: ITLog, callback: (Promise: any) => void): (fPath: any, value: string | Buffer | PassThrough) => void;
|
|
36
|
-
write(accessObject: {
|
|
37
|
-
uid: number;
|
|
38
|
-
}, contents: string): boolean;
|
|
39
|
-
page(): string | undefined;
|
|
40
|
-
click(selector: string): string | undefined;
|
|
41
|
-
focusOn(selector: string): void;
|
|
42
|
-
typeInto(value: string): void;
|
|
43
|
-
getValue(value: string): void;
|
|
44
|
-
getAttribute(selector: string, attribute: string): void;
|
|
45
|
-
isDisabled(selector: string): Promise<boolean>;
|
|
46
|
-
screencastStop(s: string): void;
|
|
47
|
-
metafileOutputs(platform: "web" | "node"): Promise<void>;
|
|
48
|
-
start(): Promise<any>;
|
|
49
|
-
tscCheck: ({ entrypoint, addableFiles, platform, }: {
|
|
50
|
-
platform: "web" | "node";
|
|
51
|
-
entrypoint: string;
|
|
52
|
-
addableFiles: string[];
|
|
53
|
-
}) => Promise<void>;
|
|
54
|
-
eslintCheck: (entrypoint: string, platform: "web" | "node", addableFiles: string[]) => Promise<void>;
|
|
55
|
-
makePrompt: (entryPoint: string, addableFiles: string[], platform: "web" | "node") => Promise<void>;
|
|
56
|
-
checkForShutdown: () => void;
|
|
57
|
-
testIsNowRunning: (src: string) => void;
|
|
58
|
-
testIsNowDone: (src: string) => void;
|
|
59
|
-
launchNode: (src: string, dest: string) => Promise<void>;
|
|
60
|
-
launchWebSideCar: (src: string, dest: string, testConfig: ITestTypes) => Promise<Page>;
|
|
61
|
-
launchNodeSideCar: (src: string, dest: string, testConfig: ITestTypes) => Promise<void>;
|
|
62
|
-
launchWeb: (t: string, dest: string) => void;
|
|
63
|
-
receiveFeatures: (features: string[], destFolder: string, srcTest: string) => void;
|
|
64
|
-
receiveExitCode: (srcTest: string, failures: number) => void;
|
|
65
|
-
writeBigBoard: () => void;
|
|
66
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { Ibdd_in, Ibdd_out, ITestImplementation, ITestSpecification } from "../../../Types";
|
|
3
|
-
type IInput = typeof React.Component;
|
|
4
|
-
export type IImpl<I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>, O extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>> = ITestImplementation<I, O>;
|
|
5
|
-
export type ISpec<I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>, O extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>> = ITestSpecification<I, O>;
|
|
6
|
-
declare const _default: <I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>, O extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>>(testImplementations: ITestImplementation<I, O>, testSpecifications: ISpec<I, O>, testInput: IInput) => Promise<import("../../../lib/core.js").default<I, O>>;
|
|
7
|
-
export default _default;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { Ibdd_in, Ibdd_out, ITestImplementation, ITestSpecification } from "../../../Types";
|
|
3
|
-
type IInput = typeof React.Component;
|
|
4
|
-
export type IImpl<I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>, O extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>> = ITestImplementation<I, O>;
|
|
5
|
-
export type ISpec<I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>, O extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>> = ITestSpecification<I, O>;
|
|
6
|
-
declare const _default: <I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>, O extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>>(testImplementations: ITestImplementation<I, O>, testSpecifications: ISpec<I, O>, testInput: IInput) => Promise<import("../../../lib/core.js").default<I, O>>;
|
|
7
|
-
export default _default;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { CElement } from "react";
|
|
2
|
-
import { Ibdd_in, Ibdd_out, IPartialInterface, ITestImplementation, ITestSpecification } from "../../../Types";
|
|
3
|
-
export type IWhenShape = any;
|
|
4
|
-
export type IThenShape = any;
|
|
5
|
-
export type InitialState = unknown;
|
|
6
|
-
export type IInput = () => JSX.Element;
|
|
7
|
-
export type ISelection = CElement<any, any>;
|
|
8
|
-
export type IStore = CElement<any, any>;
|
|
9
|
-
export type ISubject = CElement<any, any>;
|
|
10
|
-
export type ITestImpl<I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>, O extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>> = ITestImplementation<I, O>;
|
|
11
|
-
export type ITestSpec<I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>, O extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>> = ITestSpecification<I, O>;
|
|
12
|
-
export declare const testInterface: IPartialInterface<any>;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { Ibdd_in, Ibdd_out, IPartialInterface } from "../../../Types";
|
|
2
|
-
import { ITestImpl, ITestSpec, IInput } from "./index.js";
|
|
3
|
-
declare const _default: <I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>, O extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>>(testImplementations: ITestImpl<I, O>, testSpecifications: ITestSpec<I, O>, testInput: IInput, testInterface?: IPartialInterface<I>) => Promise<import("../../../lib/core.js").default<I, O>>;
|
|
4
|
-
export default _default;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { Ibdd_in, Ibdd_out, IPartialWebInterface } from "../../../Types";
|
|
2
|
-
import { ITestImpl, ITestSpec, IInput } from "./index.js";
|
|
3
|
-
declare const _default: <I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>, O extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>>(testImplementations: ITestImpl<I, O>, testSpecifications: ITestSpec<I, O>, testInput: IInput, testInterface: IPartialWebInterface<I>) => Promise<import("../../../lib/core").default<I, O>>;
|
|
4
|
-
export default _default;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode } from "react";
|
|
2
|
-
import { renderToStaticMarkup, renderToStaticNodeStream } from "react-dom/server";
|
|
3
|
-
import Stream from "stream";
|
|
4
|
-
import { Ibdd_in, Ibdd_out, ITestImplementation, ITestSpecification } from "../../../Types";
|
|
5
|
-
type IInput = typeof React.Component;
|
|
6
|
-
export type ISelection = ReactNode;
|
|
7
|
-
export type IStore = ReactNode;
|
|
8
|
-
export type ISubject = ReactNode;
|
|
9
|
-
export { renderToStaticMarkup, renderToStaticNodeStream, Stream };
|
|
10
|
-
declare const _default: <I extends Ibdd_in<IInput, ISubject, IStore, ISelection, unknown, (s: IStore) => IStore, unknown>, O extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>>(testImplementations: ITestImplementation<I, O>, testSpecifications: ITestSpecification<I, O>, testInput: IInput) => Promise<import("../../../lib/core.js").default<I, O>>;
|
|
11
|
-
export default _default;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import ReactDom from "react-dom/client";
|
|
3
|
-
import { Ibdd_in, Ibdd_out, IPartialWebInterface, ITestImplementation, ITestSpecification } from "../../../Types";
|
|
4
|
-
type IInput = typeof React.Component;
|
|
5
|
-
type ISelection = {
|
|
6
|
-
htmlElement: HTMLElement;
|
|
7
|
-
reactElement: any;
|
|
8
|
-
domRoot: ReactDom.Root;
|
|
9
|
-
};
|
|
10
|
-
export type IStore = {
|
|
11
|
-
htmlElement: HTMLElement;
|
|
12
|
-
reactElement: any;
|
|
13
|
-
domRoot: ReactDom.Root;
|
|
14
|
-
};
|
|
15
|
-
type ISubject = {
|
|
16
|
-
htmlElement: HTMLElement;
|
|
17
|
-
domRoot: ReactDom.Root;
|
|
18
|
-
};
|
|
19
|
-
declare const _default: <I extends Ibdd_in<IInput, ISubject, ISelection, IStore, (s: IStore) => IStore, (s: IStore) => IStore, (s: IStore) => IStore>, O extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>>(testInput: IInput, testSpecifications: ITestSpecification<I, O>, testImplementations: ITestImplementation<I, O>, testInterface?: IPartialWebInterface<any>) => Promise<import("../../../lib/core.js").default<I, O>>;
|
|
20
|
-
export default _default;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { renderToStaticMarkup, renderToStaticNodeStream } from "react-dom/server";
|
|
2
|
-
import Stream from "stream";
|
|
3
|
-
import { Ibdd_in, Ibdd_out, ITestImplementation, ITestSpecification } from "../../../Types";
|
|
4
|
-
import { IInput, ISelection, IStore } from "./index.js";
|
|
5
|
-
export { renderToStaticMarkup, renderToStaticNodeStream, Stream };
|
|
6
|
-
declare const _default: <I extends Ibdd_in<IInput, unknown, ISelection, IStore, unknown, unknown, unknown>, O extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>>(testImplementations: ITestImplementation<I, O>, testSpecifications: ITestSpecification<I, O>, testInput: I["iinput"]) => Promise<import("../../../lib/core.js").default<I, O>>;
|
|
7
|
-
export default _default;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { Ibdd_in, Ibdd_out, ITestImplementation, ITestSpecification } from "../../../Types";
|
|
2
|
-
import type { IInput, ISelection, IStore, IThenShape, IWhenShape } from "./index";
|
|
3
|
-
export type ISubject = HTMLElement;
|
|
4
|
-
declare const _default: <I extends Ibdd_in<IInput, ISubject, ISelection, IStore, unknown, IWhenShape, IThenShape>, O extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>>(testImplementations: ITestImplementation<I, O>, testSpecifications: ITestSpecification<I, O>, testInput: IInput) => Promise<import("../../../lib/core.js").default<I, O>>;
|
|
5
|
-
export default _default;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import renderer from "react-test-renderer";
|
|
3
|
-
import type { Ibdd_in, Ibdd_out, ITestImplementation, ITestSpecification } from "../../../Types";
|
|
4
|
-
export type ISuper<T> = T extends infer U ? U : object;
|
|
5
|
-
export type IInput<P, S> = typeof React.Component<P, S>;
|
|
6
|
-
export type InitialState = unknown;
|
|
7
|
-
export type IWhenShape = any;
|
|
8
|
-
export type IThenShape = any;
|
|
9
|
-
export type ISelection = renderer.ReactTestRenderer;
|
|
10
|
-
export type IStore = renderer.ReactTestRenderer;
|
|
11
|
-
export type ISubject = renderer.ReactTestRenderer;
|
|
12
|
-
export type IImpl<I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>, O extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>> = ITestImplementation<I, O>;
|
|
13
|
-
export type ISpec<I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>, O extends Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>> = ITestSpecification<I, O>;
|