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
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
// @ts-check
|
|
2
|
+
|
|
3
|
+
import eslint from '@eslint/js';
|
|
4
|
+
import tseslint from 'typescript-eslint';
|
|
5
|
+
import { FlatCompat } from '@eslint/eslintrc'
|
|
6
|
+
import { configs as importconfigs, flatConfigs } from "eslint-plugin-import";
|
|
7
|
+
// import importPlugin from 'eslint-plugin-import';
|
|
8
|
+
|
|
9
|
+
const cycleDetector = flatConfigs.recommended;
|
|
10
|
+
cycleDetector.rules['import/no-cycle'] = "error";
|
|
11
|
+
// cycleDetector.extends = ["plugin:import/typescript"];
|
|
12
|
+
|
|
13
|
+
const eslintConfig = tseslint.config(
|
|
14
|
+
eslint.configs.recommended,
|
|
15
|
+
tseslint.configs.recommended,
|
|
16
|
+
// flatConfigs.recommended,
|
|
17
|
+
// {
|
|
18
|
+
// files: ['**/*.{,js,mjs,cjs,ts,tsx,mts}'],
|
|
19
|
+
// languageOptions: {
|
|
20
|
+
// ecmaVersion: 'latest',
|
|
21
|
+
// sourceType: 'module',
|
|
22
|
+
// },
|
|
23
|
+
// rules: {
|
|
24
|
+
// 'no-unused-vars': 'off',
|
|
25
|
+
// 'import/no-dynamic-require': 'warn',
|
|
26
|
+
// 'import/no-nodejs-modules': 'warn',
|
|
27
|
+
// },
|
|
28
|
+
// // "extends": [
|
|
29
|
+
// // "eslint:recommended",
|
|
30
|
+
// // "plugin:import/recommended",
|
|
31
|
+
// // // the following lines do the trick
|
|
32
|
+
// // "plugin:import/typescript",
|
|
33
|
+
// // ],
|
|
34
|
+
// // "extends": {
|
|
35
|
+
// // eslint: "eslint:recommended",
|
|
36
|
+
// // importRecommended: "plugin:import/recommended",
|
|
37
|
+
// // // the following lines do the trick
|
|
38
|
+
// // importTypescript: "plugin:import/typescript",
|
|
39
|
+
// // },
|
|
40
|
+
// "settings": {
|
|
41
|
+
// "import/resolver": {
|
|
42
|
+
// // You will also need to install and configure the TypeScript resolver
|
|
43
|
+
// // See also https://github.com/import-js/eslint-import-resolver-typescript#configuration
|
|
44
|
+
// "typescript": true,
|
|
45
|
+
// "node": true,
|
|
46
|
+
// },
|
|
47
|
+
// },
|
|
48
|
+
// },
|
|
49
|
+
|
|
50
|
+
// {
|
|
51
|
+
// "extends": [
|
|
52
|
+
// "eslint:recommended",
|
|
53
|
+
// "plugin:import/recommended",
|
|
54
|
+
// // the following lines do the trick
|
|
55
|
+
// "plugin:import/typescript",
|
|
56
|
+
// ],
|
|
57
|
+
// "settings": {
|
|
58
|
+
// "import/resolver": {
|
|
59
|
+
// // You will also need to install and configure the TypeScript resolver
|
|
60
|
+
// // See also https://github.com/import-js/eslint-import-resolver-typescript#configuration
|
|
61
|
+
// "typescript": true,
|
|
62
|
+
// "node": true,
|
|
63
|
+
// },
|
|
64
|
+
// },
|
|
65
|
+
// }
|
|
66
|
+
|
|
67
|
+
// {
|
|
68
|
+
// files: ['*.ts', '*.tsx'],
|
|
69
|
+
// plugins: {
|
|
70
|
+
// 'import': cycleDetector
|
|
71
|
+
// },
|
|
72
|
+
// settings: {
|
|
73
|
+
// 'import/resolver': {
|
|
74
|
+
// typescript: {},
|
|
75
|
+
// node: {
|
|
76
|
+
// extensions: ['.js', '.jsx', '.ts', '.tsx'],
|
|
77
|
+
// },
|
|
78
|
+
// },
|
|
79
|
+
// 'import/extensions': ['.js', '.jsx', '.ts', '.tsx'],
|
|
80
|
+
// },
|
|
81
|
+
// rules: {
|
|
82
|
+
// // Add or override rules as needed
|
|
83
|
+
// },
|
|
84
|
+
// }
|
|
85
|
+
// cycleDetector
|
|
86
|
+
// configs
|
|
87
|
+
// {
|
|
88
|
+
// // ...configs,
|
|
89
|
+
// "plugins": { "import": {} },
|
|
90
|
+
// "rules": {
|
|
91
|
+
// "import/no-cycle": "error" // or "warn"
|
|
92
|
+
// },
|
|
93
|
+
// // extends: flatConfigs
|
|
94
|
+
// // "extends": [
|
|
95
|
+
// // "plugin:import/typescript"
|
|
96
|
+
// // ],
|
|
97
|
+
// }
|
|
98
|
+
)
|
|
99
|
+
|
|
100
|
+
// eslintConfig.push({
|
|
101
|
+
// "plugins": { "import": {} },
|
|
102
|
+
// "rules": {
|
|
103
|
+
// "import/no-cycle": "error" // or "warn"
|
|
104
|
+
// },
|
|
105
|
+
// })
|
|
106
|
+
// eslintConfig.plugins['import/typescript'] = importconfigs
|
|
107
|
+
// console.log("HELLO TSLINT eslintConfig", eslintConfig)
|
|
108
|
+
// console.log("HELLO TSLINT importconfigs", importconfigs)
|
|
109
|
+
// console.log("HELLO TSLINT flatConfigs", flatConfigs)
|
|
110
|
+
|
|
111
|
+
export default eslintConfig;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "testeranto",
|
|
3
3
|
"description": "the AI powered BDD test framework for typescript projects",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.125.0",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": "18.18.0"
|
|
7
7
|
},
|
|
@@ -17,21 +17,25 @@
|
|
|
17
17
|
"import": "./dist/cjs-shim.js",
|
|
18
18
|
"require": "./dist/cjs-shim.js"
|
|
19
19
|
},
|
|
20
|
-
"./src/SubPackages
|
|
21
|
-
"import": "./dist/module/SubPackages/
|
|
22
|
-
"require": "./dist/common/SubPackages/
|
|
20
|
+
"./src/SubPackages/**/*": {
|
|
21
|
+
"import": "./dist/module/SubPackages/",
|
|
22
|
+
"require": "./dist/common/SubPackages/"
|
|
23
23
|
},
|
|
24
24
|
"./src/SubPackages/react/jsx/index": {
|
|
25
|
-
"import": "./
|
|
26
|
-
"require": "./
|
|
25
|
+
"import": "./src/SubPackages/react/jsx/index.ts",
|
|
26
|
+
"require": "./src/SubPackages/react/jsx/index.ts"
|
|
27
27
|
},
|
|
28
28
|
"./src/SubPackages/react/jsx/web": {
|
|
29
29
|
"import": "./src/SubPackages/react/jsx/web.ts",
|
|
30
30
|
"require": "./src/SubPackages/react/jsx/web.ts"
|
|
31
31
|
},
|
|
32
32
|
"./src/SubPackages/react/jsx/node": {
|
|
33
|
-
"import": "./
|
|
34
|
-
"require": "./
|
|
33
|
+
"import": "./src/SubPackages/react/jsx/node.ts",
|
|
34
|
+
"require": "./src/SubPackages/react/jsx/node.ts"
|
|
35
|
+
},
|
|
36
|
+
"./src/SubPackages/react/jsx/pure": {
|
|
37
|
+
"import": "./src/SubPackages/react/jsx/pure.ts",
|
|
38
|
+
"require": "./src/SubPackages/react/jsx/pure.ts"
|
|
35
39
|
},
|
|
36
40
|
"./src/SubPackages/react/component/index": {
|
|
37
41
|
"import": "./dist/module/SubPackages/react/component/index.js",
|
|
@@ -73,6 +77,10 @@
|
|
|
73
77
|
"import": "./dist/module/SubPackages/react-test-renderer/jsx/node.js",
|
|
74
78
|
"require": "./dist/common/SubPackages/react-test-renderer/jsx/node.js"
|
|
75
79
|
},
|
|
80
|
+
"./src/SubPackages/react-test-renderer/jsx/pure.js": {
|
|
81
|
+
"import": "./dist/module/SubPackages/react-test-renderer/jsx/pure.js",
|
|
82
|
+
"require": "./dist/common/SubPackages/react-test-renderer/jsx/pure.js"
|
|
83
|
+
},
|
|
76
84
|
"./src/SubPackages/react-test-renderer/jsx-promised/index": {
|
|
77
85
|
"import": "./dist/module/SubPackages/react-test-renderer/jsx-promised/index.js",
|
|
78
86
|
"require": "./dist/common/SubPackages/react-test-renderer/jsx-promised/index.js"
|
|
@@ -114,8 +122,8 @@
|
|
|
114
122
|
"require": "./dist/common/SubPackages/react-dom/component/node.js"
|
|
115
123
|
},
|
|
116
124
|
"./src/Types": {
|
|
117
|
-
"import": "./Types.ts",
|
|
118
|
-
"require": "./Types.ts"
|
|
125
|
+
"import": "./src/Types.ts",
|
|
126
|
+
"require": "./src/Types.ts"
|
|
119
127
|
},
|
|
120
128
|
"./src/utils": {
|
|
121
129
|
"import": "./utils.ts",
|
|
@@ -141,6 +149,10 @@
|
|
|
141
149
|
"import": "./src/Node.ts",
|
|
142
150
|
"require": "./src/Node.ts"
|
|
143
151
|
},
|
|
152
|
+
"./src/Pure": {
|
|
153
|
+
"import": "./src/Pure.ts",
|
|
154
|
+
"require": "./src/Pure.ts"
|
|
155
|
+
},
|
|
144
156
|
"./src/Init": {
|
|
145
157
|
"import": "./dist/module/src/Init.js",
|
|
146
158
|
"require": "./dist/common/src/Init.js"
|
|
@@ -181,7 +193,7 @@
|
|
|
181
193
|
"ATDD"
|
|
182
194
|
],
|
|
183
195
|
"scripts": {
|
|
184
|
-
"build-hard": "rm -rf dist/** && yarn
|
|
196
|
+
"build-hard": "rm -rf dist/** && yarn bundle && yarn build && yarn type-check",
|
|
185
197
|
"doit": "rm -rf node_modules && yarn install && yarn build",
|
|
186
198
|
"build": "sh prebuild.sh; cp ./src/cjs-shim.js ./dist/cjs-shim.js; tsc -p tsconfig.module.json; tsc -p tsconfig.common.json; tsc -p tsconfig.types.json; sh postBuild.sh; yarn bundle",
|
|
187
199
|
"dev": "cp ./src/cjs-shim.js ./dist/cjs-shim.js && tsc -p tsconfig.module.json --watch & tsc -p tsconfig.common.json --watch & tsc -p tsconfig.types.json --watch ",
|
|
@@ -189,7 +201,11 @@
|
|
|
189
201
|
"build-module": "tsc -p tsconfig.module.json",
|
|
190
202
|
"build-common": "tsc -p tsconfig.common.json",
|
|
191
203
|
"build-types": "tsc -p tsconfig.types.json",
|
|
192
|
-
"type-check": "yarn tsc --noEmit > tsc.log"
|
|
204
|
+
"type-check": "yarn tsc --noEmit > tsc.log",
|
|
205
|
+
"type-fix": "aider --model deepseek/deepseek-chat --load type-fix.txt",
|
|
206
|
+
"t-build": "tsx node_modules/testeranto/dist/prebuild/build.mjs",
|
|
207
|
+
"t-run": "tsx node_modules/testeranto/dist/prebuild/run.mjs",
|
|
208
|
+
"t-init": "tsx node_modules/testeranto/dist/prebuild/init-docs.mjs"
|
|
193
209
|
},
|
|
194
210
|
"peerDependencies": {
|
|
195
211
|
"@types/react": "18.2.0",
|
|
@@ -242,6 +258,7 @@
|
|
|
242
258
|
"fs-extra": "^11.2.0",
|
|
243
259
|
"fs.promises.exists": "^1.1.4",
|
|
244
260
|
"glob": "^10.3.12",
|
|
261
|
+
"is-path-inside": "^4.0.0",
|
|
245
262
|
"iterm-tab": "^0.4.0",
|
|
246
263
|
"live-server": "^1.2.2",
|
|
247
264
|
"node-static": "^0.7.11",
|
|
@@ -254,7 +271,11 @@
|
|
|
254
271
|
"react-router-dom": "6.29.0",
|
|
255
272
|
"react-test-renderer": "18.2.0",
|
|
256
273
|
"recursive-watch": "^1.1.4",
|
|
274
|
+
"rpc-over-ipc": "^1.0.0",
|
|
275
|
+
"testeranto": "^0.121.1",
|
|
257
276
|
"tsc-prog": "^2.3.0",
|
|
277
|
+
"tsx": "^4.19.3",
|
|
278
|
+
"typescript-eslint": "^8.29.1",
|
|
258
279
|
"url": "^0.11.4",
|
|
259
280
|
"uuid": "^10.0.0",
|
|
260
281
|
"why-is-node-running": "^3.2.2",
|
package/src/Init.ts
CHANGED
|
@@ -1,96 +1,50 @@
|
|
|
1
1
|
import fs from "fs";
|
|
2
2
|
|
|
3
|
-
export default async (
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
export default async () => {
|
|
4
|
+
[
|
|
5
|
+
`testeranto/`,
|
|
6
|
+
`testeranto/bundles/`,
|
|
7
|
+
`testeranto/bundles/node`,
|
|
8
|
+
`testeranto/bundles/web`,
|
|
9
|
+
`testeranto/bundles/pure`,
|
|
10
|
+
`testeranto/reports`,
|
|
11
|
+
`testeranto/reports/`,
|
|
12
|
+
`testeranto/features/`,
|
|
13
|
+
].forEach((f) => {
|
|
14
|
+
try {
|
|
15
|
+
fs.mkdirSync(`${process.cwd()}/${f}`);
|
|
16
|
+
} catch (e) {
|
|
17
|
+
// console.error(e);
|
|
18
|
+
}
|
|
19
|
+
});
|
|
8
20
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
// console.log()
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
fs.writeFileSync(
|
|
16
|
-
`${config.outdir}/index.html`,
|
|
17
|
-
`
|
|
18
|
-
<!DOCTYPE html>
|
|
19
|
-
<html lang="en">
|
|
20
|
-
|
|
21
|
-
<head>
|
|
22
|
-
<meta name="description" content="Webpage description goes here" />
|
|
23
|
-
<meta charset="utf-8" />
|
|
24
|
-
<title>kokomoBay - testeranto</title>
|
|
25
|
-
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
26
|
-
<meta name="author" content="" />
|
|
27
|
-
|
|
28
|
-
<link rel="stylesheet" href="/kokomoBay/docs/ReportClient.css" />
|
|
29
|
-
<script type="module" src="/kokomoBay/docs/ReportClient.js"></script>
|
|
30
|
-
|
|
31
|
-
</head>
|
|
32
|
-
|
|
33
|
-
<body>
|
|
34
|
-
<div id="root">
|
|
35
|
-
react is loading
|
|
36
|
-
</div>
|
|
37
|
-
</body>
|
|
38
|
-
|
|
39
|
-
</html>
|
|
40
|
-
`
|
|
21
|
+
fs.copyFileSync(
|
|
22
|
+
`node_modules/testeranto/dist/prebuild/Project.js`,
|
|
23
|
+
`testeranto/Project.js`
|
|
41
24
|
);
|
|
42
25
|
|
|
43
26
|
fs.copyFileSync(
|
|
44
27
|
`node_modules/testeranto/dist/prebuild/ReportClient.js`,
|
|
45
|
-
|
|
28
|
+
`testeranto/ReportClient.js`
|
|
29
|
+
);
|
|
30
|
+
|
|
31
|
+
fs.copyFileSync(
|
|
32
|
+
`node_modules/testeranto/dist/prebuild/Project.css`,
|
|
33
|
+
`testeranto/Project.css`
|
|
46
34
|
);
|
|
47
35
|
|
|
48
36
|
fs.copyFileSync(
|
|
49
37
|
`node_modules/testeranto/dist/prebuild/ReportClient.css`,
|
|
50
|
-
|
|
38
|
+
`testeranto/ReportClient.css`
|
|
51
39
|
);
|
|
52
40
|
|
|
53
41
|
fs.copyFileSync(
|
|
54
42
|
`node_modules/testeranto/dist/prebuild/TestReport.js`,
|
|
55
|
-
|
|
43
|
+
`testeranto/TestReport.js`
|
|
56
44
|
);
|
|
57
45
|
|
|
58
46
|
fs.copyFileSync(
|
|
59
47
|
`node_modules/testeranto/dist/prebuild/TestReport.css`,
|
|
60
|
-
|
|
48
|
+
`testeranto/TestReport.css`
|
|
61
49
|
);
|
|
62
|
-
|
|
63
|
-
fs.writeFileSync(
|
|
64
|
-
`${config.outdir}/testeranto.json`,
|
|
65
|
-
JSON.stringify(
|
|
66
|
-
{
|
|
67
|
-
...config,
|
|
68
|
-
buildDir: process.cwd() + "/" + config.outdir,
|
|
69
|
-
},
|
|
70
|
-
null,
|
|
71
|
-
2
|
|
72
|
-
)
|
|
73
|
-
);
|
|
74
|
-
|
|
75
|
-
try {
|
|
76
|
-
fs.mkdirSync(`${process.cwd()}/${config.outdir}/node`);
|
|
77
|
-
} catch {
|
|
78
|
-
// console.log()
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
try {
|
|
82
|
-
fs.mkdirSync(`${process.cwd()}/${config.outdir}/web`);
|
|
83
|
-
} catch {
|
|
84
|
-
// console.log()
|
|
85
|
-
}
|
|
86
|
-
try {
|
|
87
|
-
fs.mkdirSync(`${process.cwd()}/${config.outdir}/features`);
|
|
88
|
-
} catch {
|
|
89
|
-
// console.log()
|
|
90
|
-
}
|
|
91
|
-
try {
|
|
92
|
-
fs.mkdirSync(`${process.cwd()}/${config.outdir}/ts`);
|
|
93
|
-
} catch {
|
|
94
|
-
// console.log()
|
|
95
|
-
}
|
|
96
50
|
};
|
package/src/Node.ts
CHANGED
|
@@ -5,37 +5,24 @@ import {
|
|
|
5
5
|
ITTestResourceRequest,
|
|
6
6
|
} from "./lib/index.js";
|
|
7
7
|
import type {
|
|
8
|
-
Ibdd_in,
|
|
9
|
-
Ibdd_out,
|
|
10
8
|
INodeTestInterface,
|
|
9
|
+
IT,
|
|
11
10
|
ITestImplementation,
|
|
12
11
|
ITestInterface,
|
|
13
12
|
ITestSpecification,
|
|
13
|
+
OT,
|
|
14
14
|
} from "./Types.js";
|
|
15
15
|
import { PM_Node } from "./PM/node.js";
|
|
16
16
|
|
|
17
|
-
export class NodeTesteranto<
|
|
18
|
-
I
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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
|
-
> extends Testeranto<I, O> {
|
|
17
|
+
export class NodeTesteranto<I extends IT, O extends OT, M> extends Testeranto<
|
|
18
|
+
I,
|
|
19
|
+
O,
|
|
20
|
+
M
|
|
21
|
+
> {
|
|
35
22
|
constructor(
|
|
36
23
|
input: I["iinput"],
|
|
37
24
|
testSpecification: ITestSpecification<I, O>,
|
|
38
|
-
testImplementation: ITestImplementation<I, O>,
|
|
25
|
+
testImplementation: ITestImplementation<I, O, M>,
|
|
39
26
|
testResourceRequirement: ITTestResourceRequest,
|
|
40
27
|
testInterface: Partial<ITestInterface<I>>
|
|
41
28
|
) {
|
|
@@ -54,42 +41,51 @@ export class NodeTesteranto<
|
|
|
54
41
|
async receiveTestResourceConfig(partialTestResource: string) {
|
|
55
42
|
const t: ITTestResourceConfiguration = JSON.parse(partialTestResource);
|
|
56
43
|
const pm = new PM_Node(t);
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
//
|
|
60
|
-
|
|
44
|
+
return await this.testJobs[0].receiveTestResourceConfig(pm);
|
|
45
|
+
// const { failed, artifacts, logPromise, features } =
|
|
46
|
+
// await this.testJobs[0].receiveTestResourceConfig(pm);
|
|
47
|
+
// // pm.customclose();
|
|
48
|
+
// return { features, failed };
|
|
61
49
|
}
|
|
62
50
|
}
|
|
63
51
|
|
|
64
|
-
|
|
65
|
-
I extends Ibdd_in<
|
|
66
|
-
unknown,
|
|
67
|
-
unknown,
|
|
68
|
-
unknown,
|
|
69
|
-
unknown,
|
|
70
|
-
unknown,
|
|
71
|
-
unknown,
|
|
72
|
-
unknown
|
|
73
|
-
>,
|
|
74
|
-
O extends Ibdd_out<
|
|
75
|
-
Record<string, any>,
|
|
76
|
-
Record<string, any>,
|
|
77
|
-
Record<string, any>,
|
|
78
|
-
Record<string, any>,
|
|
79
|
-
Record<string, any>
|
|
80
|
-
>
|
|
81
|
-
>(
|
|
52
|
+
const testeranto = async <I extends IT, O extends OT, M>(
|
|
82
53
|
input: I["iinput"],
|
|
83
54
|
testSpecification: ITestSpecification<I, O>,
|
|
84
|
-
testImplementation: ITestImplementation<I, O>,
|
|
55
|
+
testImplementation: ITestImplementation<I, O, M>,
|
|
85
56
|
testInterface: Partial<INodeTestInterface<I>>,
|
|
86
57
|
testResourceRequirement: ITTestResourceRequest = defaultTestResourceRequirement
|
|
87
|
-
): Promise<Testeranto<I, O>> => {
|
|
88
|
-
|
|
58
|
+
): Promise<Testeranto<I, O, M>> => {
|
|
59
|
+
const t = new NodeTesteranto<I, O, M>(
|
|
89
60
|
input,
|
|
90
61
|
testSpecification,
|
|
91
62
|
testImplementation,
|
|
92
63
|
testResourceRequirement,
|
|
93
64
|
testInterface
|
|
94
65
|
);
|
|
66
|
+
|
|
67
|
+
try {
|
|
68
|
+
const f = await t.receiveTestResourceConfig(process.argv[2]);
|
|
69
|
+
|
|
70
|
+
console.error("goodbye node error", f.fails);
|
|
71
|
+
process.exit(f.fails);
|
|
72
|
+
} catch (e) {
|
|
73
|
+
console.error("goodbye node error", e);
|
|
74
|
+
process.exit(-1);
|
|
75
|
+
|
|
76
|
+
// fs.writeFileSync(`tests.json`, JSON.stringify(t.,
|
|
77
|
+
// null, 2));
|
|
78
|
+
// process.send({ message: "Hello from child!" });
|
|
79
|
+
// process.on("message", (message) => {
|
|
80
|
+
// const client = net.createConnection(message.path, () => {
|
|
81
|
+
|
|
82
|
+
// console.error("goodbye node error", e);
|
|
83
|
+
// process.exit(-1);
|
|
84
|
+
// });
|
|
85
|
+
// });
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
return t;
|
|
95
89
|
};
|
|
90
|
+
|
|
91
|
+
export default testeranto;
|