testeranto 0.128.0 → 0.134.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.aider.chat.history.md +137197 -0
- package/.aider.input.history +334 -0
- package/.aider.tags.cache.v3/18/8b/7dfca822129dad10b5cacadf7728.val +0 -0
- package/.aider.tags.cache.v3/{ec/c0/161c249c35be853cc40cf11f9267.val → 62/f5/8af72140d93c58db2f6aa5bf3f1f.val} +0 -0
- package/.aider.tags.cache.v3/8d/fa/12860238755bcfab9af8a93c52ab.val +0 -0
- package/.aider.tags.cache.v3/{b7/e6/5be87b62aeaf2bc244ff41c1b61a.val → a7/97/6d37fce350ad2d588f36729db0cd.val} +0 -0
- package/.aider.tags.cache.v3/{e3/e6/3501625caf5d5eb171f0d248462e.val → ad/3c/10f2ab1397f6d544e613d2a6acaf.val} +0 -0
- package/.aider.tags.cache.v3/cache.db +0 -0
- package/.aider.tags.cache.v3/cache.db-shm +0 -0
- package/.aider.tags.cache.v3/cache.db-wal +0 -0
- package/.aider.tags.cache.v3/dd/5b/0ade824b0841c7c11e9352c5d2ca.val +0 -0
- package/README.md +560 -19
- package/bundle.js +8 -75
- package/dist/common/src/Init.js +6 -1
- package/dist/common/src/Node.js +6 -4
- package/dist/common/src/NodeSidecar.js +15 -0
- package/dist/common/src/PM/PM_WithEslintAndTsc.js +187 -0
- package/dist/common/src/PM/__tests__/nodeSidecar.testeranto.js +109 -0
- package/dist/common/src/PM/__tests__/pureSidecar.testeranto.js +94 -0
- package/dist/common/src/PM/__tests__/webSidecar.testeranto.js +94 -0
- package/dist/common/src/PM/base.js +33 -16
- package/dist/common/src/PM/main.js +488 -422
- package/dist/common/src/PM/node.js +44 -19
- package/dist/common/src/PM/nodeSidecar.js +65 -0
- package/dist/common/src/PM/pure.js +55 -47
- package/dist/common/src/PM/pureSidecar.js +48 -0
- package/dist/common/src/PM/sidecar.js +11 -0
- package/dist/common/src/PM/web.js +24 -6
- package/dist/common/src/PM/webSidecar.js +47 -0
- package/dist/common/src/PureSidecar.js +13 -0
- package/dist/common/src/SP__Polygon.test.js +10 -0
- package/dist/common/src/WebSidecar.js +14 -0
- package/dist/common/src/build.js +63 -10
- package/dist/common/src/defaultConfig.js +1 -0
- package/dist/common/src/esbuildConfigs/consoleDetectorPlugin.js +27 -0
- package/dist/common/src/esbuildConfigs/pure.js +15 -1
- package/dist/common/src/esbuildConfigs/web.js +10 -1
- package/dist/common/src/{SubPackages/react-dom/jsx/index.js → lib/Sidecar.js} +4 -0
- package/dist/common/src/lib/abstractBase.js +7 -5
- package/dist/common/src/lib/basebuilder.js +1 -3
- package/dist/common/src/lib/classBuilder.js +4 -17
- package/dist/common/src/lib/core.js +11 -6
- package/dist/common/src/lib/index.js +13 -4
- package/dist/common/src/lib/pmProxy.js +1 -1
- package/dist/common/src/mothership/index.js +16 -0
- package/dist/common/src/mothership/test.js +65 -0
- package/dist/common/src/utils/queue.js +36 -0
- package/dist/common/src/utils.js +34 -5
- package/dist/common/testeranto.config.js +77 -39
- package/dist/common/tsconfig.common.tsbuildinfo +1 -1
- package/dist/module/src/Init.js +6 -1
- package/dist/module/src/Node.js +6 -4
- package/dist/module/src/NodeSidecar.js +11 -0
- package/dist/module/src/PM/PM_WithEslintAndTsc.js +180 -0
- package/dist/module/src/PM/__tests__/nodeSidecar.testeranto.js +104 -0
- package/dist/module/src/PM/__tests__/pureSidecar.testeranto.js +89 -0
- package/dist/module/src/PM/__tests__/webSidecar.testeranto.js +89 -0
- package/dist/module/src/PM/base.js +33 -16
- package/dist/module/src/PM/main.js +489 -423
- package/dist/module/src/PM/node.js +44 -19
- package/dist/module/src/PM/nodeSidecar.js +58 -0
- package/dist/module/src/PM/pure.js +55 -44
- package/dist/module/src/PM/pureSidecar.js +41 -0
- package/dist/module/src/PM/sidecar.js +7 -0
- package/dist/module/src/PM/web.js +24 -6
- package/dist/module/src/PM/webSidecar.js +40 -0
- package/dist/module/src/Project.js +154 -75
- package/dist/module/src/PureSidecar.js +9 -0
- package/dist/module/src/ReportClient.js +132 -97
- package/dist/module/src/SP__Polygon.test.js +8 -0
- package/dist/module/src/TestReport.js +32 -14
- package/dist/module/src/WebSidecar.js +10 -0
- package/dist/module/src/build.js +63 -10
- package/dist/module/src/defaultConfig.js +1 -0
- package/dist/module/src/esbuildConfigs/consoleDetectorPlugin.js +24 -0
- package/dist/module/src/esbuildConfigs/pure.js +15 -1
- package/dist/module/src/esbuildConfigs/web.js +10 -1
- package/dist/module/src/lib/Sidecar.js +2 -0
- package/dist/module/src/lib/abstractBase.js +7 -5
- package/dist/module/src/lib/basebuilder.js +1 -3
- package/dist/module/src/lib/classBuilder.js +4 -17
- package/dist/module/src/lib/core.js +11 -6
- package/dist/module/src/lib/index.js +12 -4
- package/dist/module/src/lib/pmProxy.js +1 -1
- package/dist/module/src/mothership/index.js +11 -0
- package/dist/module/src/mothership/test.js +60 -0
- package/dist/module/src/utils/queue.js +32 -0
- package/dist/module/src/utils.js +34 -5
- package/dist/module/testeranto.config.js +77 -36
- package/dist/module/tsconfig.module.tsbuildinfo +1 -1
- package/dist/prebuild/Project.js +3288 -385
- package/dist/prebuild/ReportClient.js +0 -24638
- package/dist/prebuild/TestReport.js +14 -8
- package/dist/prebuild/build.mjs +159 -15
- package/dist/prebuild/init-docs.mjs +2 -5
- package/dist/prebuild/mothership/index.mjs +17 -0
- package/dist/prebuild/run.mjs +696 -404
- package/dist/types/src/NodeSidecar.d.ts +6 -0
- package/dist/types/src/PM/PM_WithEslintAndTsc.d.ts +23 -0
- package/dist/types/src/PM/__tests__/nodeSidecar.testeranto.d.ts +20 -0
- package/dist/types/src/PM/__tests__/pureSidecar.testeranto.d.ts +20 -0
- package/dist/types/src/PM/__tests__/webSidecar.testeranto.d.ts +20 -0
- package/dist/types/src/PM/base.d.ts +6 -5
- package/dist/types/src/PM/index.d.ts +5 -3
- package/dist/types/src/PM/main.d.ts +23 -26
- package/dist/types/src/PM/node.d.ts +8 -6
- package/dist/types/src/PM/nodeSidecar.d.ts +13 -0
- package/dist/types/src/PM/pure.d.ts +4 -3
- package/dist/types/src/PM/pureSidecar.d.ts +11 -0
- package/dist/types/src/PM/sidecar.d.ts +8 -0
- package/dist/types/src/PM/web.d.ts +18 -8
- package/dist/types/src/PM/webSidecar.d.ts +11 -0
- package/dist/types/src/PureSidecar.d.ts +8 -0
- package/dist/types/src/Types.d.ts +109 -43
- package/dist/types/src/WebSidecar.d.ts +8 -0
- package/dist/types/src/esbuildConfigs/consoleDetectorPlugin.d.ts +2 -0
- package/dist/types/src/lib/Sidecar.d.ts +5 -0
- package/dist/types/src/lib/abstractBase.d.ts +6 -6
- package/dist/types/src/lib/classBuilder.d.ts +7 -1
- package/dist/types/src/lib/core.d.ts +7 -1
- package/dist/types/src/lib/index.d.ts +10 -4
- package/dist/types/src/lib/types.d.ts +12 -2
- package/dist/types/src/mothership/index.d.ts +2 -0
- package/dist/types/src/mothership/test.d.ts +21 -0
- package/dist/types/src/utils/queue.d.ts +11 -0
- package/dist/types/src/utils.d.ts +4 -7
- package/dist/types/tsconfig.types.tsbuildinfo +1 -1
- package/package.json +19 -105
- package/src/Init.ts +6 -5
- package/src/Node.ts +7 -4
- package/src/NodeSidecar.ts +22 -0
- package/src/PM/PM_WithEslintAndTsc.ts +284 -0
- package/src/PM/__tests__/nodeSidecar.testeranto.ts +173 -0
- package/src/PM/__tests__/pureSidecar.testeranto.ts +157 -0
- package/src/PM/__tests__/webSidecar.testeranto.ts +157 -0
- package/src/PM/base.ts +38 -17
- package/src/PM/index.ts +9 -3
- package/src/PM/main.ts +617 -578
- package/src/PM/node.ts +67 -23
- package/src/PM/nodeSidecar.ts +73 -0
- package/src/PM/pure.ts +68 -58
- package/src/PM/pureSidecar.ts +56 -0
- package/src/PM/sidecar.ts +48 -0
- package/src/PM/web.ts +42 -11
- package/src/PM/webSidecar.ts +55 -0
- package/src/Project.tsx +312 -109
- package/src/Pure.ts +0 -2
- package/src/PureSidecar.ts +14 -0
- package/src/ReportClient.tsx +164 -170
- package/src/SP__Polygon.test.ts +13 -0
- package/src/TestReport.tsx +77 -6
- package/src/Types.ts +227 -122
- package/src/WebSidecar.ts +14 -0
- package/src/build.ts +101 -14
- package/src/defaultConfig.ts +1 -0
- package/src/esbuildConfigs/README.md +46 -0
- package/src/esbuildConfigs/consoleDetectorPlugin.ts +29 -0
- package/src/esbuildConfigs/pure.ts +22 -1
- package/src/esbuildConfigs/web.ts +13 -0
- package/src/lib/Sidecar.ts +6 -0
- package/src/lib/TEST_ADAPTER_RENAME.md +48 -0
- package/src/lib/abstractBase.ts +12 -9
- package/src/lib/basebuilder.ts +5 -4
- package/src/lib/classBuilder.ts +15 -18
- package/src/lib/core.ts +24 -11
- package/src/lib/index.ts +38 -18
- package/src/lib/pmProxy.ts +3 -1
- package/src/lib/types.ts +15 -2
- package/src/mothership/index.ts +15 -0
- package/src/mothership/test.ts +137 -0
- package/src/run.ts +0 -1
- package/src/utils/queue.ts +41 -0
- package/src/utils.ts +41 -15
- package/testeranto/bundles/node/mothership/chunk-PG6KUKNP.mjs +44 -0
- package/testeranto/bundles/node/mothership/chunk-V2EQEXU2.mjs +1032 -0
- package/testeranto/bundles/node/mothership/metafile.json +389 -0
- package/testeranto/bundles/node/mothership/src/PM/__tests__/nodeSidecar.testeranto.mjs +1219 -0
- package/testeranto/bundles/node/mothership/src/PM/__tests__/pureSidecar.testeranto.mjs +156 -0
- package/testeranto/bundles/node/mothership/src/PM/__tests__/sidecar.testeranto.mjs +1199 -0
- package/testeranto/bundles/node/mothership/src/PM/__tests__/webSidecar.testeranto.mjs +156 -0
- package/testeranto/bundles/node/mothership/src/mothership/test.mjs +24411 -0
- package/testeranto/bundles/pure/mothership/metafile.json +8 -0
- package/testeranto/bundles/web/mothership/metafile.json +8 -0
- package/testeranto/index.html +4 -4
- package/testeranto/reports/mothership/config.json +25 -0
- package/testeranto/reports/{redux → mothership}/index.html +8 -8
- package/testeranto/reports/mothership/src/PM/__tests__/nodeSidecar.testeranto/node/console_log.txt +0 -0
- package/testeranto/reports/mothership/src/PM/__tests__/nodeSidecar.testeranto/node/index.html +20 -0
- package/testeranto/reports/mothership/src/PM/__tests__/nodeSidecar.testeranto/node/lint_errors.json +1564 -0
- package/testeranto/reports/mothership/src/PM/__tests__/nodeSidecar.testeranto/node/log.txt +0 -0
- package/testeranto/reports/mothership/src/PM/__tests__/nodeSidecar.testeranto/node/prompt.txt +22 -0
- package/testeranto/reports/mothership/src/PM/__tests__/nodeSidecar.testeranto/node/type_errors.txt +35 -0
- package/testeranto/reports/mothership/src/PM/__tests__/pureSidecar.testeranto/node/index.html +20 -0
- package/testeranto/reports/mothership/src/PM/__tests__/pureSidecar.testeranto/node/lint_errors.json +80 -0
- package/testeranto/reports/mothership/src/PM/__tests__/pureSidecar.testeranto/node/prompt.txt +12 -0
- package/testeranto/reports/mothership/src/PM/__tests__/pureSidecar.testeranto/node/type_errors.txt +26 -0
- package/testeranto/reports/mothership/src/PM/__tests__/sidecar.testeranto/node/bdd_errors.txt +1 -0
- package/testeranto/reports/mothership/src/PM/__tests__/sidecar.testeranto/node/console_log.txt +0 -0
- package/testeranto/reports/mothership/src/PM/__tests__/sidecar.testeranto/node/index.html +20 -0
- package/testeranto/reports/mothership/src/PM/__tests__/sidecar.testeranto/node/lint_errors.json +1564 -0
- package/testeranto/reports/mothership/src/PM/__tests__/sidecar.testeranto/node/log.txt +0 -0
- package/testeranto/reports/mothership/src/PM/__tests__/sidecar.testeranto/node/prompt.txt +22 -0
- package/testeranto/reports/mothership/src/PM/__tests__/sidecar.testeranto/node/tests.json +56 -0
- package/testeranto/reports/mothership/src/PM/__tests__/sidecar.testeranto/node/type_errors.txt +29 -0
- package/testeranto/reports/mothership/src/PM/__tests__/webSidecar.testeranto/node/index.html +20 -0
- package/testeranto/reports/mothership/src/PM/__tests__/webSidecar.testeranto/node/lint_errors.json +80 -0
- package/testeranto/reports/mothership/src/PM/__tests__/webSidecar.testeranto/node/prompt.txt +12 -0
- package/testeranto/reports/mothership/src/PM/__tests__/webSidecar.testeranto/node/type_errors.txt +26 -0
- package/testeranto/reports/mothership/src/mothership/test/node/bdd_errors.txt +1 -0
- package/testeranto/reports/mothership/src/mothership/test/node/console_log.txt +4 -0
- package/testeranto/reports/mothership/src/mothership/test/node/index.html +20 -0
- package/testeranto/reports/mothership/src/mothership/test/node/lint_errors.json +1 -0
- package/testeranto/reports/mothership/src/mothership/test/node/log.txt +0 -0
- package/testeranto/reports/mothership/src/mothership/test/node/prompt.txt +12 -0
- package/testeranto/reports/mothership/src/mothership/test/node/tests.json +24 -0
- package/testeranto/reports/mothership/src/mothership/test/node/type_errors.txt +18 -0
- package/testeranto/reports/mothership/summary.json +9 -0
- package/testeranto.config.ts +82 -44
- package/tsc.log +78 -81
- package/dist/common/src/SubPackages/react/component/index.js +0 -20
- package/dist/common/src/SubPackages/react/component/node.js +0 -10
- package/dist/common/src/SubPackages/react/component/pure.js +0 -10
- package/dist/common/src/SubPackages/react/component/web.js +0 -10
- package/dist/common/src/SubPackages/react/jsx/index.js +0 -64
- package/dist/common/src/SubPackages/react/jsx/node.js +0 -10
- package/dist/common/src/SubPackages/react/jsx/pure.js +0 -10
- package/dist/common/src/SubPackages/react/jsx/web.js +0 -10
- package/dist/common/src/SubPackages/react-dom/component/dynamic.js +0 -61
- package/dist/common/src/SubPackages/react-dom/component/node.js +0 -10
- package/dist/common/src/SubPackages/react-dom/component/pure.js +0 -10
- package/dist/common/src/SubPackages/react-dom/component/static.js +0 -26
- package/dist/common/src/SubPackages/react-dom/component/web.js +0 -16
- package/dist/common/src/SubPackages/react-dom/jsx/dynamic.js +0 -31
- package/dist/common/src/SubPackages/react-dom/jsx/node.js +0 -10
- package/dist/common/src/SubPackages/react-dom/jsx/pure.js +0 -10
- package/dist/common/src/SubPackages/react-dom/jsx/static.js +0 -59
- package/dist/common/src/SubPackages/react-dom/jsx/web.js +0 -16
- package/dist/common/src/SubPackages/react-test-renderer/MemoExoticComponent/node.js +0 -54
- package/dist/common/src/SubPackages/react-test-renderer/component/index.js +0 -15
- package/dist/common/src/SubPackages/react-test-renderer/component/interface.js +0 -70
- package/dist/common/src/SubPackages/react-test-renderer/component/node.js +0 -8
- package/dist/common/src/SubPackages/react-test-renderer/component/pure.js +0 -8
- package/dist/common/src/SubPackages/react-test-renderer/component/test/implementation.js +0 -57
- package/dist/common/src/SubPackages/react-test-renderer/component/test/node.js +0 -10
- package/dist/common/src/SubPackages/react-test-renderer/component/test/pure.js +0 -10
- package/dist/common/src/SubPackages/react-test-renderer/component/test/web.js +0 -10
- package/dist/common/src/SubPackages/react-test-renderer/component/web.js +0 -8
- package/dist/common/src/SubPackages/react-test-renderer/fc/node.js +0 -60
- package/dist/common/src/SubPackages/react-test-renderer/fc/web.js +0 -60
- package/dist/common/src/SubPackages/react-test-renderer/jsx/index.js +0 -67
- package/dist/common/src/SubPackages/react-test-renderer/jsx/node.js +0 -10
- package/dist/common/src/SubPackages/react-test-renderer/jsx/pure.js +0 -10
- package/dist/common/src/SubPackages/react-test-renderer/jsx/web.js +0 -10
- package/dist/common/src/SubPackages/react-test-renderer/jsx-promised/index.js +0 -52
- package/dist/common/src/SubPackages/react-test-renderer/jsx-promised/node.js +0 -10
- package/dist/common/src/SubPackages/react-test-renderer/jsx-promised/web.js +0 -10
- package/dist/common/src/examples/react/component/index.js +0 -33
- package/dist/common/src/examples/react/component/test.js +0 -36
- package/dist/module/src/SubPackages/react/component/index.js +0 -13
- package/dist/module/src/SubPackages/react/component/node.js +0 -5
- package/dist/module/src/SubPackages/react/component/pure.js +0 -5
- package/dist/module/src/SubPackages/react/component/web.js +0 -5
- package/dist/module/src/SubPackages/react/jsx/index.js +0 -58
- package/dist/module/src/SubPackages/react/jsx/node.js +0 -5
- package/dist/module/src/SubPackages/react/jsx/pure.js +0 -5
- package/dist/module/src/SubPackages/react/jsx/web.js +0 -5
- package/dist/module/src/SubPackages/react-dom/component/dynamic.js +0 -54
- package/dist/module/src/SubPackages/react-dom/component/node.js +0 -5
- package/dist/module/src/SubPackages/react-dom/component/pure.js +0 -5
- package/dist/module/src/SubPackages/react-dom/component/static.js +0 -22
- package/dist/module/src/SubPackages/react-dom/component/web.js +0 -11
- package/dist/module/src/SubPackages/react-dom/jsx/dynamic.js +0 -27
- package/dist/module/src/SubPackages/react-dom/jsx/node.js +0 -5
- package/dist/module/src/SubPackages/react-dom/jsx/pure.js +0 -5
- package/dist/module/src/SubPackages/react-dom/jsx/static.js +0 -53
- package/dist/module/src/SubPackages/react-dom/jsx/web.js +0 -11
- package/dist/module/src/SubPackages/react-test-renderer/MemoExoticComponent/node.js +0 -16
- package/dist/module/src/SubPackages/react-test-renderer/component/index.js +0 -14
- package/dist/module/src/SubPackages/react-test-renderer/component/interface.js +0 -31
- package/dist/module/src/SubPackages/react-test-renderer/component/node.js +0 -3
- package/dist/module/src/SubPackages/react-test-renderer/component/pure.js +0 -3
- package/dist/module/src/SubPackages/react-test-renderer/component/test/implementation.js +0 -54
- package/dist/module/src/SubPackages/react-test-renderer/component/test/node.js +0 -5
- package/dist/module/src/SubPackages/react-test-renderer/component/test/pure.js +0 -5
- package/dist/module/src/SubPackages/react-test-renderer/component/test/web.js +0 -5
- package/dist/module/src/SubPackages/react-test-renderer/component/web.js +0 -3
- package/dist/module/src/SubPackages/react-test-renderer/fc/node.js +0 -22
- package/dist/module/src/SubPackages/react-test-renderer/fc/web.js +0 -22
- package/dist/module/src/SubPackages/react-test-renderer/jsx/index.js +0 -28
- package/dist/module/src/SubPackages/react-test-renderer/jsx/node.js +0 -5
- package/dist/module/src/SubPackages/react-test-renderer/jsx/pure.js +0 -5
- package/dist/module/src/SubPackages/react-test-renderer/jsx/web.js +0 -5
- package/dist/module/src/SubPackages/react-test-renderer/jsx-promised/index.js +0 -16
- package/dist/module/src/SubPackages/react-test-renderer/jsx-promised/node.js +0 -5
- package/dist/module/src/SubPackages/react-test-renderer/jsx-promised/web.js +0 -5
- package/dist/module/src/examples/react/component/index.js +0 -26
- package/dist/module/src/examples/react/component/test.js +0 -32
- package/dist/prebuild/ReportClient.css +0 -11342
- package/dist/tsconfig.tsbuildinfo +0 -1
- package/dist/types/src/SubPackages/react/component/index.d.ts +0 -4
- package/dist/types/src/SubPackages/react/component/node.d.ts +0 -4
- package/dist/types/src/SubPackages/react/component/pure.d.ts +0 -4
- package/dist/types/src/SubPackages/react/component/web.d.ts +0 -4
- package/dist/types/src/SubPackages/react/jsx/index.d.ts +0 -5
- package/dist/types/src/SubPackages/react/jsx/node.d.ts +0 -4
- package/dist/types/src/SubPackages/react/jsx/pure.d.ts +0 -4
- package/dist/types/src/SubPackages/react/jsx/web.d.ts +0 -4
- package/dist/types/src/SubPackages/react-dom/component/dynamic.d.ts +0 -20
- package/dist/types/src/SubPackages/react-dom/component/node.d.ts +0 -4
- package/dist/types/src/SubPackages/react-dom/component/pure.d.ts +0 -4
- package/dist/types/src/SubPackages/react-dom/component/static.d.ts +0 -9
- package/dist/types/src/SubPackages/react-dom/component/web.d.ts +0 -4
- package/dist/types/src/SubPackages/react-dom/jsx/dynamic.d.ts +0 -5
- package/dist/types/src/SubPackages/react-dom/jsx/index.d.ts +0 -6
- package/dist/types/src/SubPackages/react-dom/jsx/node.d.ts +0 -4
- package/dist/types/src/SubPackages/react-dom/jsx/pure.d.ts +0 -4
- package/dist/types/src/SubPackages/react-dom/jsx/static.d.ts +0 -5
- package/dist/types/src/SubPackages/react-dom/jsx/web.d.ts +0 -5
- package/dist/types/src/SubPackages/react-test-renderer/MemoExoticComponent/node.d.ts +0 -6
- package/dist/types/src/SubPackages/react-test-renderer/component/index.d.ts +0 -5
- package/dist/types/src/SubPackages/react-test-renderer/component/interface.d.ts +0 -3
- package/dist/types/src/SubPackages/react-test-renderer/component/node.d.ts +0 -4
- package/dist/types/src/SubPackages/react-test-renderer/component/pure.d.ts +0 -4
- package/dist/types/src/SubPackages/react-test-renderer/component/test/implementation.d.ts +0 -4
- package/dist/types/src/SubPackages/react-test-renderer/component/test/node.d.ts +0 -3
- package/dist/types/src/SubPackages/react-test-renderer/component/test/pure.d.ts +0 -4
- package/dist/types/src/SubPackages/react-test-renderer/component/test/web.d.ts +0 -3
- package/dist/types/src/SubPackages/react-test-renderer/component/web.d.ts +0 -4
- package/dist/types/src/SubPackages/react-test-renderer/fc/node.d.ts +0 -8
- package/dist/types/src/SubPackages/react-test-renderer/fc/web.d.ts +0 -9
- package/dist/types/src/SubPackages/react-test-renderer/jsx/index.d.ts +0 -11
- package/dist/types/src/SubPackages/react-test-renderer/jsx/node.d.ts +0 -4
- package/dist/types/src/SubPackages/react-test-renderer/jsx/pure.d.ts +0 -4
- package/dist/types/src/SubPackages/react-test-renderer/jsx/web.d.ts +0 -4
- package/dist/types/src/SubPackages/react-test-renderer/jsx-promised/index.d.ts +0 -15
- package/dist/types/src/SubPackages/react-test-renderer/jsx-promised/node.d.ts +0 -5
- package/dist/types/src/SubPackages/react-test-renderer/jsx-promised/web.d.ts +0 -5
- package/dist/types/src/examples/react/component/index.d.ts +0 -13
- package/dist/types/src/examples/react/component/test.d.ts +0 -17
- package/src/SubPackages/react/component/index.ts +0 -28
- package/src/SubPackages/react/component/node.ts +0 -17
- package/src/SubPackages/react/component/pure.ts +0 -17
- package/src/SubPackages/react/component/web.ts +0 -17
- package/src/SubPackages/react/jsx/index.ts +0 -75
- package/src/SubPackages/react/jsx/node.ts +0 -23
- package/src/SubPackages/react/jsx/pure.ts +0 -23
- package/src/SubPackages/react/jsx/web.ts +0 -24
- package/src/SubPackages/react-dom/component/dynamic.ts +0 -107
- package/src/SubPackages/react-dom/component/node.ts +0 -17
- package/src/SubPackages/react-dom/component/pure.ts +0 -17
- package/src/SubPackages/react-dom/component/static.ts +0 -41
- package/src/SubPackages/react-dom/component/web.ts +0 -32
- package/src/SubPackages/react-dom/jsx/dynamic.ts +0 -46
- package/src/SubPackages/react-dom/jsx/index.ts +0 -6
- package/src/SubPackages/react-dom/jsx/node.ts +0 -18
- package/src/SubPackages/react-dom/jsx/pure.ts +0 -18
- package/src/SubPackages/react-dom/jsx/static.ts +0 -87
- package/src/SubPackages/react-dom/jsx/web.ts +0 -26
- package/src/SubPackages/react-test-renderer/MemoExoticComponent/node.ts +0 -54
- package/src/SubPackages/react-test-renderer/component/index.ts +0 -32
- package/src/SubPackages/react-test-renderer/component/interface.ts +0 -43
- package/src/SubPackages/react-test-renderer/component/node.ts +0 -18
- package/src/SubPackages/react-test-renderer/component/pure.ts +0 -18
- package/src/SubPackages/react-test-renderer/component/test/implementation.ts +0 -63
- package/src/SubPackages/react-test-renderer/component/test/node.ts +0 -14
- package/src/SubPackages/react-test-renderer/component/test/pure.ts +0 -14
- package/src/SubPackages/react-test-renderer/component/test/web.ts +0 -14
- package/src/SubPackages/react-test-renderer/component/web.ts +0 -18
- package/src/SubPackages/react-test-renderer/fc/node.ts +0 -83
- package/src/SubPackages/react-test-renderer/fc/web.ts +0 -80
- package/src/SubPackages/react-test-renderer/jsx/index.ts +0 -61
- package/src/SubPackages/react-test-renderer/jsx/node.ts +0 -31
- package/src/SubPackages/react-test-renderer/jsx/pure.ts +0 -31
- package/src/SubPackages/react-test-renderer/jsx/web.ts +0 -32
- package/src/SubPackages/react-test-renderer/jsx-promised/index.ts +0 -73
- package/src/SubPackages/react-test-renderer/jsx-promised/node.ts +0 -36
- package/src/SubPackages/react-test-renderer/jsx-promised/web.ts +0 -36
- package/src/examples/react/component/index.tsx +0 -35
- package/src/examples/react/component/test.ts +0 -83
- package/testeranto/bundles/node/redux/metafile.json +0 -559
- package/testeranto/bundles/pure/redux/metafile.json +0 -554
- package/testeranto/bundles/web/redux/metafile.json +0 -504
- package/testeranto/bundles/web/redux/test/web.html +0 -19
- package/testeranto/reports/redux/config.json +0 -38
- package/testeranto/reports/redux/summary.json +0 -20
- /package/dist/{module/src/SubPackages/react-dom/jsx/index.js → types/src/SP__Polygon.test.d.ts} +0 -0
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import ReactDom from "react-dom/client";
|
|
3
|
-
|
|
4
|
-
import { Ibdd_in, IPartialInterface, ITestInterface } from "../../../Types";
|
|
5
|
-
|
|
6
|
-
export type IInput = typeof React.Component;
|
|
7
|
-
|
|
8
|
-
export type ISelection = {
|
|
9
|
-
htmlElement: HTMLElement;
|
|
10
|
-
reactElement: any; //CElement<any, any>;
|
|
11
|
-
domRoot: ReactDom.Root;
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
export type IStore = {
|
|
15
|
-
htmlElement: HTMLElement;
|
|
16
|
-
reactElement: any; //CElement<any, any>,
|
|
17
|
-
domRoot: ReactDom.Root;
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
export type ISubject = {
|
|
21
|
-
htmlElement: HTMLElement;
|
|
22
|
-
// reactElement: any; //CElement<any, any>,
|
|
23
|
-
domRoot: ReactDom.Root;
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
export type I = Ibdd_in<
|
|
27
|
-
IInput,
|
|
28
|
-
ISubject,
|
|
29
|
-
ISelection,
|
|
30
|
-
IStore,
|
|
31
|
-
(s: IStore) => IStore,
|
|
32
|
-
(s: IStore) => IStore,
|
|
33
|
-
(s: IStore) => IStore
|
|
34
|
-
>;
|
|
35
|
-
|
|
36
|
-
export const testInterfacer: (
|
|
37
|
-
testInput: IInput
|
|
38
|
-
) => IPartialInterface<I> = () => {
|
|
39
|
-
class TesterantoComponent extends React.Component {
|
|
40
|
-
done: (t: TesterantoComponent) => void;
|
|
41
|
-
constructor(props) {
|
|
42
|
-
super(props);
|
|
43
|
-
this.done = props.done;
|
|
44
|
-
}
|
|
45
|
-
componentDidMount() {
|
|
46
|
-
super.componentDidMount && super.componentDidMount();
|
|
47
|
-
return this.done(this);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
return {
|
|
52
|
-
beforeAll: async (subject, artificer) => {
|
|
53
|
-
return await new Promise((resolve, rej) => {
|
|
54
|
-
const htmlElement = document.getElementById("root");
|
|
55
|
-
if (htmlElement) {
|
|
56
|
-
const domRoot = ReactDom.createRoot(htmlElement);
|
|
57
|
-
resolve({ domRoot, htmlElement });
|
|
58
|
-
}
|
|
59
|
-
});
|
|
60
|
-
},
|
|
61
|
-
beforeEach: async (
|
|
62
|
-
{ domRoot, htmlElement },
|
|
63
|
-
initialValues,
|
|
64
|
-
testResource,
|
|
65
|
-
artificer
|
|
66
|
-
) => {
|
|
67
|
-
return new Promise(async (resolve, rej) => {
|
|
68
|
-
domRoot.render(
|
|
69
|
-
createElement(
|
|
70
|
-
TesterantoComponent,
|
|
71
|
-
{
|
|
72
|
-
...initialValues,
|
|
73
|
-
done: (reactElement) => {
|
|
74
|
-
resolve({
|
|
75
|
-
htmlElement,
|
|
76
|
-
reactElement,
|
|
77
|
-
domRoot,
|
|
78
|
-
});
|
|
79
|
-
},
|
|
80
|
-
},
|
|
81
|
-
[]
|
|
82
|
-
)
|
|
83
|
-
);
|
|
84
|
-
});
|
|
85
|
-
},
|
|
86
|
-
andWhen: async function (s, whenCB) {
|
|
87
|
-
return whenCB(s);
|
|
88
|
-
},
|
|
89
|
-
butThen: async function (s, thenCB) {
|
|
90
|
-
return thenCB(s);
|
|
91
|
-
},
|
|
92
|
-
afterEach:
|
|
93
|
-
testInterface?.afterEach ||
|
|
94
|
-
async function (store, ndx, utils) {
|
|
95
|
-
return store;
|
|
96
|
-
},
|
|
97
|
-
|
|
98
|
-
afterAll: async (store, utils) => {
|
|
99
|
-
// setTimeout(() => {
|
|
100
|
-
// console.log("This will run after 1 second");
|
|
101
|
-
// }, 1000); // 1000 milliseconds = 1 second
|
|
102
|
-
// store.htmlElement.remove();
|
|
103
|
-
// store.htmlElement = document.createElement("root");
|
|
104
|
-
return store;
|
|
105
|
-
},
|
|
106
|
-
};
|
|
107
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import Testeranto from "../../../Node.js";
|
|
2
|
-
import { ITestImplementation, ITestSpecification, OT } from "../../../Types";
|
|
3
|
-
|
|
4
|
-
import { I, testInterfacer } from "./static.js";
|
|
5
|
-
|
|
6
|
-
export default <O extends OT, M>(
|
|
7
|
-
testImplementations: ITestImplementation<I, O, M>,
|
|
8
|
-
testSpecifications: ITestSpecification<I, O>,
|
|
9
|
-
testInput: I["iinput"]
|
|
10
|
-
) => {
|
|
11
|
-
return Testeranto<I, O, M>(
|
|
12
|
-
testInput,
|
|
13
|
-
testSpecifications,
|
|
14
|
-
testImplementations,
|
|
15
|
-
testInterfacer(testInput)
|
|
16
|
-
);
|
|
17
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import Testeranto from "../../../Pure.js";
|
|
2
|
-
import { ITestImplementation, ITestSpecification, OT } from "../../../Types";
|
|
3
|
-
|
|
4
|
-
import { I, testInterfacer } from "./static.js";
|
|
5
|
-
|
|
6
|
-
export default <O extends OT, M>(
|
|
7
|
-
testImplementations: ITestImplementation<I, O, M>,
|
|
8
|
-
testSpecifications: ITestSpecification<I, O>,
|
|
9
|
-
testInput: I["iinput"]
|
|
10
|
-
) => {
|
|
11
|
-
return Testeranto<I, O, M>(
|
|
12
|
-
testInput,
|
|
13
|
-
testSpecifications,
|
|
14
|
-
testImplementations,
|
|
15
|
-
testInterfacer(testInput)
|
|
16
|
-
);
|
|
17
|
-
};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode, createElement } from "react";
|
|
2
|
-
|
|
3
|
-
import { Ibdd_in } from "../../../Types";
|
|
4
|
-
|
|
5
|
-
type IInput = typeof React.Component;
|
|
6
|
-
|
|
7
|
-
export type ISelection = ReactNode;
|
|
8
|
-
export type IStore = ReactNode;
|
|
9
|
-
export type ISubject = ReactNode;
|
|
10
|
-
|
|
11
|
-
export type I = Ibdd_in<
|
|
12
|
-
IInput,
|
|
13
|
-
ISubject,
|
|
14
|
-
IStore,
|
|
15
|
-
ISelection,
|
|
16
|
-
unknown,
|
|
17
|
-
(s: IStore) => IStore,
|
|
18
|
-
unknown
|
|
19
|
-
>;
|
|
20
|
-
|
|
21
|
-
export const testInterfacer: (testInput: any) => any = (testInput) => {
|
|
22
|
-
return {
|
|
23
|
-
beforeEach: async (): Promise<IStore> => {
|
|
24
|
-
return new Promise((resolve, rej) => {
|
|
25
|
-
resolve(createElement(testInput));
|
|
26
|
-
});
|
|
27
|
-
},
|
|
28
|
-
andWhen: async function (s, whenCB) {
|
|
29
|
-
return whenCB(s);
|
|
30
|
-
},
|
|
31
|
-
butThen: async function (s) {
|
|
32
|
-
return s;
|
|
33
|
-
},
|
|
34
|
-
afterEach: async function () {
|
|
35
|
-
return {};
|
|
36
|
-
},
|
|
37
|
-
afterAll: () => {
|
|
38
|
-
return;
|
|
39
|
-
},
|
|
40
|
-
};
|
|
41
|
-
};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import Testeranto from "../../../Web.js";
|
|
2
|
-
import {
|
|
3
|
-
IPartialWebInterface,
|
|
4
|
-
ITestImplementation,
|
|
5
|
-
ITestSpecification,
|
|
6
|
-
OT,
|
|
7
|
-
} from "../../../Types";
|
|
8
|
-
|
|
9
|
-
import { I, IInput } from "./dynamic.js";
|
|
10
|
-
|
|
11
|
-
export default <O extends OT, M>(
|
|
12
|
-
testInput: IInput,
|
|
13
|
-
testSpecifications: ITestSpecification<I, O>,
|
|
14
|
-
testImplementations: ITestImplementation<I, O, M>,
|
|
15
|
-
testInterface: IPartialWebInterface<I>
|
|
16
|
-
) => {
|
|
17
|
-
const t = Testeranto<I, O, M>(
|
|
18
|
-
testInput,
|
|
19
|
-
testSpecifications,
|
|
20
|
-
testImplementations,
|
|
21
|
-
testInterface
|
|
22
|
-
);
|
|
23
|
-
|
|
24
|
-
document.addEventListener("DOMContentLoaded", function () {
|
|
25
|
-
const elem = document.getElementById("root");
|
|
26
|
-
if (elem) {
|
|
27
|
-
return t;
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
return t;
|
|
32
|
-
};
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { createElement } from "react";
|
|
2
|
-
|
|
3
|
-
import { Ibdd_in, IPartialInterface } from "../../../Types";
|
|
4
|
-
|
|
5
|
-
import { IInput, ISelection, IStore, IWhenShape, IThenShape } from ".";
|
|
6
|
-
|
|
7
|
-
export type ISubject = HTMLElement;
|
|
8
|
-
|
|
9
|
-
export type I = Ibdd_in<
|
|
10
|
-
IInput,
|
|
11
|
-
ISubject,
|
|
12
|
-
ISelection,
|
|
13
|
-
IStore,
|
|
14
|
-
unknown,
|
|
15
|
-
IWhenShape,
|
|
16
|
-
IThenShape
|
|
17
|
-
>;
|
|
18
|
-
|
|
19
|
-
export const testInterfacer = (
|
|
20
|
-
testInput: I["iinput"]
|
|
21
|
-
): IPartialInterface<I> => {
|
|
22
|
-
return {
|
|
23
|
-
beforeAll: async (prototype, artificer) => {
|
|
24
|
-
return await new Promise((resolve, rej) => {
|
|
25
|
-
resolve(null);
|
|
26
|
-
});
|
|
27
|
-
},
|
|
28
|
-
beforeEach: async () => {
|
|
29
|
-
return new Promise((resolve, rej) => {
|
|
30
|
-
resolve(createElement(testInput));
|
|
31
|
-
});
|
|
32
|
-
},
|
|
33
|
-
andWhen: async function (s, whenCB) {
|
|
34
|
-
return s;
|
|
35
|
-
},
|
|
36
|
-
butThen: async function (s) {
|
|
37
|
-
return s;
|
|
38
|
-
},
|
|
39
|
-
afterEach: async function (store, ndx, artificer) {
|
|
40
|
-
return {};
|
|
41
|
-
},
|
|
42
|
-
afterAll: (store, artificer) => {
|
|
43
|
-
return;
|
|
44
|
-
},
|
|
45
|
-
};
|
|
46
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import Testeranto from "../../../Node.js";
|
|
2
|
-
|
|
3
|
-
import { ITestImplementation, ITestSpecification, OT } from "../../../Types";
|
|
4
|
-
|
|
5
|
-
import { I, testInterface } from "./static.js";
|
|
6
|
-
|
|
7
|
-
export default <O extends OT, M>(
|
|
8
|
-
testImplementations: ITestImplementation<I, O, M>,
|
|
9
|
-
testSpecifications: ITestSpecification<I, O>,
|
|
10
|
-
testInput: I["iinput"]
|
|
11
|
-
) => {
|
|
12
|
-
return Testeranto<I, O, M>(
|
|
13
|
-
testInput,
|
|
14
|
-
testSpecifications,
|
|
15
|
-
testImplementations,
|
|
16
|
-
testInterface
|
|
17
|
-
);
|
|
18
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import Testeranto from "../../../Pure.js";
|
|
2
|
-
|
|
3
|
-
import { ITestImplementation, ITestSpecification, OT } from "../../../Types";
|
|
4
|
-
|
|
5
|
-
import { I, testInterface } from "./static.js";
|
|
6
|
-
|
|
7
|
-
export default <O extends OT, M>(
|
|
8
|
-
testImplementations: ITestImplementation<I, O, M>,
|
|
9
|
-
testSpecifications: ITestSpecification<I, O>,
|
|
10
|
-
testInput: I["iinput"]
|
|
11
|
-
) => {
|
|
12
|
-
return Testeranto<I, O, M>(
|
|
13
|
-
testInput,
|
|
14
|
-
testSpecifications,
|
|
15
|
-
testImplementations,
|
|
16
|
-
testInterface
|
|
17
|
-
);
|
|
18
|
-
};
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import { createElement, useEffect, useRef } from "react";
|
|
2
|
-
import React from "react";
|
|
3
|
-
import ReactDom from "react-dom/client";
|
|
4
|
-
|
|
5
|
-
import { Ibdd_in, IPartialInterface } from "../../../Types";
|
|
6
|
-
|
|
7
|
-
import { IInput, ISelection, IStore } from ".";
|
|
8
|
-
import { IPM } from "../../../lib/types";
|
|
9
|
-
|
|
10
|
-
export type I = Ibdd_in<
|
|
11
|
-
IInput,
|
|
12
|
-
HTMLElement,
|
|
13
|
-
ISelection,
|
|
14
|
-
IStore,
|
|
15
|
-
unknown,
|
|
16
|
-
(s: HTMLElement, p: IPM) => any,
|
|
17
|
-
(s: HTMLElement, p: IPM) => any
|
|
18
|
-
>;
|
|
19
|
-
|
|
20
|
-
const TesterantoComponent = ({
|
|
21
|
-
done,
|
|
22
|
-
innerComp,
|
|
23
|
-
}: {
|
|
24
|
-
done: (ref: React.MutableRefObject<any>) => any;
|
|
25
|
-
innerComp: IInput;
|
|
26
|
-
}) => {
|
|
27
|
-
const myContainer = useRef<any>(null);
|
|
28
|
-
useEffect(() => {
|
|
29
|
-
done(myContainer.current);
|
|
30
|
-
}, []);
|
|
31
|
-
|
|
32
|
-
return React.createElement("div", { ref: myContainer }, innerComp());
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
export const testInterface: IPartialInterface<I> = {
|
|
36
|
-
beforeAll: async (reactElement, itr): Promise<any> => {
|
|
37
|
-
return await new Promise((resolve, rej) => {
|
|
38
|
-
const htmlElement = document.getElementById("root");
|
|
39
|
-
|
|
40
|
-
if (htmlElement) {
|
|
41
|
-
const domRoot = ReactDom.createRoot(htmlElement);
|
|
42
|
-
|
|
43
|
-
domRoot.render(
|
|
44
|
-
createElement(
|
|
45
|
-
TesterantoComponent,
|
|
46
|
-
{
|
|
47
|
-
// ...initialProps,
|
|
48
|
-
innerComp: reactElement,
|
|
49
|
-
done: (reactElement) => {
|
|
50
|
-
resolve({
|
|
51
|
-
htmlElement,
|
|
52
|
-
reactElement,
|
|
53
|
-
domRoot,
|
|
54
|
-
});
|
|
55
|
-
},
|
|
56
|
-
},
|
|
57
|
-
[]
|
|
58
|
-
)
|
|
59
|
-
);
|
|
60
|
-
|
|
61
|
-
// resolve({ htmlElement });
|
|
62
|
-
}
|
|
63
|
-
});
|
|
64
|
-
},
|
|
65
|
-
|
|
66
|
-
beforeEach: async (subject) => {
|
|
67
|
-
return subject;
|
|
68
|
-
},
|
|
69
|
-
andWhen: async function (s, whenCB, tr, utils) {
|
|
70
|
-
return whenCB(s, utils);
|
|
71
|
-
},
|
|
72
|
-
butThen: async function (s, thenCB, tr, utils) {
|
|
73
|
-
return new Promise((resolve, rej) => {
|
|
74
|
-
resolve(thenCB(s, utils));
|
|
75
|
-
});
|
|
76
|
-
},
|
|
77
|
-
afterEach: async function (store, ndx, artificer) {
|
|
78
|
-
return new Promise((resolve, rej) => {
|
|
79
|
-
resolve({});
|
|
80
|
-
});
|
|
81
|
-
},
|
|
82
|
-
afterAll: (store, artificer) => {
|
|
83
|
-
return new Promise((resolve, rej) => {
|
|
84
|
-
resolve({});
|
|
85
|
-
});
|
|
86
|
-
},
|
|
87
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import Testeranto from "../../../Web.js";
|
|
2
|
-
import { ITestImplementation, ITestSpecification, OT } from "../../../Types";
|
|
3
|
-
|
|
4
|
-
import type { IInput } from "./index";
|
|
5
|
-
import { I, testInterfacer } from "./dynamic.js";
|
|
6
|
-
|
|
7
|
-
export default <O extends OT, M>(
|
|
8
|
-
testImplementations: ITestImplementation<I, O, M>,
|
|
9
|
-
testSpecifications: ITestSpecification<I, O>,
|
|
10
|
-
testInput: IInput
|
|
11
|
-
) => {
|
|
12
|
-
const t = Testeranto<I, O, M>(
|
|
13
|
-
testInput,
|
|
14
|
-
testSpecifications,
|
|
15
|
-
testImplementations,
|
|
16
|
-
testInterfacer(testInput)
|
|
17
|
-
);
|
|
18
|
-
|
|
19
|
-
document.addEventListener("DOMContentLoaded", function () {
|
|
20
|
-
const rootElement = document.getElementById("root");
|
|
21
|
-
if (rootElement) {
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
|
|
25
|
-
return t;
|
|
26
|
-
};
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import renderer, { act } from "react-test-renderer";
|
|
3
|
-
|
|
4
|
-
import {
|
|
5
|
-
Ibdd_in,
|
|
6
|
-
Ibdd_out,
|
|
7
|
-
ITestImplementation,
|
|
8
|
-
ITestSpecification,
|
|
9
|
-
} from "../../../Types";
|
|
10
|
-
import test from "../../../Node";
|
|
11
|
-
|
|
12
|
-
type IInput = React.MemoExoticComponent<() => JSX.Element>;
|
|
13
|
-
|
|
14
|
-
export default <
|
|
15
|
-
I extends Ibdd_in<
|
|
16
|
-
IInput,
|
|
17
|
-
renderer.ReactTestRenderer,
|
|
18
|
-
renderer.ReactTestRenderer,
|
|
19
|
-
renderer.ReactTestRenderer,
|
|
20
|
-
unknown,
|
|
21
|
-
unknown,
|
|
22
|
-
unknown
|
|
23
|
-
>,
|
|
24
|
-
O extends Ibdd_out<
|
|
25
|
-
Record<string, any>,
|
|
26
|
-
Record<string, any>,
|
|
27
|
-
Record<string, any>,
|
|
28
|
-
Record<string, any>,
|
|
29
|
-
Record<string, any>
|
|
30
|
-
>
|
|
31
|
-
>(
|
|
32
|
-
testImplementations: ITestImplementation<I, O>,
|
|
33
|
-
testSpecifications: ITestSpecification<I, O>,
|
|
34
|
-
testInput: IInput
|
|
35
|
-
) =>
|
|
36
|
-
test<I, O>(testInput, testSpecifications, testImplementations, {
|
|
37
|
-
beforeEach: function (
|
|
38
|
-
CComponent,
|
|
39
|
-
props
|
|
40
|
-
): Promise<renderer.ReactTestRenderer> {
|
|
41
|
-
let component;
|
|
42
|
-
act(() => {
|
|
43
|
-
component = renderer.create(React.createElement(CComponent, props, []));
|
|
44
|
-
});
|
|
45
|
-
return component;
|
|
46
|
-
},
|
|
47
|
-
andWhen: async function (
|
|
48
|
-
renderer: renderer.ReactTestRenderer,
|
|
49
|
-
whenCB: () => (a: any) => any
|
|
50
|
-
): Promise<renderer.ReactTestRenderer> {
|
|
51
|
-
await act(() => whenCB()(renderer));
|
|
52
|
-
return renderer;
|
|
53
|
-
},
|
|
54
|
-
});
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { ReactTestRenderer } from "react-test-renderer";
|
|
3
|
-
|
|
4
|
-
import type { Ibdd_in } from "../../../Types";
|
|
5
|
-
|
|
6
|
-
export type IInput<P, S> = typeof React.Component<P, S>;
|
|
7
|
-
|
|
8
|
-
export type I = Ibdd_in<
|
|
9
|
-
IInput<any, any>,
|
|
10
|
-
ReactTestRenderer,
|
|
11
|
-
ReactTestRenderer,
|
|
12
|
-
ReactTestRenderer,
|
|
13
|
-
unknown,
|
|
14
|
-
unknown,
|
|
15
|
-
(r: ReactTestRenderer) => ReactTestRenderer
|
|
16
|
-
>;
|
|
17
|
-
|
|
18
|
-
// export type ISuper<T> = T extends infer U ? U : object;
|
|
19
|
-
|
|
20
|
-
// export type InitialState = unknown;
|
|
21
|
-
// export type IWhenShape = any;
|
|
22
|
-
// export type IThenShape = any;
|
|
23
|
-
// export type ISelection = renderer.ReactTestRenderer;
|
|
24
|
-
// export type IStore = renderer.ReactTestRenderer;
|
|
25
|
-
// export type ISubject = renderer.ReactTestRenderer;
|
|
26
|
-
|
|
27
|
-
// export type IImpl<I extends IT, O extends OT, M> = ITestImplementation<I, O>;
|
|
28
|
-
// export type ITestSpecification<
|
|
29
|
-
// I extends IT,
|
|
30
|
-
// O extends OT,
|
|
31
|
-
// M
|
|
32
|
-
// > = ITestSpecification<I, O>;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import renderer, { act } from "react-test-renderer";
|
|
3
|
-
|
|
4
|
-
import { IPartialInterface } from "../../../Types";
|
|
5
|
-
|
|
6
|
-
import { I } from ".";
|
|
7
|
-
|
|
8
|
-
export const testInterface: IPartialInterface<I> = {
|
|
9
|
-
beforeEach: function (
|
|
10
|
-
CComponent,
|
|
11
|
-
propsAndChildren: () => any
|
|
12
|
-
): Promise<renderer.ReactTestRenderer> {
|
|
13
|
-
function Link(proper) {
|
|
14
|
-
return React.createElement(CComponent, proper(), []);
|
|
15
|
-
}
|
|
16
|
-
return new Promise((res, rej) => {
|
|
17
|
-
act(async () => {
|
|
18
|
-
const testRenderer = await renderer.create(Link(propsAndChildren));
|
|
19
|
-
res(testRenderer);
|
|
20
|
-
});
|
|
21
|
-
});
|
|
22
|
-
},
|
|
23
|
-
andWhen: async function (
|
|
24
|
-
renderer: renderer.ReactTestRenderer,
|
|
25
|
-
whenCB: any
|
|
26
|
-
): Promise<renderer.ReactTestRenderer> {
|
|
27
|
-
await act(() => whenCB(renderer));
|
|
28
|
-
return renderer;
|
|
29
|
-
},
|
|
30
|
-
|
|
31
|
-
// andWhen: function (s: Store, whenCB): Promise<Selection> {
|
|
32
|
-
// return whenCB()(s);
|
|
33
|
-
// },
|
|
34
|
-
butThen: async function (s, thenCB, tr) {
|
|
35
|
-
return thenCB(s);
|
|
36
|
-
},
|
|
37
|
-
afterEach: async function (store, ndx, artificer) {
|
|
38
|
-
return {};
|
|
39
|
-
},
|
|
40
|
-
afterAll: (store, artificer) => {
|
|
41
|
-
return;
|
|
42
|
-
},
|
|
43
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import Testeranto from "../../../Node.js";
|
|
2
|
-
|
|
3
|
-
import { ITestImplementation, ITestSpecification, OT } from "../../../Types.js";
|
|
4
|
-
|
|
5
|
-
import { IInput, I } from "./index.js";
|
|
6
|
-
import { testInterface } from "./interface.js";
|
|
7
|
-
|
|
8
|
-
export default <O extends OT, IProps, IState, M = {}>(
|
|
9
|
-
testImplementations: ITestImplementation<I, O, M>,
|
|
10
|
-
testSpecifications: ITestSpecification<I, O>,
|
|
11
|
-
testInput: IInput<IProps, IState>
|
|
12
|
-
) =>
|
|
13
|
-
Testeranto<I, O, M>(
|
|
14
|
-
testInput,
|
|
15
|
-
testSpecifications,
|
|
16
|
-
testImplementations,
|
|
17
|
-
testInterface
|
|
18
|
-
);
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import Testeranto from "../../../Pure.js";
|
|
2
|
-
|
|
3
|
-
import { ITestImplementation, ITestSpecification, OT } from "../../../Types.js";
|
|
4
|
-
|
|
5
|
-
import { IInput, I } from "./index.js";
|
|
6
|
-
import { testInterface } from "./interface";
|
|
7
|
-
|
|
8
|
-
export default <O extends OT, M = {}>(
|
|
9
|
-
testImplementations: ITestImplementation<I, O, M>,
|
|
10
|
-
testSpecifications: ITestSpecification<I, O>,
|
|
11
|
-
testInput: IInput<any, any>
|
|
12
|
-
) =>
|
|
13
|
-
Testeranto<I, O, M>(
|
|
14
|
-
testInput,
|
|
15
|
-
testSpecifications,
|
|
16
|
-
testImplementations,
|
|
17
|
-
testInterface
|
|
18
|
-
);
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
// import { ITestImplementation } from "testeranto/src/Types";
|
|
2
|
-
// import { I } from "testeranto/src/SubPackages/react-test-renderer/component";
|
|
3
|
-
|
|
4
|
-
import { ReactTestRenderer } from "react-test-renderer";
|
|
5
|
-
import { assert } from "chai";
|
|
6
|
-
|
|
7
|
-
import { O } from "../../../../examples/react/component/test";
|
|
8
|
-
import { I } from "..";
|
|
9
|
-
import { ITestImplementation } from "../../../../Types";
|
|
10
|
-
|
|
11
|
-
export const testImplementation: ITestImplementation<I, O> = {
|
|
12
|
-
suites: {
|
|
13
|
-
Default: "default",
|
|
14
|
-
},
|
|
15
|
-
givens: {
|
|
16
|
-
AnEmptyState: (): { foo: string } => {
|
|
17
|
-
return { foo: "bar" };
|
|
18
|
-
},
|
|
19
|
-
},
|
|
20
|
-
whens: {
|
|
21
|
-
IClickTheButton: () => async (component) => {
|
|
22
|
-
const button = component.root.findByType("button");
|
|
23
|
-
button.props.onClick();
|
|
24
|
-
return component;
|
|
25
|
-
},
|
|
26
|
-
IClickTheHeader: () => async (component) => {
|
|
27
|
-
try {
|
|
28
|
-
const header = component.root.findByType("h1");
|
|
29
|
-
header.props.onClick();
|
|
30
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
31
|
-
} catch (error) {
|
|
32
|
-
// Expected error - header click fails
|
|
33
|
-
}
|
|
34
|
-
return component;
|
|
35
|
-
},
|
|
36
|
-
},
|
|
37
|
-
thens: {
|
|
38
|
-
ThePropsIs: (expectation) => (component) => {
|
|
39
|
-
const propsElement = component.root.findByProps({ id: "theProps" });
|
|
40
|
-
return assert.deepEqual(
|
|
41
|
-
JSON.parse(propsElement.props.children),
|
|
42
|
-
expectation
|
|
43
|
-
);
|
|
44
|
-
},
|
|
45
|
-
|
|
46
|
-
TheStatusIs: (expectation) => (component) => {
|
|
47
|
-
try {
|
|
48
|
-
const statElement = component.root.findByProps({ id: "theStat" });
|
|
49
|
-
const actual = JSON.parse(statElement.props.children);
|
|
50
|
-
assert.deepEqual(actual, expectation, "the status was not as expected");
|
|
51
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
52
|
-
} catch (error) {
|
|
53
|
-
assert.fail(`Element with id "theStat" not found`);
|
|
54
|
-
}
|
|
55
|
-
return component;
|
|
56
|
-
},
|
|
57
|
-
},
|
|
58
|
-
checks: {
|
|
59
|
-
AnEmptyState: () => {
|
|
60
|
-
return { foo: "bar" };
|
|
61
|
-
},
|
|
62
|
-
},
|
|
63
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import test from "../node";
|
|
2
|
-
|
|
3
|
-
import { O } from "../../../../examples/react/component/test";
|
|
4
|
-
import { IProps, IState } from "../../../../examples/react/component";
|
|
5
|
-
import component from "../../../../examples/react/component/index";
|
|
6
|
-
import { specification } from "../../../../examples/react/component/test";
|
|
7
|
-
|
|
8
|
-
import { testImplementation } from "./implementation";
|
|
9
|
-
|
|
10
|
-
export default test<O, IProps, IState>(
|
|
11
|
-
testImplementation,
|
|
12
|
-
specification,
|
|
13
|
-
component
|
|
14
|
-
);
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import test from "../pure";
|
|
2
|
-
|
|
3
|
-
import { O } from "../../../../examples/react/component/test";
|
|
4
|
-
import { IProps, IState } from "../../../../examples/react/component";
|
|
5
|
-
import component from "../../../../examples/react/component/index";
|
|
6
|
-
import { specification } from "../../../../examples/react/component/test";
|
|
7
|
-
|
|
8
|
-
import { testImplementation } from "./implementation";
|
|
9
|
-
|
|
10
|
-
export default test<O, IProps, IState>(
|
|
11
|
-
testImplementation,
|
|
12
|
-
specification,
|
|
13
|
-
component
|
|
14
|
-
);
|