testeranto 0.129.0 → 0.134.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 +137197 -0
- package/.aider.input.history +334 -0
- package/.aider.tags.cache.v3/18/8b/7dfca822129dad10b5cacadf7728.val +0 -0
- package/.aider.tags.cache.v3/{ec/c0/161c249c35be853cc40cf11f9267.val → 62/f5/8af72140d93c58db2f6aa5bf3f1f.val} +0 -0
- package/.aider.tags.cache.v3/8d/fa/12860238755bcfab9af8a93c52ab.val +0 -0
- package/.aider.tags.cache.v3/{b7/e6/5be87b62aeaf2bc244ff41c1b61a.val → a7/97/6d37fce350ad2d588f36729db0cd.val} +0 -0
- package/.aider.tags.cache.v3/{e3/e6/3501625caf5d5eb171f0d248462e.val → ad/3c/10f2ab1397f6d544e613d2a6acaf.val} +0 -0
- package/.aider.tags.cache.v3/cache.db +0 -0
- package/.aider.tags.cache.v3/cache.db-shm +0 -0
- package/.aider.tags.cache.v3/cache.db-wal +0 -0
- package/.aider.tags.cache.v3/dd/5b/0ade824b0841c7c11e9352c5d2ca.val +0 -0
- package/README.md +333 -34
- package/bundle.js +8 -75
- package/dist/common/src/Init.js +6 -1
- package/dist/common/src/Node.js +6 -4
- package/dist/common/src/NodeSidecar.js +15 -0
- package/dist/common/src/PM/PM_WithEslintAndTsc.js +187 -0
- package/dist/common/src/PM/__tests__/nodeSidecar.testeranto.js +109 -0
- package/dist/common/src/PM/__tests__/pureSidecar.testeranto.js +94 -0
- package/dist/common/src/PM/__tests__/webSidecar.testeranto.js +94 -0
- package/dist/common/src/PM/base.js +33 -16
- package/dist/common/src/PM/main.js +484 -425
- package/dist/common/src/PM/node.js +44 -19
- package/dist/common/src/PM/nodeSidecar.js +65 -0
- package/dist/common/src/PM/pure.js +55 -47
- package/dist/common/src/PM/pureSidecar.js +48 -0
- package/dist/common/src/PM/sidecar.js +11 -0
- package/dist/common/src/PM/web.js +24 -6
- package/dist/common/src/PM/webSidecar.js +47 -0
- package/dist/common/src/PureSidecar.js +13 -0
- package/dist/common/src/SP__Polygon.test.js +10 -0
- package/dist/common/src/WebSidecar.js +14 -0
- package/dist/common/src/build.js +63 -10
- package/dist/common/src/defaultConfig.js +1 -0
- package/dist/common/src/esbuildConfigs/consoleDetectorPlugin.js +27 -0
- package/dist/common/src/esbuildConfigs/pure.js +15 -1
- package/dist/common/src/esbuildConfigs/web.js +10 -1
- package/dist/common/src/{SubPackages/react-dom/jsx/index.js → lib/Sidecar.js} +4 -0
- package/dist/common/src/lib/abstractBase.js +7 -5
- package/dist/common/src/lib/basebuilder.js +1 -3
- package/dist/common/src/lib/classBuilder.js +4 -17
- package/dist/common/src/lib/core.js +11 -6
- package/dist/common/src/lib/index.js +13 -4
- package/dist/common/src/lib/pmProxy.js +1 -1
- package/dist/common/src/mothership/index.js +16 -0
- package/dist/common/src/mothership/test.js +65 -0
- package/dist/common/src/utils/queue.js +36 -0
- package/dist/common/src/utils.js +34 -5
- package/dist/common/testeranto.config.js +77 -39
- package/dist/common/tsconfig.common.tsbuildinfo +1 -1
- package/dist/module/src/Init.js +6 -1
- package/dist/module/src/Node.js +6 -4
- package/dist/module/src/NodeSidecar.js +11 -0
- package/dist/module/src/PM/PM_WithEslintAndTsc.js +180 -0
- package/dist/module/src/PM/__tests__/nodeSidecar.testeranto.js +104 -0
- package/dist/module/src/PM/__tests__/pureSidecar.testeranto.js +89 -0
- package/dist/module/src/PM/__tests__/webSidecar.testeranto.js +89 -0
- package/dist/module/src/PM/base.js +33 -16
- package/dist/module/src/PM/main.js +485 -426
- package/dist/module/src/PM/node.js +44 -19
- package/dist/module/src/PM/nodeSidecar.js +58 -0
- package/dist/module/src/PM/pure.js +55 -44
- package/dist/module/src/PM/pureSidecar.js +41 -0
- package/dist/module/src/PM/sidecar.js +7 -0
- package/dist/module/src/PM/web.js +24 -6
- package/dist/module/src/PM/webSidecar.js +40 -0
- package/dist/module/src/Project.js +154 -75
- package/dist/module/src/PureSidecar.js +9 -0
- package/dist/module/src/ReportClient.js +132 -97
- package/dist/module/src/SP__Polygon.test.js +8 -0
- package/dist/module/src/TestReport.js +32 -14
- package/dist/module/src/WebSidecar.js +10 -0
- package/dist/module/src/build.js +63 -10
- package/dist/module/src/defaultConfig.js +1 -0
- package/dist/module/src/esbuildConfigs/consoleDetectorPlugin.js +24 -0
- package/dist/module/src/esbuildConfigs/pure.js +15 -1
- package/dist/module/src/esbuildConfigs/web.js +10 -1
- package/dist/module/src/lib/Sidecar.js +2 -0
- package/dist/module/src/lib/abstractBase.js +7 -5
- package/dist/module/src/lib/basebuilder.js +1 -3
- package/dist/module/src/lib/classBuilder.js +4 -17
- package/dist/module/src/lib/core.js +11 -6
- package/dist/module/src/lib/index.js +12 -4
- package/dist/module/src/lib/pmProxy.js +1 -1
- package/dist/module/src/mothership/index.js +11 -0
- package/dist/module/src/mothership/test.js +60 -0
- package/dist/module/src/utils/queue.js +32 -0
- package/dist/module/src/utils.js +34 -5
- package/dist/module/testeranto.config.js +77 -36
- package/dist/module/tsconfig.module.tsbuildinfo +1 -1
- package/dist/prebuild/Project.js +3288 -385
- package/dist/prebuild/ReportClient.js +0 -24638
- package/dist/prebuild/TestReport.js +14 -8
- package/dist/prebuild/build.mjs +159 -15
- package/dist/prebuild/init-docs.mjs +2 -5
- package/dist/prebuild/mothership/index.mjs +17 -0
- package/dist/prebuild/run.mjs +693 -412
- package/dist/types/src/NodeSidecar.d.ts +6 -0
- package/dist/types/src/PM/PM_WithEslintAndTsc.d.ts +23 -0
- package/dist/types/src/PM/__tests__/nodeSidecar.testeranto.d.ts +20 -0
- package/dist/types/src/PM/__tests__/pureSidecar.testeranto.d.ts +20 -0
- package/dist/types/src/PM/__tests__/webSidecar.testeranto.d.ts +20 -0
- package/dist/types/src/PM/base.d.ts +6 -5
- package/dist/types/src/PM/index.d.ts +5 -3
- package/dist/types/src/PM/main.d.ts +23 -26
- package/dist/types/src/PM/node.d.ts +8 -6
- package/dist/types/src/PM/nodeSidecar.d.ts +13 -0
- package/dist/types/src/PM/pure.d.ts +4 -3
- package/dist/types/src/PM/pureSidecar.d.ts +11 -0
- package/dist/types/src/PM/sidecar.d.ts +8 -0
- package/dist/types/src/PM/web.d.ts +18 -8
- package/dist/types/src/PM/webSidecar.d.ts +11 -0
- package/dist/types/src/PureSidecar.d.ts +8 -0
- package/dist/types/src/Types.d.ts +109 -43
- package/dist/types/src/WebSidecar.d.ts +8 -0
- package/dist/types/src/esbuildConfigs/consoleDetectorPlugin.d.ts +2 -0
- package/dist/types/src/lib/Sidecar.d.ts +5 -0
- package/dist/types/src/lib/abstractBase.d.ts +6 -6
- package/dist/types/src/lib/classBuilder.d.ts +7 -1
- package/dist/types/src/lib/core.d.ts +7 -1
- package/dist/types/src/lib/index.d.ts +10 -4
- package/dist/types/src/lib/types.d.ts +12 -2
- package/dist/types/src/mothership/index.d.ts +2 -0
- package/dist/types/src/mothership/test.d.ts +21 -0
- package/dist/types/src/utils/queue.d.ts +11 -0
- package/dist/types/src/utils.d.ts +4 -7
- package/dist/types/tsconfig.types.tsbuildinfo +1 -1
- package/package.json +19 -105
- package/src/Init.ts +6 -5
- package/src/Node.ts +7 -4
- package/src/NodeSidecar.ts +22 -0
- package/src/PM/PM_WithEslintAndTsc.ts +284 -0
- package/src/PM/__tests__/nodeSidecar.testeranto.ts +173 -0
- package/src/PM/__tests__/pureSidecar.testeranto.ts +157 -0
- package/src/PM/__tests__/webSidecar.testeranto.ts +157 -0
- package/src/PM/base.ts +38 -17
- package/src/PM/index.ts +9 -3
- package/src/PM/main.ts +608 -582
- package/src/PM/node.ts +67 -23
- package/src/PM/nodeSidecar.ts +73 -0
- package/src/PM/pure.ts +68 -58
- package/src/PM/pureSidecar.ts +56 -0
- package/src/PM/sidecar.ts +48 -0
- package/src/PM/web.ts +42 -11
- package/src/PM/webSidecar.ts +55 -0
- package/src/Project.tsx +312 -109
- package/src/Pure.ts +0 -2
- package/src/PureSidecar.ts +14 -0
- package/src/ReportClient.tsx +164 -170
- package/src/SP__Polygon.test.ts +13 -0
- package/src/TestReport.tsx +77 -6
- package/src/Types.ts +227 -122
- package/src/WebSidecar.ts +14 -0
- package/src/build.ts +101 -14
- package/src/defaultConfig.ts +1 -0
- package/src/esbuildConfigs/README.md +46 -0
- package/src/esbuildConfigs/consoleDetectorPlugin.ts +29 -0
- package/src/esbuildConfigs/pure.ts +22 -1
- package/src/esbuildConfigs/web.ts +13 -0
- package/src/lib/Sidecar.ts +6 -0
- package/src/lib/TEST_ADAPTER_RENAME.md +48 -0
- package/src/lib/abstractBase.ts +12 -9
- package/src/lib/basebuilder.ts +5 -4
- package/src/lib/classBuilder.ts +15 -18
- package/src/lib/core.ts +24 -11
- package/src/lib/index.ts +38 -18
- package/src/lib/pmProxy.ts +3 -1
- package/src/lib/types.ts +15 -2
- package/src/mothership/index.ts +15 -0
- package/src/mothership/test.ts +137 -0
- package/src/run.ts +0 -1
- package/src/utils/queue.ts +41 -0
- package/src/utils.ts +41 -15
- package/testeranto/bundles/node/mothership/chunk-PG6KUKNP.mjs +44 -0
- package/testeranto/bundles/node/mothership/chunk-V2EQEXU2.mjs +1032 -0
- package/testeranto/bundles/node/mothership/metafile.json +389 -0
- package/testeranto/bundles/node/mothership/src/PM/__tests__/nodeSidecar.testeranto.mjs +1219 -0
- package/testeranto/bundles/node/mothership/src/PM/__tests__/pureSidecar.testeranto.mjs +156 -0
- package/testeranto/bundles/node/mothership/src/PM/__tests__/sidecar.testeranto.mjs +1199 -0
- package/testeranto/bundles/node/mothership/src/PM/__tests__/webSidecar.testeranto.mjs +156 -0
- package/testeranto/bundles/node/mothership/src/mothership/test.mjs +24411 -0
- package/testeranto/bundles/pure/mothership/metafile.json +8 -0
- package/testeranto/bundles/web/mothership/metafile.json +8 -0
- package/testeranto/index.html +4 -4
- package/testeranto/reports/mothership/config.json +25 -0
- package/testeranto/reports/{redux → mothership}/index.html +8 -8
- package/testeranto/reports/mothership/src/PM/__tests__/nodeSidecar.testeranto/node/console_log.txt +0 -0
- package/testeranto/reports/mothership/src/PM/__tests__/nodeSidecar.testeranto/node/index.html +20 -0
- package/testeranto/reports/mothership/src/PM/__tests__/nodeSidecar.testeranto/node/lint_errors.json +1564 -0
- package/testeranto/reports/mothership/src/PM/__tests__/nodeSidecar.testeranto/node/log.txt +0 -0
- package/testeranto/reports/mothership/src/PM/__tests__/nodeSidecar.testeranto/node/prompt.txt +22 -0
- package/testeranto/reports/mothership/src/PM/__tests__/nodeSidecar.testeranto/node/type_errors.txt +35 -0
- package/testeranto/reports/mothership/src/PM/__tests__/pureSidecar.testeranto/node/index.html +20 -0
- package/testeranto/reports/mothership/src/PM/__tests__/pureSidecar.testeranto/node/lint_errors.json +80 -0
- package/testeranto/reports/mothership/src/PM/__tests__/pureSidecar.testeranto/node/prompt.txt +12 -0
- package/testeranto/reports/mothership/src/PM/__tests__/pureSidecar.testeranto/node/type_errors.txt +26 -0
- package/testeranto/reports/mothership/src/PM/__tests__/sidecar.testeranto/node/bdd_errors.txt +1 -0
- package/testeranto/reports/mothership/src/PM/__tests__/sidecar.testeranto/node/console_log.txt +0 -0
- package/testeranto/reports/mothership/src/PM/__tests__/sidecar.testeranto/node/index.html +20 -0
- package/testeranto/reports/mothership/src/PM/__tests__/sidecar.testeranto/node/lint_errors.json +1564 -0
- package/testeranto/reports/mothership/src/PM/__tests__/sidecar.testeranto/node/log.txt +0 -0
- package/testeranto/reports/mothership/src/PM/__tests__/sidecar.testeranto/node/prompt.txt +22 -0
- package/testeranto/reports/mothership/src/PM/__tests__/sidecar.testeranto/node/tests.json +56 -0
- package/testeranto/reports/mothership/src/PM/__tests__/sidecar.testeranto/node/type_errors.txt +29 -0
- package/testeranto/reports/mothership/src/PM/__tests__/webSidecar.testeranto/node/index.html +20 -0
- package/testeranto/reports/mothership/src/PM/__tests__/webSidecar.testeranto/node/lint_errors.json +80 -0
- package/testeranto/reports/mothership/src/PM/__tests__/webSidecar.testeranto/node/prompt.txt +12 -0
- package/testeranto/reports/mothership/src/PM/__tests__/webSidecar.testeranto/node/type_errors.txt +26 -0
- package/testeranto/reports/mothership/src/mothership/test/node/bdd_errors.txt +1 -0
- package/testeranto/reports/mothership/src/mothership/test/node/console_log.txt +4 -0
- package/testeranto/reports/mothership/src/mothership/test/node/index.html +20 -0
- package/testeranto/reports/mothership/src/mothership/test/node/lint_errors.json +1 -0
- package/testeranto/reports/mothership/src/mothership/test/node/log.txt +0 -0
- package/testeranto/reports/mothership/src/mothership/test/node/prompt.txt +12 -0
- package/testeranto/reports/mothership/src/mothership/test/node/tests.json +24 -0
- package/testeranto/reports/mothership/src/mothership/test/node/type_errors.txt +18 -0
- package/testeranto/reports/mothership/summary.json +9 -0
- package/testeranto.config.ts +82 -44
- package/tsc.log +78 -81
- package/dist/common/src/SubPackages/react/component/index.js +0 -20
- package/dist/common/src/SubPackages/react/component/node.js +0 -10
- package/dist/common/src/SubPackages/react/component/pure.js +0 -10
- package/dist/common/src/SubPackages/react/component/web.js +0 -10
- package/dist/common/src/SubPackages/react/jsx/index.js +0 -64
- package/dist/common/src/SubPackages/react/jsx/node.js +0 -10
- package/dist/common/src/SubPackages/react/jsx/pure.js +0 -10
- package/dist/common/src/SubPackages/react/jsx/web.js +0 -10
- package/dist/common/src/SubPackages/react-dom/component/dynamic.js +0 -61
- package/dist/common/src/SubPackages/react-dom/component/node.js +0 -10
- package/dist/common/src/SubPackages/react-dom/component/pure.js +0 -10
- package/dist/common/src/SubPackages/react-dom/component/static.js +0 -26
- package/dist/common/src/SubPackages/react-dom/component/web.js +0 -16
- package/dist/common/src/SubPackages/react-dom/jsx/dynamic.js +0 -31
- package/dist/common/src/SubPackages/react-dom/jsx/node.js +0 -10
- package/dist/common/src/SubPackages/react-dom/jsx/pure.js +0 -10
- package/dist/common/src/SubPackages/react-dom/jsx/static.js +0 -59
- package/dist/common/src/SubPackages/react-dom/jsx/web.js +0 -16
- package/dist/common/src/SubPackages/react-test-renderer/MemoExoticComponent/node.js +0 -54
- package/dist/common/src/SubPackages/react-test-renderer/component/index.js +0 -15
- package/dist/common/src/SubPackages/react-test-renderer/component/interface.js +0 -70
- package/dist/common/src/SubPackages/react-test-renderer/component/node.js +0 -8
- package/dist/common/src/SubPackages/react-test-renderer/component/pure.js +0 -8
- package/dist/common/src/SubPackages/react-test-renderer/component/test/implementation.js +0 -57
- package/dist/common/src/SubPackages/react-test-renderer/component/test/node.js +0 -10
- package/dist/common/src/SubPackages/react-test-renderer/component/test/pure.js +0 -10
- package/dist/common/src/SubPackages/react-test-renderer/component/test/web.js +0 -10
- package/dist/common/src/SubPackages/react-test-renderer/component/web.js +0 -8
- package/dist/common/src/SubPackages/react-test-renderer/fc/node.js +0 -60
- package/dist/common/src/SubPackages/react-test-renderer/fc/web.js +0 -60
- package/dist/common/src/SubPackages/react-test-renderer/jsx/index.js +0 -67
- package/dist/common/src/SubPackages/react-test-renderer/jsx/node.js +0 -10
- package/dist/common/src/SubPackages/react-test-renderer/jsx/pure.js +0 -10
- package/dist/common/src/SubPackages/react-test-renderer/jsx/web.js +0 -10
- package/dist/common/src/SubPackages/react-test-renderer/jsx-promised/index.js +0 -52
- package/dist/common/src/SubPackages/react-test-renderer/jsx-promised/node.js +0 -10
- package/dist/common/src/SubPackages/react-test-renderer/jsx-promised/web.js +0 -10
- package/dist/common/src/examples/react/component/index.js +0 -33
- package/dist/common/src/examples/react/component/test.js +0 -36
- package/dist/module/src/SubPackages/react/component/index.js +0 -13
- package/dist/module/src/SubPackages/react/component/node.js +0 -5
- package/dist/module/src/SubPackages/react/component/pure.js +0 -5
- package/dist/module/src/SubPackages/react/component/web.js +0 -5
- package/dist/module/src/SubPackages/react/jsx/index.js +0 -58
- package/dist/module/src/SubPackages/react/jsx/node.js +0 -5
- package/dist/module/src/SubPackages/react/jsx/pure.js +0 -5
- package/dist/module/src/SubPackages/react/jsx/web.js +0 -5
- package/dist/module/src/SubPackages/react-dom/component/dynamic.js +0 -54
- package/dist/module/src/SubPackages/react-dom/component/node.js +0 -5
- package/dist/module/src/SubPackages/react-dom/component/pure.js +0 -5
- package/dist/module/src/SubPackages/react-dom/component/static.js +0 -22
- package/dist/module/src/SubPackages/react-dom/component/web.js +0 -11
- package/dist/module/src/SubPackages/react-dom/jsx/dynamic.js +0 -27
- package/dist/module/src/SubPackages/react-dom/jsx/node.js +0 -5
- package/dist/module/src/SubPackages/react-dom/jsx/pure.js +0 -5
- package/dist/module/src/SubPackages/react-dom/jsx/static.js +0 -53
- package/dist/module/src/SubPackages/react-dom/jsx/web.js +0 -11
- package/dist/module/src/SubPackages/react-test-renderer/MemoExoticComponent/node.js +0 -16
- package/dist/module/src/SubPackages/react-test-renderer/component/index.js +0 -14
- package/dist/module/src/SubPackages/react-test-renderer/component/interface.js +0 -31
- package/dist/module/src/SubPackages/react-test-renderer/component/node.js +0 -3
- package/dist/module/src/SubPackages/react-test-renderer/component/pure.js +0 -3
- package/dist/module/src/SubPackages/react-test-renderer/component/test/implementation.js +0 -54
- package/dist/module/src/SubPackages/react-test-renderer/component/test/node.js +0 -5
- package/dist/module/src/SubPackages/react-test-renderer/component/test/pure.js +0 -5
- package/dist/module/src/SubPackages/react-test-renderer/component/test/web.js +0 -5
- package/dist/module/src/SubPackages/react-test-renderer/component/web.js +0 -3
- package/dist/module/src/SubPackages/react-test-renderer/fc/node.js +0 -22
- package/dist/module/src/SubPackages/react-test-renderer/fc/web.js +0 -22
- package/dist/module/src/SubPackages/react-test-renderer/jsx/index.js +0 -28
- package/dist/module/src/SubPackages/react-test-renderer/jsx/node.js +0 -5
- package/dist/module/src/SubPackages/react-test-renderer/jsx/pure.js +0 -5
- package/dist/module/src/SubPackages/react-test-renderer/jsx/web.js +0 -5
- package/dist/module/src/SubPackages/react-test-renderer/jsx-promised/index.js +0 -16
- package/dist/module/src/SubPackages/react-test-renderer/jsx-promised/node.js +0 -5
- package/dist/module/src/SubPackages/react-test-renderer/jsx-promised/web.js +0 -5
- package/dist/module/src/examples/react/component/index.js +0 -26
- package/dist/module/src/examples/react/component/test.js +0 -32
- package/dist/prebuild/ReportClient.css +0 -11342
- package/dist/tsconfig.tsbuildinfo +0 -1
- package/dist/types/src/SubPackages/react/component/index.d.ts +0 -4
- package/dist/types/src/SubPackages/react/component/node.d.ts +0 -4
- package/dist/types/src/SubPackages/react/component/pure.d.ts +0 -4
- package/dist/types/src/SubPackages/react/component/web.d.ts +0 -4
- package/dist/types/src/SubPackages/react/jsx/index.d.ts +0 -5
- package/dist/types/src/SubPackages/react/jsx/node.d.ts +0 -4
- package/dist/types/src/SubPackages/react/jsx/pure.d.ts +0 -4
- package/dist/types/src/SubPackages/react/jsx/web.d.ts +0 -4
- package/dist/types/src/SubPackages/react-dom/component/dynamic.d.ts +0 -20
- package/dist/types/src/SubPackages/react-dom/component/node.d.ts +0 -4
- package/dist/types/src/SubPackages/react-dom/component/pure.d.ts +0 -4
- package/dist/types/src/SubPackages/react-dom/component/static.d.ts +0 -9
- package/dist/types/src/SubPackages/react-dom/component/web.d.ts +0 -4
- package/dist/types/src/SubPackages/react-dom/jsx/dynamic.d.ts +0 -5
- package/dist/types/src/SubPackages/react-dom/jsx/index.d.ts +0 -6
- package/dist/types/src/SubPackages/react-dom/jsx/node.d.ts +0 -4
- package/dist/types/src/SubPackages/react-dom/jsx/pure.d.ts +0 -4
- package/dist/types/src/SubPackages/react-dom/jsx/static.d.ts +0 -5
- package/dist/types/src/SubPackages/react-dom/jsx/web.d.ts +0 -5
- package/dist/types/src/SubPackages/react-test-renderer/MemoExoticComponent/node.d.ts +0 -6
- package/dist/types/src/SubPackages/react-test-renderer/component/index.d.ts +0 -5
- package/dist/types/src/SubPackages/react-test-renderer/component/interface.d.ts +0 -3
- package/dist/types/src/SubPackages/react-test-renderer/component/node.d.ts +0 -4
- package/dist/types/src/SubPackages/react-test-renderer/component/pure.d.ts +0 -4
- package/dist/types/src/SubPackages/react-test-renderer/component/test/implementation.d.ts +0 -4
- package/dist/types/src/SubPackages/react-test-renderer/component/test/node.d.ts +0 -3
- package/dist/types/src/SubPackages/react-test-renderer/component/test/pure.d.ts +0 -4
- package/dist/types/src/SubPackages/react-test-renderer/component/test/web.d.ts +0 -3
- package/dist/types/src/SubPackages/react-test-renderer/component/web.d.ts +0 -4
- package/dist/types/src/SubPackages/react-test-renderer/fc/node.d.ts +0 -8
- package/dist/types/src/SubPackages/react-test-renderer/fc/web.d.ts +0 -9
- package/dist/types/src/SubPackages/react-test-renderer/jsx/index.d.ts +0 -11
- package/dist/types/src/SubPackages/react-test-renderer/jsx/node.d.ts +0 -4
- package/dist/types/src/SubPackages/react-test-renderer/jsx/pure.d.ts +0 -4
- package/dist/types/src/SubPackages/react-test-renderer/jsx/web.d.ts +0 -4
- package/dist/types/src/SubPackages/react-test-renderer/jsx-promised/index.d.ts +0 -15
- package/dist/types/src/SubPackages/react-test-renderer/jsx-promised/node.d.ts +0 -5
- package/dist/types/src/SubPackages/react-test-renderer/jsx-promised/web.d.ts +0 -5
- package/dist/types/src/examples/react/component/index.d.ts +0 -13
- package/dist/types/src/examples/react/component/test.d.ts +0 -17
- package/src/SubPackages/react/component/index.ts +0 -28
- package/src/SubPackages/react/component/node.ts +0 -17
- package/src/SubPackages/react/component/pure.ts +0 -17
- package/src/SubPackages/react/component/web.ts +0 -17
- package/src/SubPackages/react/jsx/index.ts +0 -75
- package/src/SubPackages/react/jsx/node.ts +0 -23
- package/src/SubPackages/react/jsx/pure.ts +0 -23
- package/src/SubPackages/react/jsx/web.ts +0 -24
- package/src/SubPackages/react-dom/component/dynamic.ts +0 -107
- package/src/SubPackages/react-dom/component/node.ts +0 -17
- package/src/SubPackages/react-dom/component/pure.ts +0 -17
- package/src/SubPackages/react-dom/component/static.ts +0 -41
- package/src/SubPackages/react-dom/component/web.ts +0 -32
- package/src/SubPackages/react-dom/jsx/dynamic.ts +0 -46
- package/src/SubPackages/react-dom/jsx/index.ts +0 -6
- package/src/SubPackages/react-dom/jsx/node.ts +0 -18
- package/src/SubPackages/react-dom/jsx/pure.ts +0 -18
- package/src/SubPackages/react-dom/jsx/static.ts +0 -87
- package/src/SubPackages/react-dom/jsx/web.ts +0 -26
- package/src/SubPackages/react-test-renderer/MemoExoticComponent/node.ts +0 -54
- package/src/SubPackages/react-test-renderer/component/index.ts +0 -32
- package/src/SubPackages/react-test-renderer/component/interface.ts +0 -43
- package/src/SubPackages/react-test-renderer/component/node.ts +0 -18
- package/src/SubPackages/react-test-renderer/component/pure.ts +0 -18
- package/src/SubPackages/react-test-renderer/component/test/implementation.ts +0 -63
- package/src/SubPackages/react-test-renderer/component/test/node.ts +0 -14
- package/src/SubPackages/react-test-renderer/component/test/pure.ts +0 -14
- package/src/SubPackages/react-test-renderer/component/test/web.ts +0 -14
- package/src/SubPackages/react-test-renderer/component/web.ts +0 -18
- package/src/SubPackages/react-test-renderer/fc/node.ts +0 -83
- package/src/SubPackages/react-test-renderer/fc/web.ts +0 -80
- package/src/SubPackages/react-test-renderer/jsx/index.ts +0 -61
- package/src/SubPackages/react-test-renderer/jsx/node.ts +0 -31
- package/src/SubPackages/react-test-renderer/jsx/pure.ts +0 -31
- package/src/SubPackages/react-test-renderer/jsx/web.ts +0 -32
- package/src/SubPackages/react-test-renderer/jsx-promised/index.ts +0 -73
- package/src/SubPackages/react-test-renderer/jsx-promised/node.ts +0 -36
- package/src/SubPackages/react-test-renderer/jsx-promised/web.ts +0 -36
- package/src/examples/react/component/index.tsx +0 -35
- package/src/examples/react/component/test.ts +0 -83
- package/testeranto/bundles/node/redux/metafile.json +0 -559
- package/testeranto/bundles/pure/redux/metafile.json +0 -554
- package/testeranto/bundles/web/redux/metafile.json +0 -504
- package/testeranto/bundles/web/redux/test/web.html +0 -19
- package/testeranto/reports/redux/config.json +0 -38
- package/testeranto/reports/redux/summary.json +0 -20
- /package/dist/{module/src/SubPackages/react-dom/jsx/index.js → types/src/SP__Polygon.test.d.ts} +0 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.consoleDetectorPlugin = void 0;
|
|
4
|
+
exports.consoleDetectorPlugin = {
|
|
5
|
+
name: 'console-detector',
|
|
6
|
+
setup(build) {
|
|
7
|
+
build.onLoad({ filter: /\.(js|ts)$/ }, async (args) => {
|
|
8
|
+
const contents = await require('fs').promises.readFile(args.path, 'utf8');
|
|
9
|
+
const consolePattern = /console\.(log|error|warn|info|debug|trace|dir|dirxml|table|group|groupEnd|clear|count|countReset|assert|profile|profileEnd|time|timeLog|timeEnd|timeStamp|context|memory)/g;
|
|
10
|
+
const matches = contents.match(consolePattern);
|
|
11
|
+
if (matches) {
|
|
12
|
+
const uniqueMethods = [...new Set(matches)];
|
|
13
|
+
return {
|
|
14
|
+
warnings: uniqueMethods.map(method => ({
|
|
15
|
+
text: `Detected ${method} call - Pure runtime does not allow IO operations. Use Node runtime instead.`,
|
|
16
|
+
location: {
|
|
17
|
+
file: args.path,
|
|
18
|
+
line: contents.split('\n').findIndex(line => line.includes(method)) + 1,
|
|
19
|
+
column: 0
|
|
20
|
+
}
|
|
21
|
+
}))
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
return null;
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
};
|
|
@@ -6,9 +6,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
const index_js_1 = __importDefault(require("./index.js"));
|
|
7
7
|
const inputFilesPlugin_js_1 = __importDefault(require("./inputFilesPlugin.js"));
|
|
8
8
|
const featuresPlugin_js_1 = __importDefault(require("./featuresPlugin.js"));
|
|
9
|
+
const node_module_1 = require("node:module");
|
|
10
|
+
const consoleDetectorPlugin_js_1 = require("./consoleDetectorPlugin.js");
|
|
9
11
|
exports.default = (config, entryPoints, testName) => {
|
|
10
12
|
const { inputFilesPluginFactory, register } = (0, inputFilesPlugin_js_1.default)("pure", testName);
|
|
11
|
-
return Object.assign(Object.assign({}, (0, index_js_1.default)(config)), { drop: [
|
|
13
|
+
return Object.assign(Object.assign({}, (0, index_js_1.default)(config)), { drop: [], splitting: true, outdir: `testeranto/bundles/pure/${testName}/`,
|
|
12
14
|
// inject: [`./node_modules/testeranto/dist/cjs-shim.js`],
|
|
13
15
|
metafile: true, supported: {
|
|
14
16
|
"dynamic-import": true,
|
|
@@ -19,6 +21,18 @@ exports.default = (config, entryPoints, testName) => {
|
|
|
19
21
|
}, platform: "node", external: ["react", ...config.externals], entryPoints: [...entryPoints], plugins: [
|
|
20
22
|
featuresPlugin_js_1.default,
|
|
21
23
|
inputFilesPluginFactory,
|
|
24
|
+
consoleDetectorPlugin_js_1.consoleDetectorPlugin,
|
|
25
|
+
{
|
|
26
|
+
name: "native-node-import-filter",
|
|
27
|
+
setup(build) {
|
|
28
|
+
build.onResolve({ filter: /fs/ }, (args) => {
|
|
29
|
+
if ((0, node_module_1.isBuiltin)(args.path)) {
|
|
30
|
+
throw new Error(`cannot use native node package "${args.path}" in a "pure" test. If you really want to use this package, convert this test from "pure" to "node"`);
|
|
31
|
+
}
|
|
32
|
+
return { path: args.path };
|
|
33
|
+
});
|
|
34
|
+
},
|
|
35
|
+
},
|
|
22
36
|
{
|
|
23
37
|
name: "rebuild-notify",
|
|
24
38
|
setup: (build) => {
|
|
@@ -3,13 +3,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const esbuild_plugin_polyfill_node_1 = require("esbuild-plugin-polyfill-node");
|
|
6
7
|
const path_1 = __importDefault(require("path"));
|
|
7
8
|
const index_js_1 = __importDefault(require("./index.js"));
|
|
8
9
|
const inputFilesPlugin_js_1 = __importDefault(require("./inputFilesPlugin.js"));
|
|
9
10
|
const featuresPlugin_js_1 = __importDefault(require("./featuresPlugin.js"));
|
|
10
11
|
exports.default = (config, entryPoints, testName) => {
|
|
11
12
|
const { inputFilesPluginFactory, register } = (0, inputFilesPlugin_js_1.default)("web", testName);
|
|
12
|
-
return Object.assign(Object.assign({}, (0, index_js_1.default)(config)), { outdir: `testeranto/bundles/web/${testName}`, alias: {
|
|
13
|
+
return Object.assign(Object.assign({}, (0, index_js_1.default)(config)), { treeShaking: true, outdir: `testeranto/bundles/web/${testName}`, alias: {
|
|
13
14
|
react: path_1.default.resolve("./node_modules/react"),
|
|
14
15
|
}, metafile: true, external: [
|
|
15
16
|
"path",
|
|
@@ -32,6 +33,14 @@ exports.default = (config, entryPoints, testName) => {
|
|
|
32
33
|
], platform: "browser", entryPoints: [...entryPoints], plugins: [
|
|
33
34
|
featuresPlugin_js_1.default,
|
|
34
35
|
inputFilesPluginFactory,
|
|
36
|
+
(0, esbuild_plugin_polyfill_node_1.polyfillNode)({
|
|
37
|
+
// You might need to configure specific Node.js modules you want to polyfill
|
|
38
|
+
// Example:
|
|
39
|
+
// modules: {
|
|
40
|
+
// 'util': true,
|
|
41
|
+
// 'fs': false,
|
|
42
|
+
// }
|
|
43
|
+
}),
|
|
35
44
|
{
|
|
36
45
|
name: "rebuild-notify",
|
|
37
46
|
setup: (build) => {
|
|
@@ -57,7 +57,7 @@ class BaseSuite {
|
|
|
57
57
|
catch (e) {
|
|
58
58
|
this.failed = true;
|
|
59
59
|
this.fails = this.fails + 1;
|
|
60
|
-
|
|
60
|
+
console.error(e);
|
|
61
61
|
// this.fails.push(giver);
|
|
62
62
|
// return this;
|
|
63
63
|
}
|
|
@@ -140,7 +140,7 @@ class BaseGiven {
|
|
|
140
140
|
}
|
|
141
141
|
for (const [thenNdx, thenStep] of this.thens.entries()) {
|
|
142
142
|
const t = await thenStep.test(this.store, testResourceConfiguration, tLog, pm, `suite-${suiteNdx}/given-${key}/then-${thenNdx}`);
|
|
143
|
-
|
|
143
|
+
tester(t);
|
|
144
144
|
// ((t) => {
|
|
145
145
|
// return tester(t);
|
|
146
146
|
// })();
|
|
@@ -172,16 +172,18 @@ class BaseWhen {
|
|
|
172
172
|
this.whenCB = whenCB;
|
|
173
173
|
}
|
|
174
174
|
toObj() {
|
|
175
|
+
console.log("toObj error", this.error);
|
|
175
176
|
return {
|
|
176
177
|
name: this.name,
|
|
177
|
-
error: this.error,
|
|
178
|
+
error: this.error && this.error.name + this.error.stack,
|
|
178
179
|
};
|
|
179
180
|
}
|
|
180
181
|
async test(store, testResourceConfiguration, tLog, pm, filepath) {
|
|
181
182
|
tLog(" When:", this.name);
|
|
182
183
|
return await this.andWhen(store, this.whenCB, testResourceConfiguration, (0, pmProxy_js_1.andWhenProxy)(pm, filepath)).catch((e) => {
|
|
183
|
-
|
|
184
|
-
|
|
184
|
+
console.log("MARK9", e);
|
|
185
|
+
this.error = e;
|
|
186
|
+
throw e;
|
|
185
187
|
});
|
|
186
188
|
}
|
|
187
189
|
}
|
|
@@ -28,15 +28,13 @@ class BaseBuilder {
|
|
|
28
28
|
},
|
|
29
29
|
runner,
|
|
30
30
|
receiveTestResourceConfig: async function (puppetMaster) {
|
|
31
|
-
const start = await puppetMaster.start();
|
|
32
31
|
const logFilePath = "log.txt";
|
|
33
32
|
const access = await puppetMaster.createWriteStream(logFilePath);
|
|
34
33
|
const tLog = async (...l) => {
|
|
35
|
-
const x = await puppetMaster.write(access, `${l.toString()}\n`);
|
|
36
34
|
// console.log("x", x);
|
|
37
35
|
};
|
|
38
36
|
const suiteDone = await runner(puppetMaster, tLog);
|
|
39
|
-
const logPromise = new Promise(async (res
|
|
37
|
+
const logPromise = new Promise(async (res) => {
|
|
40
38
|
await puppetMaster.end(access);
|
|
41
39
|
res(true);
|
|
42
40
|
});
|
|
@@ -11,11 +11,9 @@ class ClassBuilder extends basebuilder_js_1.BaseBuilder {
|
|
|
11
11
|
return a;
|
|
12
12
|
}, {});
|
|
13
13
|
const classyGivens = Object.entries(testImplementation.givens).reduce((a, [key, g]) => {
|
|
14
|
-
a[key] = (features, whens, thens) => {
|
|
14
|
+
a[key] = (features, whens, thens, ...initialValues) => {
|
|
15
15
|
// console.log("givEn", givEn.toString());
|
|
16
|
-
return new givenKlasser.prototype.constructor(key, features, whens, thens, testImplementation.givens[key]
|
|
17
|
-
// givEn
|
|
18
|
-
);
|
|
16
|
+
return new givenKlasser.prototype.constructor(key, features, whens, thens, testImplementation.givens[key], initialValues);
|
|
19
17
|
};
|
|
20
18
|
return a;
|
|
21
19
|
}, {});
|
|
@@ -26,19 +24,8 @@ class ClassBuilder extends basebuilder_js_1.BaseBuilder {
|
|
|
26
24
|
return a;
|
|
27
25
|
}, {});
|
|
28
26
|
const classyThens = Object.entries(testImplementation.thens).reduce((a, [key, thEn]) => {
|
|
29
|
-
a[key] = (expected, x) => {
|
|
30
|
-
return new thenKlasser.prototype.constructor(`${thEn.name}: ${expected && expected.toString()}`,
|
|
31
|
-
// () => {
|
|
32
|
-
// thEn(expected);
|
|
33
|
-
// // return new Promise((res), rej) => {
|
|
34
|
-
// // }
|
|
35
|
-
// // try {
|
|
36
|
-
// // thEn(expected);
|
|
37
|
-
// // } catch (c) {
|
|
38
|
-
// // console.log("mark99");
|
|
39
|
-
// // }
|
|
40
|
-
// },
|
|
41
|
-
thEn(expected));
|
|
27
|
+
a[key] = (expected, ...x) => {
|
|
28
|
+
return new thenKlasser.prototype.constructor(`${thEn.name}: ${expected && expected.toString()}`, thEn(expected, ...x));
|
|
42
29
|
};
|
|
43
30
|
return a;
|
|
44
31
|
}, {});
|
|
@@ -32,12 +32,17 @@ class Testeranto extends classBuilder_js_1.ClassBuilder {
|
|
|
32
32
|
}
|
|
33
33
|
}, class When extends abstractBase_js_1.BaseWhen {
|
|
34
34
|
async andWhen(store, whenCB, testResource, pm) {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
35
|
+
return await fullTestInterface.andWhen(store, whenCB, testResource, pm);
|
|
36
|
+
// try {
|
|
37
|
+
// return await fullTestInterface.andWhen(
|
|
38
|
+
// store,
|
|
39
|
+
// whenCB,
|
|
40
|
+
// testResource,
|
|
41
|
+
// pm
|
|
42
|
+
// );
|
|
43
|
+
// } catch (e) {
|
|
44
|
+
// console.log("mark22", e);
|
|
45
|
+
// }
|
|
41
46
|
}
|
|
42
47
|
}, class Then extends abstractBase_js_1.BaseThen {
|
|
43
48
|
async butThen(store, thenCB, testResource, pm) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.defaultTestResourceRequirement = exports.DefaultTestInterface = exports.BaseTestInterface = void 0;
|
|
4
|
-
|
|
4
|
+
const BaseTestInterface = () => ({
|
|
5
5
|
beforeAll: async (s) => s,
|
|
6
6
|
beforeEach: async function (subject, initialValues, x, testResource, pm) {
|
|
7
7
|
return subject;
|
|
@@ -11,9 +11,18 @@ exports.BaseTestInterface = {
|
|
|
11
11
|
butThen: async (store, thenCb) => {
|
|
12
12
|
return thenCb(store);
|
|
13
13
|
},
|
|
14
|
-
andWhen: async (
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
andWhen: async (store, whenCB, testResource, pm) => {
|
|
15
|
+
try {
|
|
16
|
+
await whenCB(store, testResource, pm);
|
|
17
|
+
}
|
|
18
|
+
catch (error) {
|
|
19
|
+
console.error("Error in andWhen:", error);
|
|
20
|
+
throw error; // Re-throw to maintain test failure
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
assertThis: (x) => x,
|
|
24
|
+
});
|
|
25
|
+
exports.BaseTestInterface = BaseTestInterface;
|
|
17
26
|
const DefaultTestInterface = (p) => {
|
|
18
27
|
return Object.assign(Object.assign({}, exports.BaseTestInterface), p);
|
|
19
28
|
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const express_1 = __importDefault(require("express"));
|
|
7
|
+
const app = (0, express_1.default)();
|
|
8
|
+
app.get("/", (req, res) => {
|
|
9
|
+
res.send("Hello World!");
|
|
10
|
+
});
|
|
11
|
+
exports.default = (port) => {
|
|
12
|
+
app.listen(port, () => {
|
|
13
|
+
console.log(`Example app listening on port ${port}`);
|
|
14
|
+
});
|
|
15
|
+
return app;
|
|
16
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const Node_1 = __importDefault(require("../Node"));
|
|
7
|
+
const index_1 = __importDefault(require("./index"));
|
|
8
|
+
const specification = (Suite, Given, When, Then) => {
|
|
9
|
+
console.log("Suite", Suite);
|
|
10
|
+
return [
|
|
11
|
+
Suite.TheMothership("the mothership allows the coordination of test resources", {
|
|
12
|
+
test0: Given.ItIsRunning([`a resource can be claimed`], [When.IClaimTheResource("test")], [
|
|
13
|
+
// Then.TheResourceIsClaimed("test")
|
|
14
|
+
]),
|
|
15
|
+
}, []),
|
|
16
|
+
];
|
|
17
|
+
};
|
|
18
|
+
const implementation = {
|
|
19
|
+
suites: { TheMothership: (x) => x },
|
|
20
|
+
givens: { ItIsRunning: () => undefined },
|
|
21
|
+
whens: {
|
|
22
|
+
IClaimTheResource: (resource) => async (i, tr, p) => {
|
|
23
|
+
fetch(`http://localhost:${tr.ports[0]}/claim?${resource}`);
|
|
24
|
+
},
|
|
25
|
+
IReleaseTheResource: function (resource) {
|
|
26
|
+
throw new Error("Function not implemented.");
|
|
27
|
+
},
|
|
28
|
+
IResetTheResource: function (Iw_0) {
|
|
29
|
+
throw new Error("Function not implemented.");
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
thens: {
|
|
33
|
+
TheResourceIsClaimed: (resource) => async (z, u) => {
|
|
34
|
+
throw new Error("Function not implemented.");
|
|
35
|
+
},
|
|
36
|
+
TheResourceIsUnClaimed: function (It_0) {
|
|
37
|
+
throw new Error("Function not implemented.");
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
checks: { AnEmptyState: () => "any" },
|
|
41
|
+
};
|
|
42
|
+
const testInterface = {
|
|
43
|
+
// assertThis: function (x: any) {
|
|
44
|
+
// throw new Error("Function not implemented.");
|
|
45
|
+
// },
|
|
46
|
+
// andWhen: function (store: any, whenCB: any, testResource: ITTestResourceConfiguration, pm: IPM): Promise<any> {
|
|
47
|
+
// throw new Error("Function not implemented.");
|
|
48
|
+
// },
|
|
49
|
+
// butThen: function (store: any, thenCB: any, testResource: ITTestResourceConfiguration, pm: IPM): Promise<any> {
|
|
50
|
+
// throw new Error("Function not implemented.");
|
|
51
|
+
// },
|
|
52
|
+
// afterAll: function (store: any, pm: IPM) {
|
|
53
|
+
// throw new Error("Function not implemented.");
|
|
54
|
+
// },
|
|
55
|
+
// afterEach: function (store: any, key: string, pm: IPM): Promise<unknown> {
|
|
56
|
+
// throw new Error("Function not implemented.");
|
|
57
|
+
// },
|
|
58
|
+
// beforeAll: function (input: Express, testResource: ITTestResourceConfiguration, pm: IPM): Promise<any> {
|
|
59
|
+
// throw new Error("Function not implemented.");
|
|
60
|
+
// },
|
|
61
|
+
beforeEach: async (subject, initializer, testResource, initialValues, pm) => {
|
|
62
|
+
return subject(testResource.ports[0]);
|
|
63
|
+
},
|
|
64
|
+
};
|
|
65
|
+
exports.default = (0, Node_1.default)(index_1.default, specification, implementation, testInterface);
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Queue = void 0;
|
|
4
|
+
class Queue {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.items = [];
|
|
7
|
+
}
|
|
8
|
+
enqueue(element) {
|
|
9
|
+
this.items.push(element);
|
|
10
|
+
}
|
|
11
|
+
dequeue() {
|
|
12
|
+
if (this.isEmpty()) {
|
|
13
|
+
return "Queue is empty";
|
|
14
|
+
}
|
|
15
|
+
return this.items.shift();
|
|
16
|
+
}
|
|
17
|
+
peek() {
|
|
18
|
+
if (this.isEmpty()) {
|
|
19
|
+
return "Queue is empty";
|
|
20
|
+
}
|
|
21
|
+
return this.items[0];
|
|
22
|
+
}
|
|
23
|
+
isEmpty() {
|
|
24
|
+
return this.items.length === 0;
|
|
25
|
+
}
|
|
26
|
+
size() {
|
|
27
|
+
return this.items.length;
|
|
28
|
+
}
|
|
29
|
+
clear() {
|
|
30
|
+
this.items = [];
|
|
31
|
+
}
|
|
32
|
+
print() {
|
|
33
|
+
console.log(this.items.join(" -> "));
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.Queue = Queue;
|
package/dist/common/src/utils.js
CHANGED
|
@@ -4,6 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.getRunnables = exports.promptPather = exports.bddPather = exports.lintPather = exports.tscPather = exports.destinationOfRuntime = void 0;
|
|
7
|
+
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
7
8
|
const path_1 = __importDefault(require("path"));
|
|
8
9
|
const destinationOfRuntime = (f, r, configs) => {
|
|
9
10
|
return path_1.default
|
|
@@ -31,8 +32,11 @@ const promptPather = (entryPoint, platform, projectName) => {
|
|
|
31
32
|
exports.promptPather = promptPather;
|
|
32
33
|
const getRunnables = (tests, projectName, payload = {
|
|
33
34
|
nodeEntryPoints: {},
|
|
35
|
+
nodeEntryPointSidecars: {},
|
|
34
36
|
webEntryPoints: {},
|
|
35
|
-
|
|
37
|
+
webEntryPointSidecars: {},
|
|
38
|
+
pureEntryPoints: {},
|
|
39
|
+
pureEntryPointSidecars: {},
|
|
36
40
|
}) => {
|
|
37
41
|
return tests.reduce((pt, cv, cndx, cry) => {
|
|
38
42
|
if (cv[1] === "node") {
|
|
@@ -50,15 +54,40 @@ const getRunnables = (tests, projectName, payload = {
|
|
|
50
54
|
.join(".")}`);
|
|
51
55
|
}
|
|
52
56
|
else if (cv[1] === "pure") {
|
|
53
|
-
pt.
|
|
57
|
+
pt.pureEntryPoints[cv[0]] = path_1.default.resolve(`./testeranto/bundles/pure/${projectName}/${cv[0]
|
|
54
58
|
.split(".")
|
|
55
59
|
.slice(0, -1)
|
|
56
60
|
.concat("mjs")
|
|
57
61
|
.join(".")}`);
|
|
58
62
|
}
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
63
|
+
//////////////////////////////////////////////////////////
|
|
64
|
+
cv[3]
|
|
65
|
+
.filter((t) => t[1] === "node")
|
|
66
|
+
.forEach((t) => {
|
|
67
|
+
pt.nodeEntryPointSidecars[`${t[0]}`] = path_1.default.resolve(`./testeranto/bundles/node/${projectName}/${cv[0]
|
|
68
|
+
.split(".")
|
|
69
|
+
.slice(0, -1)
|
|
70
|
+
.concat("mjs")
|
|
71
|
+
.join(".")}`);
|
|
72
|
+
});
|
|
73
|
+
cv[3]
|
|
74
|
+
.filter((t) => t[1] === "web")
|
|
75
|
+
.forEach((t) => {
|
|
76
|
+
pt.webEntryPointSidecars[`${t[0]}`] = path_1.default.resolve(`./testeranto/bundles/web/${projectName}/${cv[0]
|
|
77
|
+
.split(".")
|
|
78
|
+
.slice(0, -1)
|
|
79
|
+
.concat("mjs")
|
|
80
|
+
.join(".")}`);
|
|
81
|
+
});
|
|
82
|
+
cv[3]
|
|
83
|
+
.filter((t) => t[1] === "pure")
|
|
84
|
+
.forEach((t) => {
|
|
85
|
+
pt.pureEntryPointSidecars[`${t[0]}`] = path_1.default.resolve(`./testeranto/bundles/pure/${projectName}/${cv[0]
|
|
86
|
+
.split(".")
|
|
87
|
+
.slice(0, -1)
|
|
88
|
+
.concat("mjs")
|
|
89
|
+
.join(".")}`);
|
|
90
|
+
});
|
|
62
91
|
return pt;
|
|
63
92
|
}, payload);
|
|
64
93
|
};
|
|
@@ -1,50 +1,88 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
|
|
3
|
+
// import redux from "testeranto_with_reduxjs_toolkit/testeranto.config";
|
|
4
|
+
// import solidity from "testeranto-solidity/testeranto.config";
|
|
7
5
|
const config = {
|
|
8
6
|
projects: {
|
|
9
|
-
redux:
|
|
7
|
+
// redux: {
|
|
8
|
+
// ...redux.projects.allTests,
|
|
9
|
+
// src: "node_modules/testeranto_with_reduxjs_toolkit",
|
|
10
|
+
// },
|
|
10
11
|
// solidity: {
|
|
11
12
|
// ...solidity.projects.solidity,
|
|
12
13
|
// src: "node_modules/testeranto-solidity",
|
|
13
14
|
// },
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
15
|
+
mothership: {
|
|
16
|
+
tests: [
|
|
17
|
+
// ["./src/mothership/test.ts", "node", { ports: 1 }, []],
|
|
18
|
+
[
|
|
19
|
+
"./src/PM/__tests__/nodeSidecar.testeranto.ts",
|
|
20
|
+
"node",
|
|
21
|
+
{ ports: 1 },
|
|
22
|
+
[],
|
|
23
|
+
],
|
|
24
|
+
// [
|
|
25
|
+
// "./src/PM/__tests__/pureSidecar.testeranto.ts",
|
|
26
|
+
// "node",
|
|
27
|
+
// { ports: 1 },
|
|
28
|
+
// [],
|
|
29
|
+
// ],
|
|
30
|
+
// [
|
|
31
|
+
// "./src/PM/__tests__/webSidecar.testeranto.ts",
|
|
32
|
+
// "node",
|
|
33
|
+
// { ports: 1 },
|
|
34
|
+
// [],
|
|
35
|
+
// ],
|
|
36
|
+
],
|
|
37
|
+
clearScreen: false,
|
|
38
|
+
debugger: false,
|
|
39
|
+
externals: [],
|
|
40
|
+
externalTests: {},
|
|
41
|
+
featureIngestor: function (s) {
|
|
42
|
+
throw new Error("Function not implemented.");
|
|
43
|
+
},
|
|
44
|
+
importPlugins: [],
|
|
45
|
+
minify: false,
|
|
46
|
+
nodePlugins: [],
|
|
47
|
+
ports: ["3333"],
|
|
48
|
+
src: "",
|
|
49
|
+
webPlugins: [],
|
|
50
|
+
},
|
|
51
|
+
react: {
|
|
52
|
+
src: "src",
|
|
53
|
+
debugger: false,
|
|
54
|
+
minify: false,
|
|
55
|
+
clearScreen: false,
|
|
56
|
+
externals: [],
|
|
57
|
+
ports: [],
|
|
58
|
+
featureIngestor: async function (s) {
|
|
59
|
+
return "";
|
|
60
|
+
},
|
|
61
|
+
tests: [
|
|
62
|
+
[
|
|
63
|
+
"./src/SubPackages/react-test-renderer/component/test/node.ts",
|
|
64
|
+
"node",
|
|
65
|
+
{ ports: 0 },
|
|
66
|
+
[],
|
|
67
|
+
],
|
|
68
|
+
[
|
|
69
|
+
"./src/SubPackages/react-test-renderer/component/test/web.ts",
|
|
70
|
+
"web",
|
|
71
|
+
{ ports: 0 },
|
|
72
|
+
[],
|
|
73
|
+
],
|
|
74
|
+
[
|
|
75
|
+
"./src/SubPackages/react-test-renderer/component/test/pure.ts",
|
|
76
|
+
"pure",
|
|
77
|
+
{ ports: 0 },
|
|
78
|
+
[],
|
|
79
|
+
],
|
|
80
|
+
],
|
|
81
|
+
webPlugins: [],
|
|
82
|
+
nodePlugins: [],
|
|
83
|
+
importPlugins: [],
|
|
84
|
+
externalTests: {},
|
|
85
|
+
},
|
|
48
86
|
},
|
|
49
87
|
};
|
|
50
88
|
exports.default = config;
|