testeranto 0.129.0 → 0.135.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 +137798 -0
- package/.aider.input.history +370 -0
- package/.aider.tags.cache.v3/{ec/c0/161c249c35be853cc40cf11f9267.val → 62/f5/8af72140d93c58db2f6aa5bf3f1f.val} +0 -0
- package/.aider.tags.cache.v3/8e/ec/2d4659a1589a0187a757ab1cbefa.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/d8/b0/a8966fcd65890fd9f70d7afe8141.val +0 -0
- package/.aider.tags.cache.v3/dd/5b/0ade824b0841c7c11e9352c5d2ca.val +0 -0
- package/README.md +194 -182
- 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 +189 -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 +492 -428
- package/dist/common/src/PM/node.js +54 -22
- 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 +66 -12
- package/dist/common/src/defaultConfig.js +1 -0
- package/dist/common/src/esbuildConfigs/consoleDetectorPlugin.js +27 -0
- package/dist/common/src/esbuildConfigs/eslint-formatter-testeranto.js +16 -1
- package/dist/common/src/esbuildConfigs/node.js +2 -16
- package/dist/common/src/esbuildConfigs/pure.js +12 -12
- package/dist/common/src/esbuildConfigs/rebuildPlugin.js +22 -0
- package/dist/common/src/esbuildConfigs/web.js +12 -17
- package/dist/common/src/lib/Sidecar.js +6 -0
- package/dist/common/src/lib/abstractBase.js +13 -6
- package/dist/common/src/lib/basebuilder.js +1 -3
- package/dist/common/src/lib/classBuilder.js +6 -20
- 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 +182 -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 +493 -429
- package/dist/module/src/PM/node.js +54 -22
- 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 +66 -12
- package/dist/module/src/defaultConfig.js +1 -0
- package/dist/module/src/esbuildConfigs/consoleDetectorPlugin.js +24 -0
- package/dist/module/src/esbuildConfigs/eslint-formatter-testeranto.js +16 -1
- package/dist/module/src/esbuildConfigs/node.js +2 -16
- package/dist/module/src/esbuildConfigs/pure.js +12 -12
- package/dist/module/src/esbuildConfigs/rebuildPlugin.js +17 -0
- package/dist/module/src/esbuildConfigs/web.js +12 -17
- package/dist/module/src/lib/Sidecar.js +2 -0
- package/dist/module/src/lib/abstractBase.js +13 -6
- package/dist/module/src/lib/basebuilder.js +1 -3
- package/dist/module/src/lib/classBuilder.js +6 -20
- 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 +3287 -385
- package/dist/prebuild/ReportClient.js +0 -24638
- package/dist/prebuild/TestReport.js +26 -22
- package/dist/prebuild/build.mjs +192 -70
- package/dist/prebuild/esbuildConfigs/eslint-formatter-testeranto.mjs +14 -1
- package/dist/prebuild/init-docs.mjs +2 -5
- package/dist/prebuild/mothership/index.mjs +17 -0
- package/dist/prebuild/run.mjs +733 -433
- package/dist/types/src/CoreTypes.d.ts +51 -0
- package/dist/types/src/Node.d.ts +2 -2
- 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 +2 -0
- package/dist/types/src/PM/__tests__/pureSidecar.testeranto.d.ts +2 -0
- package/dist/types/src/PM/__tests__/webSidecar.testeranto.d.ts +2 -0
- package/dist/types/src/PM/base.d.ts +6 -5
- package/dist/types/src/PM/index.d.ts +6 -4
- 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/SP__Polygon.test.d.ts +1 -0
- package/dist/types/src/Types.d.ts +80 -58
- package/dist/types/src/Web.d.ts +1 -1
- package/dist/types/src/WebSidecar.d.ts +8 -0
- package/dist/types/src/esbuildConfigs/consoleDetectorPlugin.d.ts +2 -0
- package/dist/types/src/esbuildConfigs/rebuildPlugin.d.ts +6 -0
- package/dist/types/src/lib/Sidecar.d.ts +5 -0
- package/dist/types/src/lib/abstractBase.d.ts +6 -12
- package/dist/types/src/lib/classBuilder.d.ts +7 -1
- package/dist/types/src/lib/core.d.ts +8 -2
- 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 +2 -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/docs/index.md +277 -0
- package/package.json +23 -104
- package/src/CoreTypes.ts +171 -0
- package/src/Init.ts +6 -5
- package/src/Node.ts +32 -15
- package/src/NodeSidecar.ts +22 -0
- package/src/PM/PM_WithEslintAndTsc.ts +315 -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 +10 -4
- package/src/PM/main.ts +616 -589
- package/src/PM/node.ts +77 -33
- 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 +278 -157
- package/src/Web.ts +0 -3
- package/src/WebSidecar.ts +14 -0
- package/src/build.ts +104 -16
- package/src/defaultConfig.ts +1 -0
- package/src/esbuildConfigs/README.md +46 -0
- package/src/esbuildConfigs/consoleDetectorPlugin.ts +29 -0
- package/src/esbuildConfigs/eslint-formatter-testeranto.ts +17 -1
- package/src/esbuildConfigs/node.ts +2 -18
- package/src/esbuildConfigs/pure.ts +19 -14
- package/src/esbuildConfigs/rebuildPlugin.ts +23 -0
- package/src/esbuildConfigs/web.ts +15 -18
- package/src/lib/Sidecar.ts +6 -0
- package/src/lib/TEST_ADAPTER_RENAME.md +48 -0
- package/src/lib/abstractBase.ts +18 -10
- package/src/lib/basebuilder.ts +5 -4
- package/src/lib/classBuilder.ts +19 -21
- package/src/lib/core.ts +28 -19
- 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/common/src/{SubPackages/react-dom/jsx/index.js → CoreTypes.js} +0 -0
- /package/dist/module/src/{SubPackages/react-dom/jsx/index.js → CoreTypes.js} +0 -0
package/src/Types.ts
CHANGED
|
@@ -1,178 +1,299 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
1
2
|
import { Plugin } from "esbuild";
|
|
2
|
-
|
|
3
3
|
import { ITTestResourceConfiguration } from "./lib/index.js";
|
|
4
|
+
import { PM } from "./PM/index.js";
|
|
5
|
+
|
|
4
6
|
import {
|
|
5
|
-
IGivens,
|
|
6
|
-
BaseCheck,
|
|
7
|
-
BaseSuite,
|
|
8
7
|
BaseWhen,
|
|
9
8
|
BaseThen,
|
|
10
9
|
BaseGiven,
|
|
10
|
+
BaseCheck,
|
|
11
|
+
BaseSuite,
|
|
12
|
+
IGivens,
|
|
11
13
|
} from "./lib/abstractBase.js";
|
|
12
|
-
import { IPM, ITestCheckCallback } from "./lib/types.js";
|
|
13
|
-
import { PM } from "./PM/index.js";
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
assertThis: (x: I["then"]) => any;
|
|
17
|
-
andWhen: (
|
|
18
|
-
store: I["istore"],
|
|
19
|
-
whenCB: I["when"],
|
|
20
|
-
testResource: ITTestResourceConfiguration,
|
|
21
|
-
pm: IPM
|
|
22
|
-
) => Promise<I["istore"]>;
|
|
23
|
-
butThen: (
|
|
24
|
-
store: I["istore"],
|
|
25
|
-
thenCB: I["then"],
|
|
26
|
-
testResource: ITTestResourceConfiguration,
|
|
27
|
-
pm: IPM
|
|
28
|
-
) => Promise<I["iselection"]>;
|
|
29
|
-
afterAll: (store: I["istore"], pm: IPM) => any;
|
|
30
|
-
afterEach: (store: I["istore"], key: string, pm: IPM) => Promise<unknown>;
|
|
31
|
-
beforeAll: (
|
|
32
|
-
input: I["iinput"],
|
|
33
|
-
testResource: ITTestResourceConfiguration,
|
|
34
|
-
pm: IPM
|
|
35
|
-
) => Promise<I["isubject"]>;
|
|
36
|
-
beforeEach: (
|
|
37
|
-
subject: I["isubject"],
|
|
38
|
-
initializer: (c?) => I["given"],
|
|
39
|
-
testResource: ITTestResourceConfiguration,
|
|
40
|
-
initialValues,
|
|
41
|
-
pm: IPM
|
|
42
|
-
) => Promise<I["istore"]>;
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
export type IWebTestInterface<I extends IT> = ITestInterface<I>;
|
|
46
|
-
|
|
47
|
-
export type INodeTestInterface<I extends IT> = ITestInterface<I>;
|
|
48
|
-
|
|
49
|
-
export type IPartialInterface<I extends IT> = Partial<ITestInterface<I>>;
|
|
50
|
-
|
|
51
|
-
export type IPartialNodeInterface<I extends IT> = Partial<
|
|
52
|
-
INodeTestInterface<I>
|
|
53
|
-
>;
|
|
54
|
-
export type IPartialWebInterface<I extends IT> = Partial<IWebTestInterface<I>>;
|
|
15
|
+
import { Ibdd_in, Ibdd_out } from "./CoreTypes.js";
|
|
55
16
|
|
|
56
|
-
|
|
17
|
+
export type SuiteSpecification<
|
|
18
|
+
I extends Ibdd_in<
|
|
19
|
+
unknown,
|
|
20
|
+
unknown,
|
|
21
|
+
unknown,
|
|
22
|
+
unknown,
|
|
23
|
+
unknown,
|
|
24
|
+
unknown,
|
|
25
|
+
unknown
|
|
26
|
+
>,
|
|
27
|
+
O extends Ibdd_out<
|
|
28
|
+
TestSuiteShape,
|
|
29
|
+
TestGivenShape,
|
|
30
|
+
TestWhenShape,
|
|
31
|
+
TestThenShape,
|
|
32
|
+
TestCheckShape
|
|
33
|
+
>
|
|
34
|
+
> = {
|
|
35
|
+
[K in keyof O["suites"]]: (
|
|
36
|
+
name: string,
|
|
37
|
+
givens: IGivens<I>,
|
|
38
|
+
checks: BaseCheck<I>[]
|
|
39
|
+
) => BaseSuite<I, O>;
|
|
40
|
+
};
|
|
57
41
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
>;
|
|
75
|
-
|
|
76
|
-
//
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
//
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
42
|
+
// Simplified test result summary
|
|
43
|
+
export type TestSummary = {
|
|
44
|
+
testName: string;
|
|
45
|
+
errors?: {
|
|
46
|
+
runtime?: number;
|
|
47
|
+
type?: number;
|
|
48
|
+
static?: number;
|
|
49
|
+
};
|
|
50
|
+
prompt?: string;
|
|
51
|
+
failedFeatures: string[];
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
// Core test lifecycle hooks
|
|
55
|
+
export type TestLifecycle<Subject, State, Selection> = {
|
|
56
|
+
// Setup
|
|
57
|
+
beforeAll?: (input: any) => Promise<Subject>;
|
|
58
|
+
beforeEach?: (subject: Subject) => Promise<State>;
|
|
59
|
+
|
|
60
|
+
// Execution
|
|
61
|
+
executeStep?: (state: State) => Promise<State>;
|
|
62
|
+
verifyStep?: (state: State) => Promise<Selection>;
|
|
63
|
+
|
|
64
|
+
// Cleanup
|
|
65
|
+
afterEach?: (state: State) => Promise<void>;
|
|
66
|
+
afterAll?: (state: State) => Promise<void>;
|
|
67
|
+
|
|
68
|
+
// Assertions
|
|
69
|
+
assert?: (result: Selection) => void;
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
// BDD Test Structure
|
|
73
|
+
export type TestDefinition<Subject, State, Selection> = {
|
|
74
|
+
// Test subject
|
|
75
|
+
subject: Subject;
|
|
76
|
+
|
|
77
|
+
// Test steps
|
|
78
|
+
given?: (input: any) => State;
|
|
79
|
+
when?: (state: State) => State | Promise<State>;
|
|
80
|
+
then?: (state: State) => Selection | Promise<Selection>;
|
|
81
|
+
|
|
82
|
+
// Configuration
|
|
83
|
+
resources?: ITTestResourceConfiguration;
|
|
84
|
+
pm?: typeof PM;
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
// Test Suite Organization
|
|
88
|
+
export type TestSuite = {
|
|
89
|
+
name: string;
|
|
90
|
+
tests: TestDefinition<any, any, any>[];
|
|
91
|
+
features?: string[];
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
// Runtime Configuration
|
|
95
|
+
export type RuntimeConfig = {
|
|
96
|
+
type: "node" | "web" | "pure" | "spawn";
|
|
97
|
+
ports?: number[];
|
|
98
|
+
plugins?: Plugin[];
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
// Project Configuration
|
|
102
|
+
export type ProjectConfig = {
|
|
103
|
+
name: string;
|
|
104
|
+
sourceDir: string;
|
|
105
|
+
testSuites: TestSuite[];
|
|
106
|
+
runtime: RuntimeConfig;
|
|
107
|
+
minify?: boolean;
|
|
108
|
+
debug?: boolean;
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
export type GivenSpecification<
|
|
112
|
+
I extends Ibdd_in<
|
|
113
|
+
unknown,
|
|
114
|
+
unknown,
|
|
115
|
+
unknown,
|
|
116
|
+
unknown,
|
|
117
|
+
unknown,
|
|
118
|
+
unknown,
|
|
119
|
+
unknown
|
|
120
|
+
>,
|
|
121
|
+
O extends Ibdd_out<
|
|
122
|
+
TestSuiteShape,
|
|
123
|
+
TestGivenShape,
|
|
124
|
+
TestWhenShape,
|
|
125
|
+
TestThenShape,
|
|
126
|
+
TestCheckShape
|
|
127
|
+
>
|
|
128
|
+
> = {
|
|
129
|
+
[K in keyof O["givens"]]: (
|
|
130
|
+
features: string[],
|
|
131
|
+
whens: BaseWhen<I>[],
|
|
132
|
+
thens: BaseThen<I>[],
|
|
133
|
+
...xtrasB: O["givens"][K]
|
|
134
|
+
) => BaseGiven<I>;
|
|
135
|
+
};
|
|
136
|
+
|
|
137
|
+
export type WhenSpecification<
|
|
138
|
+
I extends Ibdd_in<
|
|
139
|
+
unknown,
|
|
140
|
+
unknown,
|
|
141
|
+
unknown,
|
|
142
|
+
unknown,
|
|
143
|
+
unknown,
|
|
144
|
+
unknown,
|
|
145
|
+
unknown
|
|
146
|
+
>,
|
|
147
|
+
O extends Ibdd_out<
|
|
148
|
+
TestSuiteShape,
|
|
149
|
+
TestGivenShape,
|
|
150
|
+
TestWhenShape,
|
|
151
|
+
TestThenShape,
|
|
152
|
+
TestCheckShape
|
|
153
|
+
>
|
|
154
|
+
> = {
|
|
155
|
+
[K in keyof O["whens"]]: (...xtrasC: O["whens"][K]) => BaseWhen<I>;
|
|
156
|
+
};
|
|
157
|
+
|
|
158
|
+
export type ThenSpecification<
|
|
159
|
+
I extends Ibdd_in<
|
|
160
|
+
unknown,
|
|
161
|
+
unknown,
|
|
162
|
+
unknown,
|
|
163
|
+
unknown,
|
|
164
|
+
unknown,
|
|
165
|
+
unknown,
|
|
166
|
+
unknown
|
|
167
|
+
>,
|
|
168
|
+
O extends Ibdd_out<
|
|
169
|
+
TestSuiteShape,
|
|
170
|
+
TestGivenShape,
|
|
171
|
+
TestWhenShape,
|
|
172
|
+
TestThenShape,
|
|
173
|
+
TestCheckShape
|
|
174
|
+
>
|
|
175
|
+
> = {
|
|
176
|
+
[K in keyof O["thens"]]: (...xtrasD: O["thens"][K]) => BaseThen<I>;
|
|
177
|
+
};
|
|
108
178
|
|
|
109
179
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
110
180
|
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
O extends
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
whens: {
|
|
124
|
-
[K in keyof O["whens"]]: (
|
|
125
|
-
...Iw: O["whens"][K]
|
|
126
|
-
) => (zel: I["iselection"], utils: PM) => Promise<I["when"]>;
|
|
127
|
-
};
|
|
128
|
-
thens: {
|
|
129
|
-
[K in keyof O["thens"]]: (
|
|
130
|
-
...It: O["thens"][K]
|
|
131
|
-
) => (ssel: I["iselection"], utils: PM) => I["then"];
|
|
132
|
-
};
|
|
133
|
-
checks: {
|
|
134
|
-
[K in keyof O["checks"]]: (...Ic: O["checks"][K]) => I["given"];
|
|
135
|
-
};
|
|
136
|
-
},
|
|
137
|
-
modifier
|
|
138
|
-
>;
|
|
181
|
+
// Base implementation types
|
|
182
|
+
export type TestSuiteImplementation<
|
|
183
|
+
O extends Ibdd_out<
|
|
184
|
+
TestSuiteShape,
|
|
185
|
+
TestGivenShape,
|
|
186
|
+
TestWhenShape,
|
|
187
|
+
TestThenShape,
|
|
188
|
+
TestCheckShape
|
|
189
|
+
>
|
|
190
|
+
> = {
|
|
191
|
+
[K in keyof O["suites"]]: string;
|
|
192
|
+
};
|
|
139
193
|
|
|
140
|
-
|
|
194
|
+
export type TestGivenImplementation<
|
|
195
|
+
I extends Ibdd_in<
|
|
196
|
+
unknown,
|
|
197
|
+
unknown,
|
|
198
|
+
unknown,
|
|
199
|
+
unknown,
|
|
200
|
+
unknown,
|
|
201
|
+
unknown,
|
|
202
|
+
unknown
|
|
203
|
+
>,
|
|
204
|
+
O extends Ibdd_out<
|
|
205
|
+
TestSuiteShape,
|
|
206
|
+
TestGivenShape,
|
|
207
|
+
TestWhenShape,
|
|
208
|
+
TestThenShape,
|
|
209
|
+
TestCheckShape
|
|
210
|
+
>
|
|
211
|
+
> = {
|
|
212
|
+
[K in keyof O["givens"]]: (...Ig: O["givens"][K]) => I["given"];
|
|
213
|
+
};
|
|
141
214
|
|
|
142
|
-
export type
|
|
215
|
+
export type TestWhenImplementation<
|
|
216
|
+
I extends Ibdd_in<
|
|
217
|
+
unknown,
|
|
218
|
+
unknown,
|
|
219
|
+
unknown,
|
|
220
|
+
unknown,
|
|
221
|
+
unknown,
|
|
222
|
+
unknown,
|
|
223
|
+
unknown
|
|
224
|
+
>,
|
|
225
|
+
O extends Ibdd_out<
|
|
226
|
+
TestSuiteShape,
|
|
227
|
+
TestGivenShape,
|
|
228
|
+
TestWhenShape,
|
|
229
|
+
TestThenShape,
|
|
230
|
+
TestCheckShape
|
|
231
|
+
>
|
|
232
|
+
> = {
|
|
233
|
+
[K in keyof O["whens"]]: (
|
|
234
|
+
...Iw: O["whens"][K]
|
|
235
|
+
) => (
|
|
236
|
+
zel: I["iselection"],
|
|
237
|
+
tr: ITTestResourceConfiguration,
|
|
238
|
+
utils: PM
|
|
239
|
+
) => Promise<I["when"]>;
|
|
240
|
+
};
|
|
143
241
|
|
|
144
|
-
export type
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
242
|
+
export type TestThenImplementation<
|
|
243
|
+
I extends Ibdd_in<
|
|
244
|
+
unknown,
|
|
245
|
+
unknown,
|
|
246
|
+
unknown,
|
|
247
|
+
unknown,
|
|
248
|
+
unknown,
|
|
249
|
+
unknown,
|
|
250
|
+
unknown
|
|
251
|
+
>,
|
|
252
|
+
O extends Ibdd_out<
|
|
253
|
+
TestSuiteShape,
|
|
254
|
+
TestGivenShape,
|
|
255
|
+
TestWhenShape,
|
|
256
|
+
TestThenShape,
|
|
257
|
+
TestCheckShape
|
|
258
|
+
>
|
|
150
259
|
> = {
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
260
|
+
[K in keyof O["thens"]]: (
|
|
261
|
+
...It: O["thens"][K]
|
|
262
|
+
) => (ssel: I["iselection"], utils: PM) => I["then"];
|
|
263
|
+
};
|
|
264
|
+
|
|
265
|
+
export type TestCheckImplementation<
|
|
266
|
+
I extends Ibdd_in<
|
|
267
|
+
unknown,
|
|
268
|
+
unknown,
|
|
269
|
+
unknown,
|
|
270
|
+
unknown,
|
|
271
|
+
unknown,
|
|
272
|
+
unknown,
|
|
273
|
+
unknown
|
|
274
|
+
>,
|
|
275
|
+
O extends Ibdd_out<
|
|
276
|
+
TestSuiteShape,
|
|
277
|
+
TestGivenShape,
|
|
278
|
+
TestWhenShape,
|
|
279
|
+
TestThenShape,
|
|
280
|
+
TestCheckShape
|
|
281
|
+
>
|
|
166
282
|
> = {
|
|
167
|
-
|
|
168
|
-
isubject: ISubject;
|
|
169
|
-
istore: IStore;
|
|
170
|
-
iselection: ISelection;
|
|
171
|
-
given: IGiven;
|
|
172
|
-
when: IWhen;
|
|
173
|
-
then: IThen;
|
|
283
|
+
[K in keyof O["checks"]]: (...Ic: O["checks"][K]) => I["given"];
|
|
174
284
|
};
|
|
175
285
|
|
|
286
|
+
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
287
|
+
|
|
288
|
+
export type Modify<T, R> = Omit<T, keyof R> & R;
|
|
289
|
+
|
|
290
|
+
// Individual output shape components
|
|
291
|
+
export type TestSuiteShape = Record<string, any>;
|
|
292
|
+
export type TestGivenShape = Record<string, any>;
|
|
293
|
+
export type TestWhenShape = Record<string, any>;
|
|
294
|
+
export type TestThenShape = Record<string, any>;
|
|
295
|
+
export type TestCheckShape = Record<string, any>;
|
|
296
|
+
|
|
176
297
|
///////////////////////////////////////////////
|
|
177
298
|
|
|
178
299
|
export type IPluginFactory = (
|
|
@@ -180,7 +301,7 @@ export type IPluginFactory = (
|
|
|
180
301
|
entrypoints?: string[]
|
|
181
302
|
) => Plugin;
|
|
182
303
|
|
|
183
|
-
export type IRunTime = `node` | `web` | "pure"
|
|
304
|
+
export type IRunTime = `node` | `web` | "pure" | `spawn`;
|
|
184
305
|
|
|
185
306
|
export type ITestTypes = [string, IRunTime, { ports: number }, ITestTypes[]];
|
|
186
307
|
|
|
@@ -188,6 +309,7 @@ export type ITestconfig = {
|
|
|
188
309
|
clearScreen: boolean;
|
|
189
310
|
debugger: boolean;
|
|
190
311
|
externals: string[];
|
|
312
|
+
externalTests: Record<string, { watch: string[]; exec: string }>;
|
|
191
313
|
featureIngestor: (s: string) => Promise<string>;
|
|
192
314
|
importPlugins: IPluginFactory[];
|
|
193
315
|
minify: boolean;
|
|
@@ -196,7 +318,6 @@ export type ITestconfig = {
|
|
|
196
318
|
src: string;
|
|
197
319
|
tests: ITestTypes[];
|
|
198
320
|
webPlugins: IPluginFactory[];
|
|
199
|
-
reportDomain: string;
|
|
200
321
|
};
|
|
201
322
|
|
|
202
323
|
export type IBuiltConfig = { buildDir: string } & ITestconfig;
|
package/src/Web.ts
CHANGED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ITTestResourceConfiguration } from "./lib";
|
|
2
|
+
import { Sidecar } from "./lib/Sidecar";
|
|
3
|
+
import { PM_Web_Sidecar } from "./PM/webSidecar";
|
|
4
|
+
// import { PM_Node_Sidecar } from "./PM/nodeSidecar";
|
|
5
|
+
|
|
6
|
+
export class WebSideCar extends Sidecar {
|
|
7
|
+
start(t: ITTestResourceConfiguration) {
|
|
8
|
+
throw new Error("Method not implemented.");
|
|
9
|
+
}
|
|
10
|
+
stop() {
|
|
11
|
+
throw new Error("Method not implemented.");
|
|
12
|
+
}
|
|
13
|
+
pm: PM_Web_Sidecar;
|
|
14
|
+
}
|