testeranto 0.121.1 → 0.125.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.aider.chat.history.md +97001 -0
- package/.aider.conf.yml +5 -0
- package/.aider.input.history +9 -0
- package/.aider.tags.cache.v3/b7/e6/5be87b62aeaf2bc244ff41c1b61a.val +0 -0
- package/.aider.tags.cache.v3/cache.db +0 -0
- package/.aider.tags.cache.v3/e3/e6/3501625caf5d5eb171f0d248462e.val +0 -0
- package/.aider.tags.cache.v3/ec/c0/161c249c35be853cc40cf11f9267.val +0 -0
- package/README.md +9 -0
- package/dist/common/{Init.js → src/Init.js} +1 -32
- package/dist/common/src/Node.js +49 -0
- package/dist/common/src/PM/base.js +230 -0
- package/dist/common/{PM → src/PM}/main.js +300 -233
- package/dist/common/src/PM/node.js +161 -0
- package/dist/common/{PM/node.js → src/PM/pure.js} +27 -18
- package/dist/common/{PM → src/PM}/web.js +14 -47
- package/dist/common/{Node.js → src/Pure.js} +11 -9
- package/dist/common/{SubPackages/react/component/web.js → src/SubPackages/react/component/index.js} +5 -4
- package/dist/common/src/SubPackages/react/component/node.js +10 -0
- package/dist/common/src/SubPackages/react/component/pure.js +10 -0
- package/dist/common/{SubPackages/react/jsx → src/SubPackages/react/component}/web.js +2 -2
- package/dist/common/src/SubPackages/react/jsx/index.js +64 -0
- package/dist/common/src/SubPackages/react/jsx/pure.js +10 -0
- package/dist/common/src/SubPackages/react/jsx/web.js +10 -0
- package/dist/common/{SubPackages/react-dom/component/web.js → src/SubPackages/react-dom/component/dynamic.js} +8 -14
- package/dist/common/src/SubPackages/react-dom/component/node.js +10 -0
- package/dist/common/src/SubPackages/react-dom/component/pure.js +10 -0
- package/dist/common/src/SubPackages/react-dom/component/static.js +26 -0
- package/dist/common/src/SubPackages/react-dom/component/web.js +16 -0
- package/dist/common/src/SubPackages/react-dom/jsx/dynamic.js +31 -0
- package/dist/common/src/SubPackages/react-dom/jsx/node.js +10 -0
- package/dist/common/src/SubPackages/react-dom/jsx/pure.js +10 -0
- package/dist/common/src/SubPackages/react-dom/jsx/static.js +59 -0
- package/dist/common/src/SubPackages/react-dom/jsx/web.js +16 -0
- package/dist/common/src/SubPackages/react-test-renderer/component/index.js +15 -0
- package/dist/common/src/SubPackages/react-test-renderer/component/pure.js +8 -0
- package/dist/common/src/SubPackages/react-test-renderer/component/test/implementation.js +57 -0
- package/dist/common/src/SubPackages/react-test-renderer/component/test/node.js +10 -0
- package/dist/common/src/SubPackages/react-test-renderer/component/test/pure.js +10 -0
- package/dist/common/src/SubPackages/react-test-renderer/component/test/web.js +10 -0
- package/dist/common/src/SubPackages/react-test-renderer/jsx/pure.js +10 -0
- package/dist/common/{Web.js → src/Web.js} +1 -4
- package/dist/common/{build.js → src/build.js} +37 -57
- package/dist/common/{defaultConfig.js → src/defaultConfig.js} +1 -3
- package/dist/common/{esbuildConfigs → src/esbuildConfigs}/node.js +5 -4
- package/dist/common/src/esbuildConfigs/pure.js +41 -0
- package/dist/common/{esbuildConfigs → src/esbuildConfigs}/web.js +5 -2
- package/dist/common/src/examples/react/component/index.js +33 -0
- package/dist/common/src/examples/react/component/test.js +36 -0
- package/dist/common/{lib → src/lib}/abstractBase.js +50 -52
- package/dist/common/{lib → src/lib}/basebuilder.js +18 -13
- package/dist/common/{lib → src/lib}/core.js +5 -43
- package/dist/common/{lib → src/lib}/index.js +1 -1
- package/dist/common/{run.js → src/run.js} +5 -5
- package/dist/common/{utils.js → src/utils.js} +35 -1
- package/dist/common/testeranto.config.js +41 -0
- package/dist/common/tsconfig.common.tsbuildinfo +1 -1
- package/dist/module/{Init.js → src/Init.js} +1 -32
- package/dist/module/src/Node.js +42 -0
- package/dist/module/src/PM/base.js +223 -0
- package/dist/module/{PM → src/PM}/main.js +301 -234
- package/dist/module/src/PM/node.js +154 -0
- package/dist/module/{PM/node.js → src/PM/pure.js} +25 -16
- package/dist/module/{PM → src/PM}/web.js +14 -47
- package/dist/module/{Project.js → src/Project.js} +6 -3
- package/dist/module/{Node.js → src/Pure.js} +9 -7
- package/dist/module/{ReportClient.js → src/ReportClient.js} +1 -1
- package/dist/module/{SubPackages/react/component/web.js → src/SubPackages/react/component/index.js} +3 -4
- package/dist/module/src/SubPackages/react/component/node.js +5 -0
- package/dist/module/src/SubPackages/react/component/pure.js +5 -0
- package/dist/module/{SubPackages/react/jsx → src/SubPackages/react/component}/web.js +3 -3
- package/dist/module/src/SubPackages/react/jsx/index.js +58 -0
- package/dist/module/{SubPackages → src/SubPackages}/react/jsx/node.js +1 -1
- package/dist/module/src/SubPackages/react/jsx/pure.js +5 -0
- package/dist/module/src/SubPackages/react/jsx/web.js +5 -0
- package/dist/module/{SubPackages/react-dom/component/web.js → src/SubPackages/react-dom/component/dynamic.js} +5 -13
- package/dist/module/src/SubPackages/react-dom/component/node.js +5 -0
- package/dist/module/src/SubPackages/react-dom/component/pure.js +5 -0
- package/dist/module/src/SubPackages/react-dom/component/static.js +22 -0
- package/dist/module/src/SubPackages/react-dom/component/web.js +11 -0
- package/dist/module/{SubPackages/react-dom/jsx/node.js → src/SubPackages/react-dom/jsx/dynamic.js} +3 -7
- package/dist/module/src/SubPackages/react-dom/jsx/node.js +5 -0
- package/dist/module/src/SubPackages/react-dom/jsx/pure.js +5 -0
- package/dist/module/src/SubPackages/react-dom/jsx/static.js +53 -0
- package/dist/module/src/SubPackages/react-dom/jsx/web.js +11 -0
- package/dist/module/src/SubPackages/react-test-renderer/component/index.js +14 -0
- package/dist/module/src/SubPackages/react-test-renderer/component/pure.js +3 -0
- package/dist/module/src/SubPackages/react-test-renderer/component/test/implementation.js +54 -0
- package/dist/module/src/SubPackages/react-test-renderer/component/test/node.js +5 -0
- package/dist/module/src/SubPackages/react-test-renderer/component/test/pure.js +5 -0
- package/dist/module/src/SubPackages/react-test-renderer/component/test/web.js +5 -0
- package/dist/module/src/SubPackages/react-test-renderer/jsx/pure.js +5 -0
- package/dist/module/{TestReport.js → src/TestReport.js} +19 -16
- package/dist/module/{Web.js → src/Web.js} +1 -4
- package/dist/module/{build.js → src/build.js} +37 -57
- package/dist/module/{defaultConfig.js → src/defaultConfig.js} +1 -3
- package/dist/module/{esbuildConfigs → src/esbuildConfigs}/node.js +5 -4
- package/dist/module/src/esbuildConfigs/pure.js +36 -0
- package/dist/module/{esbuildConfigs → src/esbuildConfigs}/web.js +5 -2
- package/dist/module/src/examples/react/component/index.js +26 -0
- package/dist/module/src/examples/react/component/test.js +32 -0
- package/dist/module/{lib → src/lib}/abstractBase.js +50 -52
- package/dist/module/{lib → src/lib}/basebuilder.js +18 -13
- package/dist/module/{lib → src/lib}/core.js +5 -43
- package/dist/module/{lib → src/lib}/index.js +1 -1
- package/dist/module/{run.js → src/run.js} +5 -5
- package/dist/module/src/utils.js +53 -0
- package/dist/module/testeranto.config.js +39 -0
- package/dist/module/tsconfig.module.tsbuildinfo +1 -1
- package/dist/prebuild/Project.js +5 -2
- package/dist/prebuild/ReportClient.js +1 -1
- package/dist/prebuild/TestReport.js +4 -1
- package/dist/prebuild/build.mjs +115 -65
- package/dist/prebuild/init-docs.mjs +1 -0
- package/dist/prebuild/run.mjs +418 -382
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/src/Node.d.ts +9 -0
- package/dist/types/src/PM/base.d.ts +34 -0
- package/dist/types/{PM → src/PM}/index.d.ts +21 -22
- package/dist/types/{PM → src/PM}/main.d.ts +15 -10
- package/dist/types/src/PM/node.d.ts +38 -0
- package/dist/types/{PM/node.d.ts → src/PM/pure.d.ts} +16 -17
- package/dist/types/{PM → src/PM}/web.d.ts +10 -15
- package/dist/types/src/Pure.d.ts +9 -0
- package/dist/types/src/SubPackages/react/component/index.d.ts +4 -0
- package/dist/types/src/SubPackages/react/component/node.d.ts +4 -0
- package/dist/types/src/SubPackages/react/component/pure.d.ts +4 -0
- package/dist/types/src/SubPackages/react/component/web.d.ts +4 -0
- package/dist/types/src/SubPackages/react/jsx/index.d.ts +5 -0
- package/dist/types/src/SubPackages/react/jsx/node.d.ts +4 -0
- package/dist/types/src/SubPackages/react/jsx/pure.d.ts +4 -0
- package/dist/types/src/SubPackages/react/jsx/web.d.ts +4 -0
- package/dist/types/src/SubPackages/react-dom/component/dynamic.d.ts +20 -0
- package/dist/types/src/SubPackages/react-dom/component/node.d.ts +4 -0
- package/dist/types/src/SubPackages/react-dom/component/pure.d.ts +4 -0
- package/dist/types/src/SubPackages/react-dom/component/static.d.ts +9 -0
- package/dist/types/src/SubPackages/react-dom/component/web.d.ts +4 -0
- package/dist/types/src/SubPackages/react-dom/jsx/dynamic.d.ts +5 -0
- package/dist/types/src/SubPackages/react-dom/jsx/node.d.ts +4 -0
- package/dist/types/src/SubPackages/react-dom/jsx/pure.d.ts +4 -0
- package/dist/types/src/SubPackages/react-dom/jsx/static.d.ts +5 -0
- package/dist/types/src/SubPackages/react-dom/jsx/web.d.ts +5 -0
- package/dist/types/{SubPackages → src/SubPackages}/react-test-renderer/MemoExoticComponent/node.d.ts +1 -1
- package/dist/types/src/SubPackages/react-test-renderer/component/index.d.ts +5 -0
- package/dist/types/src/SubPackages/react-test-renderer/component/interface.d.ts +3 -0
- package/dist/types/src/SubPackages/react-test-renderer/component/node.d.ts +4 -0
- package/dist/types/src/SubPackages/react-test-renderer/component/pure.d.ts +4 -0
- package/dist/types/src/SubPackages/react-test-renderer/component/test/implementation.d.ts +4 -0
- package/dist/types/src/SubPackages/react-test-renderer/component/test/node.d.ts +3 -0
- package/dist/types/src/SubPackages/react-test-renderer/component/test/pure.d.ts +4 -0
- package/dist/types/src/SubPackages/react-test-renderer/component/test/web.d.ts +3 -0
- package/dist/types/src/SubPackages/react-test-renderer/component/web.d.ts +4 -0
- package/dist/types/{SubPackages → src/SubPackages}/react-test-renderer/fc/node.d.ts +1 -1
- package/dist/types/{SubPackages → src/SubPackages}/react-test-renderer/fc/web.d.ts +1 -1
- package/dist/types/src/SubPackages/react-test-renderer/jsx/index.d.ts +11 -0
- package/dist/types/src/SubPackages/react-test-renderer/jsx/node.d.ts +4 -0
- package/dist/types/src/SubPackages/react-test-renderer/jsx/pure.d.ts +4 -0
- package/dist/types/src/SubPackages/react-test-renderer/jsx/web.d.ts +4 -0
- package/dist/types/{SubPackages → src/SubPackages}/react-test-renderer/jsx-promised/node.d.ts +1 -1
- package/dist/types/{SubPackages → src/SubPackages}/react-test-renderer/jsx-promised/web.d.ts +1 -1
- package/dist/types/src/Types.d.ts +88 -0
- package/dist/types/src/Web.d.ts +9 -0
- package/dist/types/src/defaultConfig.d.ts +3 -0
- package/dist/types/src/esbuildConfigs/index.d.ts +4 -0
- package/dist/types/{esbuildConfigs → src/esbuildConfigs}/inputFilesPlugin.d.ts +2 -1
- package/dist/types/src/esbuildConfigs/node.d.ts +4 -0
- package/dist/types/src/esbuildConfigs/pure.d.ts +4 -0
- package/dist/types/src/esbuildConfigs/web.d.ts +4 -0
- package/dist/types/src/examples/react/component/index.d.ts +13 -0
- package/dist/types/src/examples/react/component/test.d.ts +17 -0
- package/dist/types/{lib → src/lib}/abstractBase.d.ts +35 -30
- package/dist/types/{lib → src/lib}/basebuilder.d.ts +7 -8
- package/dist/types/src/lib/classBuilder.d.ts +9 -0
- package/dist/types/src/lib/core.d.ts +7 -0
- package/dist/types/{lib → src/lib}/index.d.ts +14 -36
- package/dist/types/src/lib/types.d.ts +15 -0
- package/dist/types/src/utils.d.ts +18 -0
- package/dist/types/testeranto.config.d.ts +3 -0
- package/dist/types/tsconfig.types.tsbuildinfo +1 -1
- package/eslint.config.mjs +111 -0
- package/package.json +28 -8
- package/src/Init.ts +1 -39
- package/src/Node.ts +42 -46
- package/src/PM/base.ts +179 -181
- package/src/PM/index.ts +28 -21
- package/src/PM/main.ts +359 -318
- package/src/PM/node.ts +88 -44
- package/src/PM/pure.ts +209 -0
- package/src/PM/web.ts +19 -121
- package/src/Project.tsx +8 -5
- package/src/Pure.ts +69 -0
- package/src/ReportClient.tsx +8 -3
- package/src/SubPackages/react/component/index.ts +28 -0
- package/src/SubPackages/react/component/node.ts +12 -82
- package/src/SubPackages/react/component/pure.ts +17 -0
- package/src/SubPackages/react/component/web.ts +12 -81
- package/src/SubPackages/react/jsx/index.ts +56 -52
- package/src/SubPackages/react/jsx/node.ts +12 -29
- package/src/SubPackages/react/jsx/pure.ts +23 -0
- package/src/SubPackages/react/jsx/web.ts +17 -36
- package/src/SubPackages/react-dom/component/dynamic.ts +107 -0
- package/src/SubPackages/react-dom/component/node.ts +11 -116
- package/src/SubPackages/react-dom/component/pure.ts +17 -0
- package/src/SubPackages/react-dom/component/static.ts +41 -0
- package/src/SubPackages/react-dom/component/web.ts +7 -113
- package/src/SubPackages/react-dom/jsx/dynamic.ts +46 -0
- package/src/SubPackages/react-dom/jsx/node.ts +10 -58
- package/src/SubPackages/react-dom/jsx/pure.ts +18 -0
- package/src/SubPackages/react-dom/jsx/static.ts +87 -0
- package/src/SubPackages/react-dom/jsx/web.ts +7 -135
- package/src/SubPackages/react-test-renderer/component/index.ts +27 -51
- package/src/SubPackages/react-test-renderer/component/interface.ts +7 -5
- package/src/SubPackages/react-test-renderer/component/node.ts +7 -25
- package/src/SubPackages/react-test-renderer/component/pure.ts +18 -0
- package/src/SubPackages/react-test-renderer/component/test/implementation.ts +63 -0
- package/src/SubPackages/react-test-renderer/component/test/node.ts +14 -0
- package/src/SubPackages/react-test-renderer/component/test/pure.ts +14 -0
- package/src/SubPackages/react-test-renderer/component/test/web.ts +14 -0
- package/src/SubPackages/react-test-renderer/component/web.ts +7 -23
- package/src/SubPackages/react-test-renderer/jsx/index.ts +13 -46
- package/src/SubPackages/react-test-renderer/jsx/node.ts +9 -15
- package/src/SubPackages/react-test-renderer/jsx/pure.ts +31 -0
- package/src/SubPackages/react-test-renderer/jsx/web.ts +9 -14
- package/src/TestReport.tsx +7 -4
- package/src/Types.ts +114 -140
- package/src/Web.ts +13 -48
- package/src/build.ts +52 -78
- package/src/defaultConfig.ts +3 -5
- package/src/esbuildConfigs/index.ts +2 -2
- package/src/esbuildConfigs/inputFilesPlugin.ts +2 -1
- package/src/esbuildConfigs/node.ts +7 -5
- package/src/esbuildConfigs/pure.ts +72 -0
- package/src/esbuildConfigs/web.ts +8 -5
- package/src/examples/react/component/index.tsx +35 -0
- package/src/examples/react/component/test.ts +83 -0
- package/src/lib/abstractBase.ts +100 -192
- package/src/lib/basebuilder.ts +40 -40
- package/src/lib/classBuilder.ts +18 -26
- package/src/lib/core.ts +22 -77
- package/src/lib/index.ts +31 -66
- package/src/lib/types.ts +20 -90
- package/src/run.ts +3 -6
- package/src/utils.ts +50 -5
- package/testeranto/Project.css +11367 -0
- package/testeranto/Project.js +24643 -0
- package/testeranto/ReportClient.css +11367 -0
- package/testeranto/ReportClient.js +24641 -0
- package/testeranto/TestReport.css +11367 -0
- package/testeranto/TestReport.js +27485 -0
- package/testeranto/bundles/node/react/metafile.json +627 -0
- package/testeranto/bundles/node/react/src/SubPackages/react-test-renderer/component/test/node.mjs +24687 -0
- package/testeranto/bundles/pure/react/metafile.json +8 -0
- package/testeranto/bundles/pure/react/src/SubPackages/react-test-renderer/component/test/pure.mjs +24625 -0
- package/testeranto/bundles/web/react/metafile.json +8 -0
- package/testeranto/bundles/web/react/src/SubPackages/react-test-renderer/component/test/web.html +19 -0
- package/testeranto/bundles/web/react/src/SubPackages/react-test-renderer/component/test/web.mjs +21290 -0
- package/testeranto/index.html +28 -0
- package/testeranto/reports/react/config.json +22 -0
- package/testeranto/reports/react/index.html +24 -0
- package/testeranto/reports/react/src/SubPackages/react-test-renderer/component/test/node/node/console_log.txt +0 -0
- package/testeranto/reports/react/src/SubPackages/react-test-renderer/component/test/pure/pure/bdd_errors.txt +1 -0
- package/testeranto/reports/react/src/SubPackages/react-test-renderer/component/test/pure/pure/featurePrompt.txt +0 -0
- package/testeranto/reports/react/src/SubPackages/react-test-renderer/component/test/pure/pure/lint_errors.json +3381 -0
- package/testeranto/reports/react/src/SubPackages/react-test-renderer/component/test/pure/pure/littleBoard.html +20 -0
- package/testeranto/reports/react/src/SubPackages/react-test-renderer/component/test/pure/pure/log.txt +40 -0
- package/testeranto/reports/react/src/SubPackages/react-test-renderer/component/test/pure/pure/prompt.txt +24 -0
- package/testeranto/reports/react/src/SubPackages/react-test-renderer/component/test/pure/pure/tests.json +132 -0
- package/testeranto/reports/react/src/SubPackages/react-test-renderer/component/test/pure/pure/type_errors.txt +17 -0
- package/testeranto/reports/react/src/SubPackages/react-test-renderer/component/test/web/web/bdd_errors.txt +1 -0
- package/testeranto/reports/react/src/SubPackages/react-test-renderer/component/test/web/web/console_log.txt +1 -0
- package/testeranto/reports/react/src/SubPackages/react-test-renderer/component/test/web/web/lint_errors.json +2947 -0
- package/testeranto/reports/react/src/SubPackages/react-test-renderer/component/test/web/web/littleBoard.html +20 -0
- package/testeranto/reports/react/src/SubPackages/react-test-renderer/component/test/web/web/log.txt +40 -0
- package/testeranto/reports/react/src/SubPackages/react-test-renderer/component/test/web/web/prompt.txt +23 -0
- package/testeranto/reports/react/src/SubPackages/react-test-renderer/component/test/web/web/tests.json +132 -0
- package/testeranto/reports/react/src/SubPackages/react-test-renderer/component/test/web/web/type_errors.txt +18 -0
- package/testeranto/reports/react/summary.json +8 -0
- package/testeranto.config.ts +45 -0
- package/tsc.log +52 -64
- package/type-fix.txt +2 -0
- package/dist/common/PM/base.js +0 -233
- package/dist/common/SubPackages/react/component/node.js +0 -19
- package/dist/common/SubPackages/react/jsx/index.js +0 -21
- package/dist/common/SubPackages/react-dom/component/node.js +0 -88
- package/dist/common/SubPackages/react-dom/jsx/node.js +0 -39
- package/dist/common/SubPackages/react-dom/jsx/web.js +0 -128
- package/dist/common/SubPackages/react-test-renderer/component/index.js +0 -2
- package/dist/module/PM/base.js +0 -226
- package/dist/module/SubPackages/react/component/node.js +0 -14
- package/dist/module/SubPackages/react/jsx/index.js +0 -15
- package/dist/module/SubPackages/react-dom/component/node.js +0 -80
- package/dist/module/SubPackages/react-dom/jsx/web.js +0 -90
- package/dist/module/SubPackages/react-test-renderer/component/index.js +0 -1
- package/dist/module/utils.js +0 -20
- package/dist/types/Node.d.ts +0 -12
- package/dist/types/PM/base.d.ts +0 -38
- package/dist/types/SubPackages/react/component/node.d.ts +0 -7
- package/dist/types/SubPackages/react/component/web.d.ts +0 -7
- package/dist/types/SubPackages/react/jsx/index.d.ts +0 -12
- package/dist/types/SubPackages/react/jsx/node.d.ts +0 -4
- package/dist/types/SubPackages/react/jsx/web.d.ts +0 -4
- package/dist/types/SubPackages/react-dom/component/node.d.ts +0 -11
- package/dist/types/SubPackages/react-dom/component/web.d.ts +0 -20
- package/dist/types/SubPackages/react-dom/jsx/node.d.ts +0 -7
- package/dist/types/SubPackages/react-dom/jsx/web.d.ts +0 -5
- package/dist/types/SubPackages/react-test-renderer/component/index.d.ts +0 -13
- package/dist/types/SubPackages/react-test-renderer/component/interface.d.ts +0 -9
- package/dist/types/SubPackages/react-test-renderer/component/node.d.ts +0 -4
- package/dist/types/SubPackages/react-test-renderer/component/web.d.ts +0 -4
- package/dist/types/SubPackages/react-test-renderer/jsx/index.d.ts +0 -16
- package/dist/types/SubPackages/react-test-renderer/jsx/node.d.ts +0 -9
- package/dist/types/SubPackages/react-test-renderer/jsx/web.d.ts +0 -9
- package/dist/types/Types.d.ts +0 -61
- package/dist/types/Web.d.ts +0 -9
- package/dist/types/defaultConfig.d.ts +0 -3
- package/dist/types/esbuildConfigs/index.d.ts +0 -4
- package/dist/types/esbuildConfigs/node.d.ts +0 -4
- package/dist/types/esbuildConfigs/web.d.ts +0 -4
- package/dist/types/lib/classBuilder.d.ts +0 -7
- package/dist/types/lib/core.d.ts +0 -7
- package/dist/types/lib/types.d.ts +0 -11
- package/dist/types/utils.d.ts +0 -12
- /package/dist/common/{PM → src/PM}/index.js +0 -0
- /package/dist/common/{ReportServer.js → src/ReportServer.js} +0 -0
- /package/dist/common/{SubPackages → src/SubPackages}/react/jsx/node.js +0 -0
- /package/dist/common/{SubPackages → src/SubPackages}/react-dom/jsx/index.js +0 -0
- /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/MemoExoticComponent/node.js +0 -0
- /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/component/interface.js +0 -0
- /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/component/node.js +0 -0
- /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/component/web.js +0 -0
- /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/fc/node.js +0 -0
- /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/fc/web.js +0 -0
- /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/jsx/index.js +0 -0
- /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/jsx/node.js +0 -0
- /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/jsx/web.js +0 -0
- /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/jsx-promised/index.js +0 -0
- /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/jsx-promised/node.js +0 -0
- /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/jsx-promised/web.js +0 -0
- /package/dist/common/{Types.js → src/Types.js} +0 -0
- /package/dist/common/{esbuildConfigs → src/esbuildConfigs}/eslint-formatter-testeranto.js +0 -0
- /package/dist/common/{esbuildConfigs → src/esbuildConfigs}/featuresPlugin.js +0 -0
- /package/dist/common/{esbuildConfigs → src/esbuildConfigs}/index.js +0 -0
- /package/dist/common/{esbuildConfigs → src/esbuildConfigs}/inputFilesPlugin.js +0 -0
- /package/dist/common/{init-docs.js → src/init-docs.js} +0 -0
- /package/dist/common/{lib → src/lib}/classBuilder.js +0 -0
- /package/dist/common/{lib → src/lib}/types.js +0 -0
- /package/dist/common/{web.html.js → src/web.html.js} +0 -0
- /package/dist/module/{Footer.js → src/Footer.js} +0 -0
- /package/dist/module/{PM → src/PM}/index.js +0 -0
- /package/dist/module/{ReportServer.js → src/ReportServer.js} +0 -0
- /package/dist/module/{SubPackages → src/SubPackages}/react-dom/jsx/index.js +0 -0
- /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/MemoExoticComponent/node.js +0 -0
- /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/component/interface.js +0 -0
- /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/component/node.js +0 -0
- /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/component/web.js +0 -0
- /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/fc/node.js +0 -0
- /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/fc/web.js +0 -0
- /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/jsx/index.js +0 -0
- /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/jsx/node.js +0 -0
- /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/jsx/web.js +0 -0
- /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/jsx-promised/index.js +0 -0
- /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/jsx-promised/node.js +0 -0
- /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/jsx-promised/web.js +0 -0
- /package/dist/module/{Types.js → src/Types.js} +0 -0
- /package/dist/module/{esbuildConfigs → src/esbuildConfigs}/eslint-formatter-testeranto.js +0 -0
- /package/dist/module/{esbuildConfigs → src/esbuildConfigs}/featuresPlugin.js +0 -0
- /package/dist/module/{esbuildConfigs → src/esbuildConfigs}/index.js +0 -0
- /package/dist/module/{esbuildConfigs → src/esbuildConfigs}/inputFilesPlugin.js +0 -0
- /package/dist/module/{init-docs.js → src/init-docs.js} +0 -0
- /package/dist/module/{lib → src/lib}/classBuilder.js +0 -0
- /package/dist/module/{lib → src/lib}/types.js +0 -0
- /package/dist/module/{web.html.js → src/web.html.js} +0 -0
- /package/dist/types/{Init.d.ts → src/Init.d.ts} +0 -0
- /package/dist/types/{ReportServer.d.ts → src/ReportServer.d.ts} +0 -0
- /package/dist/types/{SubPackages → src/SubPackages}/react-dom/jsx/index.d.ts +0 -0
- /package/dist/types/{SubPackages → src/SubPackages}/react-test-renderer/jsx-promised/index.d.ts +0 -0
- /package/dist/types/{build.d.ts → src/build.d.ts} +0 -0
- /package/dist/types/{esbuildConfigs → src/esbuildConfigs}/eslint-formatter-testeranto.d.ts +0 -0
- /package/dist/types/{esbuildConfigs → src/esbuildConfigs}/featuresPlugin.d.ts +0 -0
- /package/dist/types/{init-docs.d.ts → src/init-docs.d.ts} +0 -0
- /package/dist/types/{run.d.ts → src/run.d.ts} +0 -0
- /package/dist/types/{web.html.d.ts → src/web.html.d.ts} +0 -0
|
@@ -4,7 +4,7 @@ export class BaseSuite {
|
|
|
4
4
|
this.index = index;
|
|
5
5
|
this.givens = givens;
|
|
6
6
|
this.checks = checks;
|
|
7
|
-
this.fails =
|
|
7
|
+
this.fails = 0;
|
|
8
8
|
}
|
|
9
9
|
features() {
|
|
10
10
|
const features = Object.keys(this.givens)
|
|
@@ -13,10 +13,6 @@ export class BaseSuite {
|
|
|
13
13
|
.filter((value, index, array) => {
|
|
14
14
|
return array.indexOf(value) === index;
|
|
15
15
|
});
|
|
16
|
-
// .reduce((mm, lm) => {
|
|
17
|
-
// mm[lm] = lm;
|
|
18
|
-
// return mm;
|
|
19
|
-
// }, {});
|
|
20
16
|
return features || [];
|
|
21
17
|
}
|
|
22
18
|
toObj() {
|
|
@@ -27,6 +23,7 @@ export class BaseSuite {
|
|
|
27
23
|
givens,
|
|
28
24
|
checks,
|
|
29
25
|
fails: this.fails,
|
|
26
|
+
failed: this.failed,
|
|
30
27
|
features: this.features(),
|
|
31
28
|
};
|
|
32
29
|
}
|
|
@@ -34,7 +31,7 @@ export class BaseSuite {
|
|
|
34
31
|
return new Promise((res) => res(s));
|
|
35
32
|
}
|
|
36
33
|
assertThat(t) {
|
|
37
|
-
return t;
|
|
34
|
+
return !!t;
|
|
38
35
|
}
|
|
39
36
|
afterAll(store, artifactory, pm) {
|
|
40
37
|
return store;
|
|
@@ -68,8 +65,10 @@ export class BaseSuite {
|
|
|
68
65
|
this.store = await giver.give(subject, gKey, testResourceConfiguration, this.assertThat, suiteArtifactory, tLog, pm, sNdx);
|
|
69
66
|
}
|
|
70
67
|
catch (e) {
|
|
71
|
-
|
|
72
|
-
this.fails.
|
|
68
|
+
this.failed = true;
|
|
69
|
+
this.fails = this.fails + 1;
|
|
70
|
+
// console.error(e);
|
|
71
|
+
// this.fails.push(giver);
|
|
73
72
|
// return this;
|
|
74
73
|
}
|
|
75
74
|
}
|
|
@@ -110,10 +109,7 @@ export class BaseGiven {
|
|
|
110
109
|
this.givenCB = givenCB;
|
|
111
110
|
this.initialValues = initialValues;
|
|
112
111
|
}
|
|
113
|
-
beforeAll(store
|
|
114
|
-
// artifactory: ITestArtifactory
|
|
115
|
-
// subject,
|
|
116
|
-
initializer, artifactory, testResource, initialValues, pm) {
|
|
112
|
+
beforeAll(store) {
|
|
117
113
|
return store;
|
|
118
114
|
}
|
|
119
115
|
toObj() {
|
|
@@ -123,7 +119,7 @@ export class BaseGiven {
|
|
|
123
119
|
whens: this.whens.map((w) => w.toObj()),
|
|
124
120
|
thens: this.thens.map((t) => t.toObj()),
|
|
125
121
|
error: this.error ? [this.error, this.error.stack] : null,
|
|
126
|
-
|
|
122
|
+
failed: this.failed,
|
|
127
123
|
features: this.features,
|
|
128
124
|
};
|
|
129
125
|
}
|
|
@@ -135,29 +131,35 @@ export class BaseGiven {
|
|
|
135
131
|
tLog(`\n ${this.key}`);
|
|
136
132
|
tLog(`\n Given: ${this.name}`);
|
|
137
133
|
const givenArtifactory = (fPath, value) => artifactory(`given-${key}/${fPath}`, value);
|
|
134
|
+
const beforeEachProxy = new Proxy(pm, {
|
|
135
|
+
get(target, prop, receiver) {
|
|
136
|
+
if (prop === "writeFileSync") {
|
|
137
|
+
return (fp, contents) => target[prop](`suite-${suiteNdx}/given-${key}/when/beforeEach/${fp}`, contents);
|
|
138
|
+
}
|
|
139
|
+
if (prop === "customScreenShot") {
|
|
140
|
+
return (opts, p) => target.customScreenShot(Object.assign(Object.assign({}, opts), { path: `suite-${suiteNdx}/given-${key}/when/beforeEach/${opts.path}` }), p);
|
|
141
|
+
}
|
|
142
|
+
if (prop === "screencast") {
|
|
143
|
+
return (opts, p) => target.screencast(Object.assign(Object.assign({}, opts), { path: `suite-${suiteNdx}/given-${key}/when/beforeEach/${opts.path}` }), p);
|
|
144
|
+
}
|
|
145
|
+
/* @ts-ignore:next-line */
|
|
146
|
+
return Reflect.get(...arguments);
|
|
147
|
+
},
|
|
148
|
+
});
|
|
149
|
+
this.uberCatcher((e) => {
|
|
150
|
+
console.error(e);
|
|
151
|
+
this.error = e.error;
|
|
152
|
+
tLog(e.stack);
|
|
153
|
+
});
|
|
138
154
|
try {
|
|
139
|
-
// tLog(`\n Given this.store`, this.store);
|
|
140
|
-
const beforeEachProxy = new Proxy(pm, {
|
|
141
|
-
get(target, prop, receiver) {
|
|
142
|
-
if (prop === "writeFileSync") {
|
|
143
|
-
return (fp, contents) => target[prop](`suite-${suiteNdx}/given-${key}/when/beforeEach/${fp}`, contents);
|
|
144
|
-
}
|
|
145
|
-
if (prop === "customScreenShot") {
|
|
146
|
-
return (opts, p) => target.customScreenShot(Object.assign(Object.assign({}, opts), { path: `suite-${suiteNdx}/given-${key}/when/beforeEach/${opts.path}` }), p);
|
|
147
|
-
}
|
|
148
|
-
if (prop === "screencast") {
|
|
149
|
-
return (opts, p) => target.screencast(Object.assign(Object.assign({}, opts), { path: `suite-${suiteNdx}/given-${key}/when/beforeEach/${opts.path}` }), p);
|
|
150
|
-
}
|
|
151
|
-
/* @ts-ignore:next-line */
|
|
152
|
-
return Reflect.get(...arguments);
|
|
153
|
-
},
|
|
154
|
-
});
|
|
155
|
-
this.uberCatcher((e) => {
|
|
156
|
-
console.error(e);
|
|
157
|
-
this.error = e.error;
|
|
158
|
-
tLog(e.stack);
|
|
159
|
-
});
|
|
160
155
|
this.store = await this.givenThat(subject, testResourceConfiguration, givenArtifactory, this.givenCB, this.initialValues, beforeEachProxy);
|
|
156
|
+
}
|
|
157
|
+
catch (e) {
|
|
158
|
+
this.error = e;
|
|
159
|
+
throw e;
|
|
160
|
+
}
|
|
161
|
+
try {
|
|
162
|
+
// tLog(`\n Given this.store`, this.store);
|
|
161
163
|
for (const [whenNdx, whenStep] of this.whens.entries()) {
|
|
162
164
|
await whenStep.test(this.store, testResourceConfiguration, tLog, pm, `suite-${suiteNdx}/given-${key}/when/${whenNdx}`);
|
|
163
165
|
}
|
|
@@ -167,11 +169,10 @@ export class BaseGiven {
|
|
|
167
169
|
}
|
|
168
170
|
}
|
|
169
171
|
catch (e) {
|
|
170
|
-
|
|
171
|
-
this.
|
|
172
|
+
// this.error = e;
|
|
173
|
+
this.failed = true;
|
|
172
174
|
tLog(e.stack);
|
|
173
|
-
|
|
174
|
-
// throw e;
|
|
175
|
+
throw e;
|
|
175
176
|
}
|
|
176
177
|
finally {
|
|
177
178
|
try {
|
|
@@ -192,8 +193,10 @@ export class BaseGiven {
|
|
|
192
193
|
afterEachProxy);
|
|
193
194
|
}
|
|
194
195
|
catch (e) {
|
|
195
|
-
|
|
196
|
-
|
|
196
|
+
this.failed = e;
|
|
197
|
+
throw e;
|
|
198
|
+
// console.error("afterEach failed!", e);
|
|
199
|
+
// this.error = e.message;
|
|
197
200
|
}
|
|
198
201
|
}
|
|
199
202
|
return this.store;
|
|
@@ -260,8 +263,9 @@ export class BaseThen {
|
|
|
260
263
|
await this.thenCB(s);
|
|
261
264
|
}
|
|
262
265
|
catch (e) {
|
|
263
|
-
console.log("test failed", e);
|
|
264
|
-
this.error = e
|
|
266
|
+
console.log("test failed 1", e);
|
|
267
|
+
this.error = e;
|
|
268
|
+
throw e;
|
|
265
269
|
}
|
|
266
270
|
};
|
|
267
271
|
try {
|
|
@@ -278,13 +282,13 @@ export class BaseThen {
|
|
|
278
282
|
},
|
|
279
283
|
});
|
|
280
284
|
return this.butThen(store, this.go, testResourceConfiguration, butThenProxy).catch((e) => {
|
|
281
|
-
this.error =
|
|
285
|
+
this.error = e;
|
|
282
286
|
throw e;
|
|
283
287
|
});
|
|
284
288
|
}
|
|
285
289
|
catch (e) {
|
|
286
|
-
console.log("test failed", e);
|
|
287
|
-
this.error = e
|
|
290
|
+
console.log("test failed 2", e);
|
|
291
|
+
this.error = e;
|
|
288
292
|
throw e;
|
|
289
293
|
}
|
|
290
294
|
}
|
|
@@ -302,19 +306,13 @@ export class BaseCheck {
|
|
|
302
306
|
key: this.key,
|
|
303
307
|
name: this.name,
|
|
304
308
|
functionAsString: this.checkCB.toString(),
|
|
305
|
-
// thens: this.thens.map((t) => t.toObj()),
|
|
306
|
-
// error: this.error ? [this.error, this.error.stack] : null,
|
|
307
|
-
// fail: this.fail ? [this.fail] : false,
|
|
308
309
|
features: this.features,
|
|
309
310
|
};
|
|
310
311
|
}
|
|
311
312
|
async afterEach(store, key, artifactory, pm) {
|
|
312
313
|
return store;
|
|
313
314
|
}
|
|
314
|
-
beforeAll(store
|
|
315
|
-
// artifactory: ITestArtifactory
|
|
316
|
-
// subject,
|
|
317
|
-
initializer, artifactory, testResource, initialValues, pm) {
|
|
315
|
+
beforeAll(store) {
|
|
318
316
|
return store;
|
|
319
317
|
}
|
|
320
318
|
async check(subject, key, testResourceConfiguration, tester, artifactory, tLog, pm) {
|
|
@@ -25,22 +25,21 @@ export class BaseBuilder {
|
|
|
25
25
|
},
|
|
26
26
|
runner,
|
|
27
27
|
receiveTestResourceConfig: async function (puppetMaster) {
|
|
28
|
+
const start = await puppetMaster.start();
|
|
28
29
|
const logFilePath = "log.txt";
|
|
29
30
|
const access = await puppetMaster.createWriteStream(logFilePath);
|
|
30
|
-
const tLog = (...l) => {
|
|
31
|
-
puppetMaster.write(access, `${l.toString()}\n`);
|
|
31
|
+
const tLog = async (...l) => {
|
|
32
|
+
const x = await puppetMaster.write(access, `${l.toString()}\n`);
|
|
33
|
+
// console.log("x", x);
|
|
32
34
|
};
|
|
33
35
|
const suiteDone = await runner(puppetMaster, tLog);
|
|
34
|
-
const logPromise = new Promise((res, rej) => {
|
|
35
|
-
puppetMaster.end(access);
|
|
36
|
+
const logPromise = new Promise(async (res, rej) => {
|
|
37
|
+
await puppetMaster.end(access);
|
|
36
38
|
res(true);
|
|
37
39
|
});
|
|
38
|
-
const
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
puppetMaster.writeFileSync(`bdd_errors.txt`, numberOfFailures.toString());
|
|
42
|
-
const o = this.toObj();
|
|
43
|
-
puppetMaster.writeFileSync(`littleBoard.html`, `
|
|
40
|
+
const fails = suiteDone.fails;
|
|
41
|
+
const b = await puppetMaster.writeFileSync(`bdd_errors.txt`, fails.toString());
|
|
42
|
+
await puppetMaster.writeFileSync(`littleBoard.html`, `
|
|
44
43
|
<!DOCTYPE html>
|
|
45
44
|
<html lang="en">
|
|
46
45
|
|
|
@@ -57,13 +56,13 @@ export class BaseBuilder {
|
|
|
57
56
|
</head>
|
|
58
57
|
|
|
59
58
|
<body>
|
|
60
|
-
<h1>Test report</h1>
|
|
61
59
|
<div id="root"/>
|
|
62
60
|
</body>
|
|
63
61
|
`);
|
|
64
|
-
puppetMaster.writeFileSync(`tests.json`, JSON.stringify(this.toObj(), null, 2));
|
|
62
|
+
await puppetMaster.writeFileSync(`tests.json`, JSON.stringify(this.toObj(), null, 2));
|
|
65
63
|
return {
|
|
66
|
-
failed:
|
|
64
|
+
failed: fails > 0,
|
|
65
|
+
fails,
|
|
67
66
|
artifacts: this.artifacts || [],
|
|
68
67
|
logPromise,
|
|
69
68
|
features: suiteDone.features(),
|
|
@@ -72,6 +71,12 @@ export class BaseBuilder {
|
|
|
72
71
|
};
|
|
73
72
|
});
|
|
74
73
|
}
|
|
74
|
+
// testsJson() {
|
|
75
|
+
// puppetMaster.writeFileSync(
|
|
76
|
+
// `tests.json`,
|
|
77
|
+
// JSON.stringify({ features: suiteDone.features() }, null, 2)
|
|
78
|
+
// );
|
|
79
|
+
// }
|
|
75
80
|
Specs() {
|
|
76
81
|
return this.specs;
|
|
77
82
|
}
|
|
@@ -6,16 +6,10 @@ export default class Testeranto extends ClassBuilder {
|
|
|
6
6
|
const fullTestInterface = DefaultTestInterface(testInterface);
|
|
7
7
|
super(testImplementation, testSpecification, input, class extends BaseSuite {
|
|
8
8
|
afterAll(store, artifactory, pm) {
|
|
9
|
-
return fullTestInterface.afterAll(store,
|
|
10
|
-
// (fPath: string, value: unknown) =>
|
|
11
|
-
// // TODO does not work?
|
|
12
|
-
// {
|
|
13
|
-
// artifactory(`afterAll4-${this.name}/${fPath}`, value);
|
|
14
|
-
// },
|
|
15
|
-
pm);
|
|
9
|
+
return fullTestInterface.afterAll(store, pm);
|
|
16
10
|
}
|
|
17
11
|
assertThat(t) {
|
|
18
|
-
fullTestInterface.assertThis(t);
|
|
12
|
+
return fullTestInterface.assertThis(t);
|
|
19
13
|
}
|
|
20
14
|
async setup(s, artifactory, tr, pm) {
|
|
21
15
|
return (fullTestInterface.beforeAll ||
|
|
@@ -42,20 +36,6 @@ export default class Testeranto extends ClassBuilder {
|
|
|
42
36
|
catch (e) {
|
|
43
37
|
throw e;
|
|
44
38
|
}
|
|
45
|
-
// return fullTestInterface
|
|
46
|
-
// .andWhen(store, whenCB, testResource, pm)
|
|
47
|
-
// .catch((e) => {
|
|
48
|
-
// throw e;
|
|
49
|
-
// });
|
|
50
|
-
// return new Promise((res, rej) => {
|
|
51
|
-
// fullTestInterface.andWhen(store, whenCB, testResource, pm);
|
|
52
|
-
// });
|
|
53
|
-
// return await fullTestInterface.andWhen(
|
|
54
|
-
// store,
|
|
55
|
-
// whenCB,
|
|
56
|
-
// testResource,
|
|
57
|
-
// pm
|
|
58
|
-
// );
|
|
59
39
|
}
|
|
60
40
|
}, class Then extends BaseThen {
|
|
61
41
|
async butThen(store, thenCB, testResource, pm) {
|
|
@@ -67,29 +47,11 @@ export default class Testeranto extends ClassBuilder {
|
|
|
67
47
|
console.log(" ERROR ", e);
|
|
68
48
|
throw e;
|
|
69
49
|
});
|
|
70
|
-
// try {
|
|
71
|
-
// console.log("mark 4");
|
|
72
|
-
// return await fullTestInterface.butThen(
|
|
73
|
-
// store,
|
|
74
|
-
// thenCB,
|
|
75
|
-
// testResource,
|
|
76
|
-
// pm
|
|
77
|
-
// );
|
|
78
|
-
// } catch (e) {
|
|
79
|
-
// console.log("mar123");
|
|
80
|
-
// throw e;
|
|
81
|
-
// }
|
|
82
|
-
// return await fullTestInterface.butThen(
|
|
83
|
-
// store,
|
|
84
|
-
// thenCB,
|
|
85
|
-
// testResourceConfiguration,
|
|
86
|
-
// pm
|
|
87
|
-
// );
|
|
88
50
|
}
|
|
89
51
|
}, class Check extends BaseCheck {
|
|
90
|
-
constructor(name, features, checkCallback,
|
|
91
|
-
super(name, features,
|
|
92
|
-
this.initialValues =
|
|
52
|
+
constructor(name, features, checkCallback, x, i, c) {
|
|
53
|
+
super(name, features, checkCallback, x, c);
|
|
54
|
+
this.initialValues = i;
|
|
93
55
|
}
|
|
94
56
|
async checkThat(subject, testResourceConfiguration, artifactory, initializer, initialValues, pm) {
|
|
95
57
|
return fullTestInterface.beforeEach(subject, initializer, testResourceConfiguration, initialValues, pm);
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import ansiC from "ansi-colors";
|
|
2
2
|
import readline from "readline";
|
|
3
|
-
import path from "path";
|
|
4
3
|
import { PM_Main } from "./PM/main";
|
|
5
4
|
readline.emitKeypressEvents(process.stdin);
|
|
6
5
|
if (process.stdin.isTTY)
|
|
@@ -12,15 +11,16 @@ process.stdin.on("keypress", (str, key) => {
|
|
|
12
11
|
process.exit(-1);
|
|
13
12
|
}
|
|
14
13
|
});
|
|
14
|
+
let testName = process.argv[2];
|
|
15
15
|
const mode = process.argv[3];
|
|
16
16
|
if (mode !== "once" && mode !== "dev") {
|
|
17
17
|
console.error("the 2nd argument should be 'dev' or 'once' ");
|
|
18
18
|
process.exit(-1);
|
|
19
19
|
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
const rawConfig =
|
|
20
|
+
console.log("testeranto is running", testName, mode);
|
|
21
|
+
import(process.cwd() + "/" + "testeranto.config.ts").then(async (module) => {
|
|
22
|
+
const bigConfig = module.default;
|
|
23
|
+
const rawConfig = bigConfig.projects[testName];
|
|
24
24
|
const config = Object.assign(Object.assign({}, rawConfig), { buildDir: process.cwd() + "/" + `testeranto/${testName}.json` });
|
|
25
25
|
const pm = new PM_Main(config, testName, mode);
|
|
26
26
|
pm.start();
|
|
@@ -0,0 +1,53 @@
|
|
|
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, projectName) => {
|
|
10
|
+
return path.join("testeranto", "reports", projectName, entryPoint.split(".").slice(0, -1).join("."), platform, `type_errors.txt`);
|
|
11
|
+
};
|
|
12
|
+
export const lintPather = (entryPoint, platform, projectName) => {
|
|
13
|
+
return path.join("testeranto", "reports", projectName, entryPoint.split(".").slice(0, -1).join("."), platform, `lint_errors.json`);
|
|
14
|
+
};
|
|
15
|
+
export const bddPather = (entryPoint, platform, projectName) => {
|
|
16
|
+
return path.join("testeranto", "reports", projectName, entryPoint.split(".").slice(0, -1).join("."), platform, `tests.json`);
|
|
17
|
+
};
|
|
18
|
+
export const promptPather = (entryPoint, platform, projectName) => {
|
|
19
|
+
return path.join("testeranto", "reports", projectName, entryPoint.split(".").slice(0, -1).join("."), platform, `prompt.txt`);
|
|
20
|
+
};
|
|
21
|
+
export const getRunnables = (tests, projectName, payload = {
|
|
22
|
+
nodeEntryPoints: {},
|
|
23
|
+
webEntryPoints: {},
|
|
24
|
+
importEntryPoints: {},
|
|
25
|
+
}) => {
|
|
26
|
+
return tests.reduce((pt, cv, cndx, cry) => {
|
|
27
|
+
if (cv[1] === "node") {
|
|
28
|
+
pt.nodeEntryPoints[cv[0]] = path.resolve(`./testeranto/bundles/node/${projectName}/${cv[0]
|
|
29
|
+
.split(".")
|
|
30
|
+
.slice(0, -1)
|
|
31
|
+
.concat("mjs")
|
|
32
|
+
.join(".")}`);
|
|
33
|
+
}
|
|
34
|
+
else if (cv[1] === "web") {
|
|
35
|
+
pt.webEntryPoints[cv[0]] = path.resolve(`./testeranto/bundles/web/${projectName}/${cv[0]
|
|
36
|
+
.split(".")
|
|
37
|
+
.slice(0, -1)
|
|
38
|
+
.concat("mjs")
|
|
39
|
+
.join(".")}`);
|
|
40
|
+
}
|
|
41
|
+
else if (cv[1] === "pure") {
|
|
42
|
+
pt.importEntryPoints[cv[0]] = path.resolve(`./testeranto/bundles/pure/${projectName}/${cv[0]
|
|
43
|
+
.split(".")
|
|
44
|
+
.slice(0, -1)
|
|
45
|
+
.concat("mjs")
|
|
46
|
+
.join(".")}`);
|
|
47
|
+
}
|
|
48
|
+
// if (cv[3].length) {
|
|
49
|
+
// getRunnables(cv[3], testName, payload);
|
|
50
|
+
// }
|
|
51
|
+
return pt;
|
|
52
|
+
}, payload);
|
|
53
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
const config = {
|
|
2
|
+
projects: {
|
|
3
|
+
react: {
|
|
4
|
+
src: "src",
|
|
5
|
+
debugger: false,
|
|
6
|
+
minify: false,
|
|
7
|
+
clearScreen: false,
|
|
8
|
+
externals: [],
|
|
9
|
+
ports: [],
|
|
10
|
+
featureIngestor: async function (s) {
|
|
11
|
+
return "";
|
|
12
|
+
},
|
|
13
|
+
tests: [
|
|
14
|
+
[
|
|
15
|
+
"./src/SubPackages/react-test-renderer/component/test/node.ts",
|
|
16
|
+
"node",
|
|
17
|
+
{ ports: 0 },
|
|
18
|
+
[],
|
|
19
|
+
],
|
|
20
|
+
// [
|
|
21
|
+
// "./src/SubPackages/react-test-renderer/component/test/web.ts",
|
|
22
|
+
// "web",
|
|
23
|
+
// { ports: 0 },
|
|
24
|
+
// [],
|
|
25
|
+
// ],
|
|
26
|
+
// [
|
|
27
|
+
// "./src/SubPackages/react-test-renderer/component/test/pure.ts",
|
|
28
|
+
// "pure",
|
|
29
|
+
// { ports: 0 },
|
|
30
|
+
// [],
|
|
31
|
+
// ],
|
|
32
|
+
],
|
|
33
|
+
webPlugins: [],
|
|
34
|
+
nodePlugins: [],
|
|
35
|
+
importPlugins: [],
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
};
|
|
39
|
+
export default config;
|