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
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { ITTestResourceConfiguration } from "./lib";
|
|
2
|
+
import { IPM, ITestCheckCallback } from "./lib/types";
|
|
3
|
+
import { GivenSpecification, WhenSpecification, ThenSpecification, TestWhenImplementation, Modify, TestSuiteImplementation, TestGivenImplementation, TestThenImplementation, TestCheckImplementation, TestSuiteShape, TestGivenShape, TestWhenShape, TestThenShape, TestCheckShape, SuiteSpecification } from "./Types";
|
|
4
|
+
export type ITestInterface<I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>> = {
|
|
5
|
+
assertThis: (x: I["then"]) => any;
|
|
6
|
+
andWhen: (store: I["istore"], whenCB: I["when"], testResource: ITTestResourceConfiguration, pm: IPM) => Promise<I["istore"]>;
|
|
7
|
+
butThen: (store: I["istore"], thenCB: I["then"], testResource: ITTestResourceConfiguration, pm: IPM) => Promise<I["iselection"]>;
|
|
8
|
+
afterAll: (store: I["istore"], pm: IPM) => any;
|
|
9
|
+
afterEach: (store: I["istore"], key: string, pm: IPM) => Promise<unknown>;
|
|
10
|
+
beforeAll: (input: I["iinput"], testResource: ITTestResourceConfiguration, pm: IPM) => Promise<I["isubject"]>;
|
|
11
|
+
beforeEach: (subject: I["isubject"], initializer: (c?: any) => I["given"], testResource: ITTestResourceConfiguration, initialValues: any, pm: IPM) => Promise<I["istore"]>;
|
|
12
|
+
};
|
|
13
|
+
export type ITestSpecification<I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>, O extends Ibdd_out<TestSuiteShape, TestGivenShape, TestWhenShape, TestThenShape, TestCheckShape>> = (Suite: SuiteSpecification<I, O>, Given: GivenSpecification<I, O>, When: WhenSpecification<I, O>, Then: ThenSpecification<I, O>, Check: ITestCheckCallback<I, O>) => any[];
|
|
14
|
+
export type ITestImplementation<I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>, O extends Ibdd_out<TestSuiteShape, TestGivenShape, TestWhenShape, TestThenShape, TestCheckShape>, modifier = {
|
|
15
|
+
whens: TestWhenImplementation<I, O>;
|
|
16
|
+
}> = Modify<{
|
|
17
|
+
suites: TestSuiteImplementation<O>;
|
|
18
|
+
givens: TestGivenImplementation<I, O>;
|
|
19
|
+
whens: TestWhenImplementation<I, O>;
|
|
20
|
+
thens: TestThenImplementation<I, O>;
|
|
21
|
+
checks: TestCheckImplementation<I, O>;
|
|
22
|
+
}, modifier>;
|
|
23
|
+
export type Ibdd_out<ISuites extends TestSuiteShape = TestSuiteShape, IGivens extends TestGivenShape = TestGivenShape, IWhens extends TestWhenShape = TestWhenShape, IThens extends TestThenShape = TestThenShape, IChecks extends TestCheckShape = TestCheckShape> = {
|
|
24
|
+
suites: ISuites;
|
|
25
|
+
givens: IGivens;
|
|
26
|
+
whens: IWhens;
|
|
27
|
+
thens: IThens;
|
|
28
|
+
checks: IChecks;
|
|
29
|
+
};
|
|
30
|
+
export type Ibdd_in<IInput, // Type of initial test input
|
|
31
|
+
ISubject, // Type of object being tested
|
|
32
|
+
IStore, // Type for storing test state between steps
|
|
33
|
+
ISelection, // Type for selecting state for assertions
|
|
34
|
+
IGiven, // Type for Given step functions
|
|
35
|
+
IWhen, // Type for When step functions
|
|
36
|
+
IThen> = {
|
|
37
|
+
/** Initial input required to start tests */
|
|
38
|
+
iinput: IInput;
|
|
39
|
+
/** The subject being tested (class, function, etc) */
|
|
40
|
+
isubject: ISubject;
|
|
41
|
+
/** Complete test state storage */
|
|
42
|
+
istore: IStore;
|
|
43
|
+
/** Selected portion of state for assertions */
|
|
44
|
+
iselection: ISelection;
|
|
45
|
+
/** Function type for Given steps */
|
|
46
|
+
given: IGiven;
|
|
47
|
+
/** Function type for When steps */
|
|
48
|
+
when: IWhen;
|
|
49
|
+
/** Function type for Then steps */
|
|
50
|
+
then: IThen;
|
|
51
|
+
};
|
package/dist/types/src/Node.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Testeranto from "./lib/core.js";
|
|
2
2
|
import { ITTestResourceRequest } from "./lib/index.js";
|
|
3
|
-
import
|
|
4
|
-
export declare class NodeTesteranto<I extends
|
|
3
|
+
import { ITestSpecification, ITestImplementation, ITestInterface, Ibdd_in, Ibdd_out } from "./CoreTypes.js";
|
|
4
|
+
export declare class NodeTesteranto<I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>, O extends Ibdd_out, M> extends Testeranto<I, O, M> {
|
|
5
5
|
constructor(input: I["iinput"], testSpecification: ITestSpecification<I, O>, testImplementation: ITestImplementation<I, O, M>, testResourceRequirement: ITTestResourceRequest, testInterface: Partial<ITestInterface<I>>);
|
|
6
6
|
receiveTestResourceConfig(partialTestResource: string): Promise<import("./lib/index.js").IFinalResults>;
|
|
7
7
|
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { IBuiltConfig, IRunTime, ISummary } from "../Types.js";
|
|
2
|
+
import { PM_Base } from "./base.js";
|
|
3
|
+
export declare abstract class PM_WithEslintAndTsc extends PM_Base {
|
|
4
|
+
name: string;
|
|
5
|
+
mode: "once" | "dev";
|
|
6
|
+
summary: ISummary;
|
|
7
|
+
constructor(configs: IBuiltConfig, name: string, mode: "once" | "dev");
|
|
8
|
+
tscCheck: ({ entrypoint, addableFiles, platform, }: {
|
|
9
|
+
platform: IRunTime;
|
|
10
|
+
entrypoint: string;
|
|
11
|
+
addableFiles: string[];
|
|
12
|
+
}) => Promise<void>;
|
|
13
|
+
eslintCheck: (entrypoint: string, platform: IRunTime, addableFiles: string[]) => Promise<void>;
|
|
14
|
+
makePrompt: (entryPoint: string, addableFiles: string[], platform: IRunTime) => Promise<void>;
|
|
15
|
+
typeCheckIsRunning: (src: string) => void;
|
|
16
|
+
typeCheckIsNowDone: (src: string, failures: number) => void;
|
|
17
|
+
lintIsRunning: (src: string) => void;
|
|
18
|
+
lintIsNowDone: (src: string, failures: number) => void;
|
|
19
|
+
bddTestIsRunning: (src: string) => void;
|
|
20
|
+
bddTestIsNowDone: (src: string, failures: number) => void;
|
|
21
|
+
writeBigBoard: () => void;
|
|
22
|
+
checkForShutdown: () => void;
|
|
23
|
+
}
|
|
@@ -6,15 +6,16 @@ export declare abstract class PM_Base {
|
|
|
6
6
|
browser: Browser;
|
|
7
7
|
configs: IBuiltConfig;
|
|
8
8
|
constructor(configs: IBuiltConfig);
|
|
9
|
+
abstract launchSideCar(n: number, testName: string, projectName: string): any;
|
|
9
10
|
customclose(): void;
|
|
10
11
|
waitForSelector(p: string, s: string): any;
|
|
11
12
|
closePage(p: any): any;
|
|
12
|
-
newPage(): Promise<
|
|
13
|
+
newPage(): Promise<string>;
|
|
13
14
|
goto(p: any, url: string): any;
|
|
14
|
-
$(selector: string, p: string): Promise<
|
|
15
|
+
$(selector: string, p: string): Promise<any>;
|
|
15
16
|
pages(): Promise<string[]>;
|
|
16
17
|
screencast(ssOpts: ScreenshotOptions, testName: string, page: Page): Promise<Uint8Array<ArrayBufferLike>>;
|
|
17
|
-
customScreenShot(ssOpts: ScreenshotOptions, testName: string,
|
|
18
|
+
customScreenShot(ssOpts: ScreenshotOptions, testName: string, pageUid: any): Promise<Uint8Array<ArrayBufferLike>>;
|
|
18
19
|
end(uid: number): Promise<boolean>;
|
|
19
20
|
existsSync(destFolder: string): boolean;
|
|
20
21
|
mkdirSync(fp: string): Promise<string | false | undefined>;
|
|
@@ -22,12 +23,12 @@ export declare abstract class PM_Base {
|
|
|
22
23
|
createWriteStream(filepath: string, testName: string): Promise<number>;
|
|
23
24
|
testArtiFactoryfileWriter(tLog: ITLog, callback: (Promise: any) => void): (fPath: any, value: string | Buffer | PassThrough) => void;
|
|
24
25
|
write(uid: number, contents: string): Promise<boolean>;
|
|
25
|
-
page(): string | undefined;
|
|
26
|
+
page(p: any): string | undefined;
|
|
26
27
|
click(selector: string, page: Page): Promise<void>;
|
|
27
28
|
focusOn(selector: string, p: string): Promise<void>;
|
|
28
29
|
typeInto(value: string, p: string): Promise<void>;
|
|
29
|
-
getValue(value: string, p: string): void;
|
|
30
30
|
getAttribute(selector: string, attribute: string, p: string): void;
|
|
31
|
+
getInnerHtml(selector: string, p: string): Promise<unknown>;
|
|
31
32
|
isDisabled(selector: string, p: string): void;
|
|
32
33
|
screencastStop(s: string): Promise<void>;
|
|
33
34
|
doInPage(p: string, cb: (p: Page) => unknown): Promise<void>;
|
|
@@ -7,7 +7,7 @@ export declare abstract class PM {
|
|
|
7
7
|
abstract start(): Promise<void>;
|
|
8
8
|
abstract stop(): Promise<void>;
|
|
9
9
|
abstract testArtiFactoryfileWriter(tLog: ITLog, callback: (Promise: any) => void): any;
|
|
10
|
-
abstract $(selector: string): any;
|
|
10
|
+
abstract $(selector: string, page: string): any;
|
|
11
11
|
abstract click(selector: string): any;
|
|
12
12
|
abstract closePage(p: any): any;
|
|
13
13
|
abstract createWriteStream(filepath: string, testName: string): Promise<string>;
|
|
@@ -16,8 +16,8 @@ export declare abstract class PM {
|
|
|
16
16
|
abstract end(uid: number): Promise<boolean>;
|
|
17
17
|
abstract existsSync(fp: string): Promise<boolean>;
|
|
18
18
|
abstract focusOn(selector: string): any;
|
|
19
|
-
abstract getAttribute(selector: string, attribute: string): any;
|
|
20
|
-
abstract
|
|
19
|
+
abstract getAttribute(selector: string, attribute: string, page: string): any;
|
|
20
|
+
abstract getInnerHtml(selector: string, page: string): any;
|
|
21
21
|
abstract goto(p: any, url: string): any;
|
|
22
22
|
abstract isDisabled(selector: string): Promise<boolean>;
|
|
23
23
|
abstract mkdirSync(a: string): any;
|
|
@@ -29,5 +29,7 @@ export declare abstract class PM {
|
|
|
29
29
|
abstract typeInto(selector: string, value: string): any;
|
|
30
30
|
abstract waitForSelector(p: any, sel: string): any;
|
|
31
31
|
abstract write(uid: number, contents: string): Promise<boolean>;
|
|
32
|
-
abstract writeFileSync(f: string, c: string
|
|
32
|
+
abstract writeFileSync(f: string, c: string): Promise<boolean>;
|
|
33
|
+
abstract launchSideCar(n: number): Promise<[number, ITTestResourceConfiguration]>;
|
|
34
|
+
abstract stopSideCar(n: number): Promise<any>;
|
|
33
35
|
}
|
|
@@ -1,47 +1,44 @@
|
|
|
1
|
+
import { ChildProcess } from "node:child_process";
|
|
1
2
|
import { Page } from "puppeteer-core/lib/esm/puppeteer";
|
|
2
3
|
import fs from "fs";
|
|
3
|
-
import { IRunnables } from "../lib/index.js";
|
|
4
|
-
import { ISummary } from "../utils";
|
|
4
|
+
import { IRunnables, ITTestResourceConfiguration } from "../lib/index.js";
|
|
5
5
|
import { IBuiltConfig, IRunTime, ITestTypes } from "../Types.js";
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
import { Sidecar } from "../lib/Sidecar.js";
|
|
7
|
+
import { PM_WithEslintAndTsc } from "./PM_WithEslintAndTsc.js";
|
|
8
|
+
export declare class PM_Main extends PM_WithEslintAndTsc {
|
|
9
9
|
ports: Record<number, boolean>;
|
|
10
10
|
queue: any[];
|
|
11
|
-
mode: "once" | "dev";
|
|
12
|
-
bigBoard: ISummary;
|
|
13
11
|
webMetafileWatcher: fs.FSWatcher;
|
|
14
12
|
nodeMetafileWatcher: fs.FSWatcher;
|
|
15
13
|
importMetafileWatcher: fs.FSWatcher;
|
|
14
|
+
pureSidecars: Record<number, Sidecar>;
|
|
15
|
+
nodeSidecars: Record<number, ChildProcess>;
|
|
16
|
+
webSidecars: Record<number, Page>;
|
|
16
17
|
constructor(configs: IBuiltConfig, name: string, mode: "once" | "dev");
|
|
18
|
+
stopSideCar(uid: number): Promise<any>;
|
|
19
|
+
launchSideCar(n: number, name: string): Promise<[number, ITTestResourceConfiguration]>;
|
|
17
20
|
mapping(): [string, (...a: any[]) => any][];
|
|
18
21
|
start(): Promise<void>;
|
|
22
|
+
launchExternalTest(externalTestName: string, externalTest: {
|
|
23
|
+
watch: string[];
|
|
24
|
+
exec: string;
|
|
25
|
+
}): Promise<void>;
|
|
19
26
|
stop(): Promise<void>;
|
|
20
27
|
getRunnables: (tests: ITestTypes[], testName: string, payload?: {
|
|
21
28
|
nodeEntryPoints: {};
|
|
29
|
+
nodeEntryPointSidecars: {};
|
|
22
30
|
webEntryPoints: {};
|
|
23
|
-
|
|
31
|
+
webEntryPointSidecars: {};
|
|
32
|
+
pureEntryPoints: {};
|
|
33
|
+
pureEntryPointSidecars: {};
|
|
24
34
|
}) => IRunnables;
|
|
25
35
|
metafileOutputs(platform: IRunTime): Promise<void>;
|
|
26
|
-
tscCheck: ({ entrypoint, addableFiles, platform, }: {
|
|
27
|
-
platform: IRunTime;
|
|
28
|
-
entrypoint: string;
|
|
29
|
-
addableFiles: string[];
|
|
30
|
-
}) => Promise<void>;
|
|
31
|
-
eslintCheck: (entrypoint: string, platform: IRunTime, addableFiles: string[]) => Promise<void>;
|
|
32
|
-
makePrompt: (entryPoint: string, addableFiles: string[], platform: IRunTime) => Promise<void>;
|
|
33
|
-
checkForShutdown: () => void;
|
|
34
|
-
typeCheckIsRunning: (src: string) => void;
|
|
35
|
-
typeCheckIsNowDone: (src: string, failures: number) => void;
|
|
36
|
-
lintIsRunning: (src: string) => void;
|
|
37
|
-
lintIsNowDone: (src: string, failures: number) => void;
|
|
38
|
-
bddTestIsRunning: (src: string) => void;
|
|
39
|
-
bddTestIsNowDone: (src: string, failures: number) => void;
|
|
40
36
|
launchPure: (src: string, dest: string) => Promise<void>;
|
|
41
37
|
launchNode: (src: string, dest: string) => Promise<void>;
|
|
42
|
-
launchWebSideCar: (
|
|
43
|
-
launchNodeSideCar: (
|
|
38
|
+
launchWebSideCar: (testConfig: ITestTypes) => Promise<[number, ITTestResourceConfiguration]>;
|
|
39
|
+
launchNodeSideCar: (sidecar: ITestTypes) => Promise<[number, ITTestResourceConfiguration]>;
|
|
40
|
+
stopPureSideCar: (uid: number) => Promise<void>;
|
|
41
|
+
launchPureSideCar: (sidecar: ITestTypes) => Promise<[number, ITTestResourceConfiguration]>;
|
|
44
42
|
launchWeb: (src: string, dest: string) => Promise<void>;
|
|
45
|
-
|
|
46
|
-
writeBigBoard: () => void;
|
|
43
|
+
receiveFeaturesV2: (reportDest: string, srcTest: string, platform: IRunTime) => void;
|
|
47
44
|
}
|
|
@@ -6,26 +6,28 @@ import { PM } from ".";
|
|
|
6
6
|
export declare class PM_Node extends PM {
|
|
7
7
|
testResourceConfiguration: ITTestResourceConfiguration;
|
|
8
8
|
client: net.Socket;
|
|
9
|
-
constructor(t: ITTestResourceConfiguration);
|
|
9
|
+
constructor(t: ITTestResourceConfiguration, ipcFile: string);
|
|
10
10
|
start(): Promise<void>;
|
|
11
11
|
stop(): Promise<void>;
|
|
12
12
|
send<I>(command: string, ...argz: any[]): Promise<I>;
|
|
13
|
+
launchSideCar(n: number): Promise<[number, ITTestResourceConfiguration]>;
|
|
14
|
+
stopSideCar(n: number): Promise<any>;
|
|
13
15
|
pages(): Promise<string[]>;
|
|
14
16
|
waitForSelector(p: string, s: string): any;
|
|
15
17
|
closePage(p: any): Promise<unknown>;
|
|
16
18
|
goto(page: string, url: string): Promise<unknown>;
|
|
17
19
|
newPage(): Promise<string>;
|
|
18
|
-
$(selector: string): Promise<unknown>;
|
|
20
|
+
$(selector: string, page: string): Promise<unknown>;
|
|
19
21
|
isDisabled(selector: string): Promise<boolean>;
|
|
20
|
-
getAttribute(selector: string, attribute: string): Promise<unknown>;
|
|
21
|
-
|
|
22
|
+
getAttribute(selector: string, attribute: string, p: string): Promise<unknown>;
|
|
23
|
+
getInnerHtml(selector: string, p: string): Promise<unknown>;
|
|
22
24
|
focusOn(selector: string): Promise<unknown>;
|
|
23
25
|
typeInto(selector: string): Promise<unknown>;
|
|
24
26
|
page(): Promise<string | undefined>;
|
|
25
27
|
click(selector: string): Promise<unknown>;
|
|
26
28
|
screencast(opts: ScreencastOptions, page: string): Promise<unknown>;
|
|
27
29
|
screencastStop(p: string): Promise<unknown>;
|
|
28
|
-
customScreenShot(
|
|
30
|
+
customScreenShot(x: ScreencastOptions, y?: string): Promise<unknown>;
|
|
29
31
|
existsSync(destFolder: string): Promise<boolean>;
|
|
30
32
|
mkdirSync(): Promise<unknown>;
|
|
31
33
|
write(uid: number, contents: string): Promise<boolean>;
|
|
@@ -33,6 +35,6 @@ export declare class PM_Node extends PM {
|
|
|
33
35
|
createWriteStream(filepath: string): Promise<string>;
|
|
34
36
|
end(uid: any): Promise<boolean>;
|
|
35
37
|
customclose(): Promise<unknown>;
|
|
36
|
-
testArtiFactoryfileWriter(tLog: ITLog, callback: (
|
|
38
|
+
testArtiFactoryfileWriter(tLog: ITLog, callback: (p: Promise<void>) => void): (fPath: string, value: string | Buffer | PassThrough) => void;
|
|
37
39
|
startPuppeteer(options?: any): any;
|
|
38
40
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import net from "net";
|
|
2
|
+
import { ITTestResourceConfiguration } from "../lib";
|
|
3
|
+
import { PM_sidecar } from "./sidecar";
|
|
4
|
+
export declare class PM_Node_Sidecar extends PM_sidecar {
|
|
5
|
+
testResourceConfiguration: ITTestResourceConfiguration;
|
|
6
|
+
client: net.Socket;
|
|
7
|
+
mockListener?: jest.Mock;
|
|
8
|
+
constructor(t: ITTestResourceConfiguration);
|
|
9
|
+
start(stopper: () => any): Promise<void>;
|
|
10
|
+
stop(): Promise<void>;
|
|
11
|
+
testArtiFactoryfileWriter(tLog: ITLog, callback: (p: Promise<void>) => void): (fPath: string, value: string | Buffer | PassThrough) => void;
|
|
12
|
+
send<I>(command: string, ...argz: any[]): Promise<I>;
|
|
13
|
+
}
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import { ScreencastOptions } from "puppeteer-core";
|
|
2
2
|
import { CdpPage } from "puppeteer-core/lib/esm/puppeteer";
|
|
3
|
-
import { PassThrough } from "stream";
|
|
4
3
|
import { ITLog, ITTestResourceConfiguration } from "../lib";
|
|
5
4
|
import { PM } from ".";
|
|
6
5
|
type PuppetMasterServer = Record<string, Promise<any>>;
|
|
7
6
|
export declare class PM_Pure extends PM {
|
|
7
|
+
getInnerHtml(selector: string, page: string): Promise<string>;
|
|
8
|
+
stopSideCar(uid: number): Promise<boolean>;
|
|
8
9
|
server: PuppetMasterServer;
|
|
9
10
|
testResourceConfiguration: ITTestResourceConfiguration;
|
|
10
11
|
constructor(t: ITTestResourceConfiguration);
|
|
11
12
|
start(): Promise<void>;
|
|
12
13
|
stop(): Promise<void>;
|
|
14
|
+
launchSideCar(n: number): Promise<[number, ITTestResourceConfiguration]>;
|
|
13
15
|
pages(): any;
|
|
14
16
|
waitForSelector(p: string, s: string): any;
|
|
15
17
|
closePage(p: any): string;
|
|
@@ -33,7 +35,6 @@ export declare class PM_Pure extends PM {
|
|
|
33
35
|
createWriteStream(filepath: string): any;
|
|
34
36
|
end(uid: number): any;
|
|
35
37
|
customclose(): void;
|
|
36
|
-
testArtiFactoryfileWriter(tLog: ITLog, callback: (Promise: any) => void):
|
|
37
|
-
startPuppeteer(options?: any): any;
|
|
38
|
+
testArtiFactoryfileWriter(tLog: ITLog, callback: (Promise: any) => void): void;
|
|
38
39
|
}
|
|
39
40
|
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import net from "net";
|
|
2
|
+
import { ITTestResourceConfiguration } from "../lib";
|
|
3
|
+
import { PM_sidecar } from "./sidecar";
|
|
4
|
+
export declare class PM_Pure_Sidecar extends PM_sidecar {
|
|
5
|
+
testResourceConfiguration: ITTestResourceConfiguration;
|
|
6
|
+
client: net.Socket;
|
|
7
|
+
constructor(t: ITTestResourceConfiguration);
|
|
8
|
+
start(): Promise<void>;
|
|
9
|
+
stop(): Promise<void>;
|
|
10
|
+
send<I>(command: string, ...argz: any[]): Promise<I>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ITTestResourceConfiguration } from "../lib";
|
|
2
|
+
import { ITLog } from "../lib";
|
|
3
|
+
export declare abstract class PM_sidecar {
|
|
4
|
+
testResourceConfiguration: ITTestResourceConfiguration;
|
|
5
|
+
abstract start(stopper: () => any): Promise<void>;
|
|
6
|
+
abstract stop(): Promise<void>;
|
|
7
|
+
testArtiFactoryfileWriter(tLog: ITLog, callback: (p: Promise<void>) => void): (fPath: string, value: unknown) => void;
|
|
8
|
+
}
|
|
@@ -1,33 +1,43 @@
|
|
|
1
1
|
import { PassThrough } from "stream";
|
|
2
2
|
import { ScreencastOptions, ScreenshotOptions } from "puppeteer-core";
|
|
3
|
-
|
|
3
|
+
declare module "puppeteer-core" {
|
|
4
|
+
interface Frame {
|
|
5
|
+
_id: string;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
import { Page } from "puppeteer-core";
|
|
4
9
|
import { ITLog, ITTestResourceConfiguration } from "../lib";
|
|
5
|
-
|
|
10
|
+
import { PM } from ".";
|
|
11
|
+
export declare class PM_Web extends PM {
|
|
6
12
|
testResourceConfiguration: ITTestResourceConfiguration;
|
|
7
13
|
constructor(t: ITTestResourceConfiguration);
|
|
8
14
|
start(): Promise<void>;
|
|
9
15
|
stop(): Promise<void>;
|
|
16
|
+
getInnerHtml(selector: string, page: string): void;
|
|
17
|
+
pages(): Promise<string[]>;
|
|
18
|
+
stopSideCar(n: number): Promise<any>;
|
|
19
|
+
launchSideCar(n: number): Promise<[number, ITTestResourceConfiguration]>;
|
|
10
20
|
waitForSelector(p: string, s: string): any;
|
|
11
|
-
screencast(
|
|
21
|
+
screencast(o: ScreencastOptions, p: string | Page): Promise<string>;
|
|
12
22
|
screencastStop(recorder: string): any;
|
|
13
23
|
closePage(p: any): string;
|
|
14
24
|
goto(p: any, url: string): any;
|
|
15
|
-
newPage():
|
|
25
|
+
newPage(): any;
|
|
16
26
|
$(selector: string): boolean;
|
|
17
27
|
isDisabled(selector: string): Promise<boolean>;
|
|
18
28
|
getAttribute(selector: string, attribute: string): any;
|
|
19
29
|
getValue(selector: number): any;
|
|
20
30
|
focusOn(selector: string): any;
|
|
21
31
|
typeInto(value: string): any;
|
|
22
|
-
page(): string | undefined
|
|
32
|
+
page(x?: any): Promise<string | undefined>;
|
|
23
33
|
click(selector: string): any;
|
|
24
|
-
customScreenShot(
|
|
25
|
-
existsSync(destFolder: string): boolean
|
|
34
|
+
customScreenShot(x: ScreenshotOptions, y: any): any;
|
|
35
|
+
existsSync(destFolder: string): Promise<boolean>;
|
|
26
36
|
mkdirSync(x: any): any;
|
|
27
37
|
write(uid: number, contents: string): Promise<boolean>;
|
|
28
38
|
writeFileSync(filepath: string, contents: string): any;
|
|
29
39
|
createWriteStream(filepath: string): any;
|
|
30
|
-
end(uid: number): boolean
|
|
40
|
+
end(uid: number): Promise<boolean>;
|
|
31
41
|
customclose(): void;
|
|
32
42
|
testArtiFactoryfileWriter(tLog: ITLog, callback: (Promise: any) => void): (fPath: any, value: string | Buffer | PassThrough) => void;
|
|
33
43
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import net from "net";
|
|
2
|
+
import { ITTestResourceConfiguration } from "../lib";
|
|
3
|
+
import { PM_sidecar } from "./sidecar";
|
|
4
|
+
export declare class PM_Web_Sidecar extends PM_sidecar {
|
|
5
|
+
testResourceConfiguration: ITTestResourceConfiguration;
|
|
6
|
+
client: net.Socket;
|
|
7
|
+
constructor(t: ITTestResourceConfiguration);
|
|
8
|
+
start(): Promise<void>;
|
|
9
|
+
stop(): Promise<void>;
|
|
10
|
+
send<I>(command: string, ...argz: any[]): Promise<I>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ITTestResourceConfiguration } from "./lib";
|
|
2
|
+
import { Sidecar } from "./lib/Sidecar";
|
|
3
|
+
import { PM_Pure_Sidecar } from "./PM/pureSidecar";
|
|
4
|
+
export declare class PureSideCar extends Sidecar {
|
|
5
|
+
pm: PM_Pure_Sidecar;
|
|
6
|
+
start(t: ITTestResourceConfiguration): void;
|
|
7
|
+
stop(): void;
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,69 +1,88 @@
|
|
|
1
1
|
import { Plugin } from "esbuild";
|
|
2
2
|
import { ITTestResourceConfiguration } from "./lib/index.js";
|
|
3
|
-
import { IGivens, BaseCheck, BaseSuite, BaseWhen, BaseThen, BaseGiven } from "./lib/abstractBase.js";
|
|
4
|
-
import { IPM, ITestCheckCallback } from "./lib/types.js";
|
|
5
3
|
import { PM } from "./PM/index.js";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
butThen: (store: I["istore"], thenCB: I["then"], testResource: ITTestResourceConfiguration, pm: IPM) => Promise<I["iselection"]>;
|
|
10
|
-
afterAll: (store: I["istore"], pm: IPM) => any;
|
|
11
|
-
afterEach: (store: I["istore"], key: string, pm: IPM) => Promise<unknown>;
|
|
12
|
-
beforeAll: (input: I["iinput"], testResource: ITTestResourceConfiguration, pm: IPM) => Promise<I["isubject"]>;
|
|
13
|
-
beforeEach: (subject: I["isubject"], initializer: (c?: any) => I["given"], testResource: ITTestResourceConfiguration, initialValues: any, pm: IPM) => Promise<I["istore"]>;
|
|
14
|
-
};
|
|
15
|
-
export type IWebTestInterface<I extends IT> = ITestInterface<I>;
|
|
16
|
-
export type INodeTestInterface<I extends IT> = ITestInterface<I>;
|
|
17
|
-
export type IPartialInterface<I extends IT> = Partial<ITestInterface<I>>;
|
|
18
|
-
export type IPartialNodeInterface<I extends IT> = Partial<INodeTestInterface<I>>;
|
|
19
|
-
export type IPartialWebInterface<I extends IT> = Partial<IWebTestInterface<I>>;
|
|
20
|
-
export type IT = Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>;
|
|
21
|
-
export type OT = Ibdd_out<Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>;
|
|
22
|
-
export type ITestSpecification<I extends IT, O extends OT> = (Suite: {
|
|
4
|
+
import { BaseWhen, BaseThen, BaseGiven, BaseCheck, BaseSuite, IGivens } from "./lib/abstractBase.js";
|
|
5
|
+
import { Ibdd_in, Ibdd_out } from "./CoreTypes.js";
|
|
6
|
+
export type SuiteSpecification<I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>, O extends Ibdd_out<TestSuiteShape, TestGivenShape, TestWhenShape, TestThenShape, TestCheckShape>> = {
|
|
23
7
|
[K in keyof O["suites"]]: (name: string, givens: IGivens<I>, checks: BaseCheck<I>[]) => BaseSuite<I, O>;
|
|
24
|
-
}
|
|
8
|
+
};
|
|
9
|
+
export type TestSummary = {
|
|
10
|
+
testName: string;
|
|
11
|
+
errors?: {
|
|
12
|
+
runtime?: number;
|
|
13
|
+
type?: number;
|
|
14
|
+
static?: number;
|
|
15
|
+
};
|
|
16
|
+
prompt?: string;
|
|
17
|
+
failedFeatures: string[];
|
|
18
|
+
};
|
|
19
|
+
export type TestLifecycle<Subject, State, Selection> = {
|
|
20
|
+
beforeAll?: (input: any) => Promise<Subject>;
|
|
21
|
+
beforeEach?: (subject: Subject) => Promise<State>;
|
|
22
|
+
executeStep?: (state: State) => Promise<State>;
|
|
23
|
+
verifyStep?: (state: State) => Promise<Selection>;
|
|
24
|
+
afterEach?: (state: State) => Promise<void>;
|
|
25
|
+
afterAll?: (state: State) => Promise<void>;
|
|
26
|
+
assert?: (result: Selection) => void;
|
|
27
|
+
};
|
|
28
|
+
export type TestDefinition<Subject, State, Selection> = {
|
|
29
|
+
subject: Subject;
|
|
30
|
+
given?: (input: any) => State;
|
|
31
|
+
when?: (state: State) => State | Promise<State>;
|
|
32
|
+
then?: (state: State) => Selection | Promise<Selection>;
|
|
33
|
+
resources?: ITTestResourceConfiguration;
|
|
34
|
+
pm?: typeof PM;
|
|
35
|
+
};
|
|
36
|
+
export type TestSuite = {
|
|
37
|
+
name: string;
|
|
38
|
+
tests: TestDefinition<any, any, any>[];
|
|
39
|
+
features?: string[];
|
|
40
|
+
};
|
|
41
|
+
export type RuntimeConfig = {
|
|
42
|
+
type: "node" | "web" | "pure" | "spawn";
|
|
43
|
+
ports?: number[];
|
|
44
|
+
plugins?: Plugin[];
|
|
45
|
+
};
|
|
46
|
+
export type ProjectConfig = {
|
|
47
|
+
name: string;
|
|
48
|
+
sourceDir: string;
|
|
49
|
+
testSuites: TestSuite[];
|
|
50
|
+
runtime: RuntimeConfig;
|
|
51
|
+
minify?: boolean;
|
|
52
|
+
debug?: boolean;
|
|
53
|
+
};
|
|
54
|
+
export type GivenSpecification<I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>, O extends Ibdd_out<TestSuiteShape, TestGivenShape, TestWhenShape, TestThenShape, TestCheckShape>> = {
|
|
25
55
|
[K in keyof O["givens"]]: (features: string[], whens: BaseWhen<I>[], thens: BaseThen<I>[], ...xtrasB: O["givens"][K]) => BaseGiven<I>;
|
|
26
|
-
}
|
|
56
|
+
};
|
|
57
|
+
export type WhenSpecification<I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>, O extends Ibdd_out<TestSuiteShape, TestGivenShape, TestWhenShape, TestThenShape, TestCheckShape>> = {
|
|
27
58
|
[K in keyof O["whens"]]: (...xtrasC: O["whens"][K]) => BaseWhen<I>;
|
|
28
|
-
}
|
|
59
|
+
};
|
|
60
|
+
export type ThenSpecification<I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>, O extends Ibdd_out<TestSuiteShape, TestGivenShape, TestWhenShape, TestThenShape, TestCheckShape>> = {
|
|
29
61
|
[K in keyof O["thens"]]: (...xtrasD: O["thens"][K]) => BaseThen<I>;
|
|
30
|
-
}, Check: ITestCheckCallback<I, O>) => any[];
|
|
31
|
-
export type ITestImplementation<I extends IT, O extends OT, modifier = {}> = Modify<{
|
|
32
|
-
suites: {
|
|
33
|
-
[K in keyof O["suites"]]: string;
|
|
34
|
-
};
|
|
35
|
-
givens: {
|
|
36
|
-
[K in keyof O["givens"]]: (...Ig: O["givens"][K]) => I["given"];
|
|
37
|
-
};
|
|
38
|
-
whens: {
|
|
39
|
-
[K in keyof O["whens"]]: (...Iw: O["whens"][K]) => (zel: I["iselection"], utils: PM) => Promise<I["when"]>;
|
|
40
|
-
};
|
|
41
|
-
thens: {
|
|
42
|
-
[K in keyof O["thens"]]: (...It: O["thens"][K]) => (ssel: I["iselection"], utils: PM) => I["then"];
|
|
43
|
-
};
|
|
44
|
-
checks: {
|
|
45
|
-
[K in keyof O["checks"]]: (...Ic: O["checks"][K]) => I["given"];
|
|
46
|
-
};
|
|
47
|
-
}, modifier>;
|
|
48
|
-
export type Modify<T, R> = Omit<T, keyof R> & R;
|
|
49
|
-
export type Ibdd_out<ISuites extends Record<string, any> = Record<string, any>, IGivens extends Record<string, any> = Record<string, any>, IWhens extends Record<string, any> = Record<string, any>, IThens extends Record<string, any> = Record<string, any>, IChecks extends Record<string, any> = Record<string, any>> = {
|
|
50
|
-
suites: ISuites;
|
|
51
|
-
givens: IGivens;
|
|
52
|
-
whens: IWhens;
|
|
53
|
-
thens: IThens;
|
|
54
|
-
checks: IChecks;
|
|
55
|
-
};
|
|
56
|
-
export type Ibdd_in<IInput, ISubject, IStore, ISelection, IGiven, IWhen, IThen> = {
|
|
57
|
-
iinput: IInput;
|
|
58
|
-
isubject: ISubject;
|
|
59
|
-
istore: IStore;
|
|
60
|
-
iselection: ISelection;
|
|
61
|
-
given: IGiven;
|
|
62
|
-
when: IWhen;
|
|
63
|
-
then: IThen;
|
|
64
62
|
};
|
|
63
|
+
export type TestSuiteImplementation<O extends Ibdd_out<TestSuiteShape, TestGivenShape, TestWhenShape, TestThenShape, TestCheckShape>> = {
|
|
64
|
+
[K in keyof O["suites"]]: string;
|
|
65
|
+
};
|
|
66
|
+
export type TestGivenImplementation<I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>, O extends Ibdd_out<TestSuiteShape, TestGivenShape, TestWhenShape, TestThenShape, TestCheckShape>> = {
|
|
67
|
+
[K in keyof O["givens"]]: (...Ig: O["givens"][K]) => I["given"];
|
|
68
|
+
};
|
|
69
|
+
export type TestWhenImplementation<I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>, O extends Ibdd_out<TestSuiteShape, TestGivenShape, TestWhenShape, TestThenShape, TestCheckShape>> = {
|
|
70
|
+
[K in keyof O["whens"]]: (...Iw: O["whens"][K]) => (zel: I["iselection"], tr: ITTestResourceConfiguration, utils: PM) => Promise<I["when"]>;
|
|
71
|
+
};
|
|
72
|
+
export type TestThenImplementation<I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>, O extends Ibdd_out<TestSuiteShape, TestGivenShape, TestWhenShape, TestThenShape, TestCheckShape>> = {
|
|
73
|
+
[K in keyof O["thens"]]: (...It: O["thens"][K]) => (ssel: I["iselection"], utils: PM) => I["then"];
|
|
74
|
+
};
|
|
75
|
+
export type TestCheckImplementation<I extends Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>, O extends Ibdd_out<TestSuiteShape, TestGivenShape, TestWhenShape, TestThenShape, TestCheckShape>> = {
|
|
76
|
+
[K in keyof O["checks"]]: (...Ic: O["checks"][K]) => I["given"];
|
|
77
|
+
};
|
|
78
|
+
export type Modify<T, R> = Omit<T, keyof R> & R;
|
|
79
|
+
export type TestSuiteShape = Record<string, any>;
|
|
80
|
+
export type TestGivenShape = Record<string, any>;
|
|
81
|
+
export type TestWhenShape = Record<string, any>;
|
|
82
|
+
export type TestThenShape = Record<string, any>;
|
|
83
|
+
export type TestCheckShape = Record<string, any>;
|
|
65
84
|
export type IPluginFactory = (register?: (entrypoint: string, sources: string[]) => any, entrypoints?: string[]) => Plugin;
|
|
66
|
-
export type IRunTime = `node` | `web` | "pure"
|
|
85
|
+
export type IRunTime = `node` | `web` | "pure" | `spawn`;
|
|
67
86
|
export type ITestTypes = [string, IRunTime, {
|
|
68
87
|
ports: number;
|
|
69
88
|
}, ITestTypes[]];
|
|
@@ -71,6 +90,10 @@ export type ITestconfig = {
|
|
|
71
90
|
clearScreen: boolean;
|
|
72
91
|
debugger: boolean;
|
|
73
92
|
externals: string[];
|
|
93
|
+
externalTests: Record<string, {
|
|
94
|
+
watch: string[];
|
|
95
|
+
exec: string;
|
|
96
|
+
}>;
|
|
74
97
|
featureIngestor: (s: string) => Promise<string>;
|
|
75
98
|
importPlugins: IPluginFactory[];
|
|
76
99
|
minify: boolean;
|
|
@@ -79,7 +102,6 @@ export type ITestconfig = {
|
|
|
79
102
|
src: string;
|
|
80
103
|
tests: ITestTypes[];
|
|
81
104
|
webPlugins: IPluginFactory[];
|
|
82
|
-
reportDomain: string;
|
|
83
105
|
};
|
|
84
106
|
export type IBuiltConfig = {
|
|
85
107
|
buildDir: string;
|
package/dist/types/src/Web.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ITestImplementation, ITestInterface, ITestSpecification } from "./Types";
|
|
2
2
|
import Testeranto from "./lib/core.js";
|
|
3
3
|
import { ITTestResourceRequest } from "./lib/index.js";
|
|
4
4
|
export declare class WebTesteranto<I extends IT, O extends OT, M> extends Testeranto<I, O, M> {
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ITTestResourceConfiguration } from "./lib";
|
|
2
|
+
import { Sidecar } from "./lib/Sidecar";
|
|
3
|
+
import { PM_Web_Sidecar } from "./PM/webSidecar";
|
|
4
|
+
export declare class WebSideCar extends Sidecar {
|
|
5
|
+
start(t: ITTestResourceConfiguration): void;
|
|
6
|
+
stop(): void;
|
|
7
|
+
pm: PM_Web_Sidecar;
|
|
8
|
+
}
|