testeranto 0.197.0 → 0.199.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/.vscode/settings.json +7 -2
- package/design-editor/DesignEditor.tsx +9 -5
- package/dist/common/design-editor/DesignEditor.js +8 -5
- package/dist/common/src/App.js +29 -5
- package/dist/common/src/Node.js +3 -2
- package/dist/common/src/PM/main.js +1 -1
- package/dist/common/src/Pure.js +2 -2
- package/dist/common/src/Web.js +2 -2
- package/dist/common/src/components/DesignEditorPage.js +55 -19
- package/dist/common/src/lib/BaseGiven.js +99 -0
- package/dist/common/src/lib/BaseSuite.test/mock.js +9 -5
- package/dist/common/src/lib/BaseThen.js +64 -0
- package/dist/common/src/lib/BaseWhen.js +45 -0
- package/dist/common/src/lib/Tiposkripto.js +149 -0
- package/dist/common/src/lib/{core.test/MockCore.js → Tiposkripto.test/MockTiposkripto.js} +5 -8
- package/dist/common/src/lib/{core.test/core.test.adapter.js → Tiposkripto.test/Tiposkripto.adapter.js} +10 -8
- package/dist/common/src/lib/{classBuilder.test/classBuilder.test.implementation.js → Tiposkripto.test/Tiposkripto.implementation.js} +44 -61
- package/dist/common/src/lib/Tiposkripto.test/Tiposkripto.js +11 -0
- package/dist/common/src/lib/{classBuilder.test/classBuilder.test.specification.js → Tiposkripto.test/Tiposkripto.specification.js} +13 -9
- package/dist/common/src/lib/abstractBase.test/MockGiven.js +10 -3
- package/dist/common/src/lib/abstractBase.test/MockThen.js +6 -3
- package/dist/common/src/lib/abstractBase.test/MockWhen.js +10 -3
- package/dist/common/src/lib/abstractBase.test/adapter.js +18 -6
- package/dist/common/src/lib/abstractBase.test/implementation.js +3 -3
- package/dist/common/src/lib/mocks.test.js +10 -8
- package/dist/common/src/run.js +15 -4
- package/dist/common/testeranto.config.js +12 -36
- package/dist/common/tsconfig.common.tsbuildinfo +1 -1
- package/dist/module/design-editor/DesignEditor.js +8 -5
- package/dist/module/src/App.js +29 -5
- package/dist/module/src/Node.js +3 -2
- package/dist/module/src/PM/main.js +1 -1
- package/dist/module/src/Pure.js +2 -2
- package/dist/module/src/Web.js +2 -2
- package/dist/module/src/components/DesignEditorPage.js +55 -19
- package/dist/module/src/lib/BaseGiven.js +95 -0
- package/dist/module/src/lib/BaseSuite.test/mock.js +6 -2
- package/dist/module/src/lib/BaseThen.js +60 -0
- package/dist/module/src/lib/BaseWhen.js +41 -0
- package/dist/module/src/lib/Tiposkripto.js +146 -0
- package/dist/module/src/lib/{core.test/MockCore.js → Tiposkripto.test/MockTiposkripto.js} +3 -6
- package/dist/module/src/lib/{core.test/core.test.adapter.js → Tiposkripto.test/Tiposkripto.adapter.js} +10 -8
- package/dist/module/src/lib/{classBuilder.test/classBuilder.test.implementation.js → Tiposkripto.test/Tiposkripto.implementation.js} +44 -58
- package/dist/module/src/lib/Tiposkripto.test/Tiposkripto.js +6 -0
- package/dist/module/src/lib/{classBuilder.test/classBuilder.test.specification.js → Tiposkripto.test/Tiposkripto.specification.js} +12 -8
- package/dist/module/src/lib/abstractBase.test/MockGiven.js +9 -2
- package/dist/module/src/lib/abstractBase.test/MockThen.js +5 -2
- package/dist/module/src/lib/abstractBase.test/MockWhen.js +9 -2
- package/dist/module/src/lib/abstractBase.test/adapter.js +18 -6
- package/dist/module/src/lib/abstractBase.test/implementation.js +3 -3
- package/dist/module/src/lib/mocks.test.js +11 -5
- package/dist/module/src/run.js +15 -4
- package/dist/module/testeranto.config.js +12 -36
- package/dist/module/tsconfig.module.tsbuildinfo +1 -1
- package/dist/prebuild/App.js +1461 -8949
- package/dist/prebuild/run.mjs +25 -14
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/dist/types/src/Node.d.ts +2 -2
- package/dist/types/src/PM/__tests__/nodeSidecar.testeranto.d.ts +1 -15
- package/dist/types/src/PM/__tests__/pureSidecar.testeranto.d.ts +1 -15
- package/dist/types/src/PM/__tests__/webSidecar.testeranto.d.ts +1 -15
- package/dist/types/src/Pure.d.ts +2 -2
- package/dist/types/src/Pure.test.d.ts +1 -58
- package/dist/types/src/ReportServer.test.ts/index.d.ts +1 -28
- package/dist/types/src/Types.d.ts +3 -1
- package/dist/types/src/Web.d.ts +2 -2
- package/dist/types/src/components/pure/AppFrame.test/index.d.ts +1 -3
- package/dist/types/src/components/pure/FeaturesReporterView.test/index.d.ts +1 -1
- package/dist/types/src/components/pure/ModalContent.test/index.d.ts +1 -2
- package/dist/types/src/components/pure/ProjectPageView.test/index.d.ts +1 -1
- package/dist/types/src/components/pure/TestPageView.test/index.d.ts +1 -1
- package/dist/types/src/lib/BaseGiven.d.ts +44 -0
- package/dist/types/src/lib/BaseSuite.d.ts +12 -7
- package/dist/types/src/lib/BaseSuite.test/mock.d.ts +3 -1
- package/dist/types/src/lib/BaseSuite.test/node.test.d.ts +1 -2
- package/dist/types/src/lib/BaseSuite.test/pure.test.d.ts +1 -2
- package/dist/types/src/lib/BaseSuite.test/web.test.d.ts +1 -2
- package/dist/types/src/lib/BaseThen.d.ts +27 -0
- package/dist/types/src/lib/BaseWhen.d.ts +27 -0
- package/dist/types/src/lib/Tiposkripto.d.ts +35 -0
- package/dist/types/src/lib/{core.test/MockCore.d.ts → Tiposkripto.test/MockTiposkripto.d.ts} +3 -3
- package/dist/types/src/lib/{core.test/core.test.adapter.d.ts → Tiposkripto.test/Tiposkripto.adapter.d.ts} +1 -1
- package/dist/types/src/lib/Tiposkripto.test/Tiposkripto.d.ts +2 -0
- package/dist/types/src/lib/{core.test/core.test.implementation.d.ts → Tiposkripto.test/Tiposkripto.implementation.d.ts} +1 -1
- package/dist/types/src/lib/{core.test/core.test.specification.d.ts → Tiposkripto.test/Tiposkripto.specification.d.ts} +1 -1
- package/dist/types/src/lib/{classBuilder.test/classBuilder.test.types.d.ts → Tiposkripto.test/Tiposkripto.types.d.ts} +11 -9
- package/dist/types/src/lib/abstractBase.test/MockGiven.d.ts +3 -1
- package/dist/types/src/lib/abstractBase.test/MockThen.d.ts +1 -1
- package/dist/types/src/lib/abstractBase.test/MockWhen.d.ts +1 -1
- package/dist/types/src/lib/abstractBase.test/index.d.ts +1 -2
- package/dist/types/src/lib/abstractBase.test/types.d.ts +3 -3
- package/dist/types/src/lib/index.d.ts +1 -1
- package/dist/types/src/lib/mocks.test.d.ts +0 -2
- package/dist/types/src/lib/pmProxy.test/index.d.ts +1 -2
- package/dist/types/src/lib/types.d.ts +3 -1
- package/dist/types/src/mothership/test.d.ts +1 -18
- package/dist/types/tsconfig.types.tsbuildinfo +1 -1
- package/package.json +14 -14
- package/src/App.tsx +27 -5
- package/src/Node.ts +3 -2
- package/src/PM/main.ts +1 -1
- package/src/Pure.ts +3 -2
- package/src/Types.ts +5 -3
- package/src/Web.ts +2 -2
- package/src/components/DesignEditorPage.tsx +54 -21
- package/src/lib/BaseGiven.ts +193 -0
- package/src/lib/BaseSuite.test/mock.ts +9 -2
- package/src/lib/BaseSuite.ts +14 -1
- package/src/lib/BaseThen.ts +108 -0
- package/src/lib/BaseWhen.ts +91 -0
- package/src/lib/{core.test/MockCore.ts → Tiposkripto.test/MockTiposkripto.ts} +4 -7
- package/src/lib/{core.test/core.test.adapter.ts → Tiposkripto.test/Tiposkripto.adapter.ts} +12 -11
- package/src/lib/{classBuilder.test/classBuilder.test.implementation.ts → Tiposkripto.test/Tiposkripto.implementation.ts} +75 -78
- package/src/lib/Tiposkripto.test/Tiposkripto.specification.ts +109 -0
- package/src/lib/Tiposkripto.test/Tiposkripto.ts +15 -0
- package/src/lib/{classBuilder.test/classBuilder.test.types.ts → Tiposkripto.test/Tiposkripto.types.ts} +12 -9
- package/src/lib/Tiposkripto.ts +325 -0
- package/src/lib/abstractBase.test/MockGiven.ts +12 -2
- package/src/lib/abstractBase.test/MockThen.ts +7 -2
- package/src/lib/abstractBase.test/MockWhen.ts +10 -2
- package/src/lib/abstractBase.test/adapter.ts +20 -6
- package/src/lib/abstractBase.test/implementation.ts +6 -6
- package/src/lib/abstractBase.test/types.ts +3 -3
- package/src/lib/index.ts +9 -3
- package/src/lib/mocks.test.ts +10 -9
- package/src/lib/types.ts +3 -1
- package/src/run.ts +19 -4
- package/testeranto/App.js +1461 -8949
- package/testeranto/bundles/node/core/src/lib/BaseSuite.test/node.test.mjs +1121 -9
- package/testeranto/bundles/pure/core/src/lib/BaseSuite.test/pure.test.mjs +979 -8
- package/testeranto/bundles/{pure/core/chunk-62UVCSQC.mjs → web/core/src/lib/BaseSuite.test/web.test.mjs} +721 -431
- package/testeranto/metafiles/node/core.json +264 -2180
- package/testeranto/metafiles/pure/core.json +147 -288
- package/testeranto/metafiles/web/core.json +16949 -18
- package/testeranto/reports/core/config.json +8 -40
- package/testeranto/reports/core/src/Pure.test/pure/type_errors.txt +8 -13
- package/testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/error.log +66 -2
- package/testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/info.log +2 -0
- package/testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/prompt.txt +16 -0
- package/testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/tests.json +68 -0
- package/testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/type_errors.txt +56 -0
- package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/error.log +22 -3
- package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/info.log +2 -0
- package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/lint_errors.txt +13 -0
- package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/prompt.txt +16 -0
- package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/tests.json +88 -0
- package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/type_errors.txt +45 -0
- package/testeranto/reports/core/src/components/pure/TestPageView.test/index/web/error.log +0 -3
- package/testeranto/reports/core/src/components/pure/TestPageView.test/index/web/info.log +2 -0
- package/testeranto/reports/core/src/components/pure/TestPageView.test/index/web/lint_errors.txt +47 -0
- package/testeranto/reports/core/src/components/pure/TestPageView.test/index/web/prompt.txt +17 -0
- package/testeranto/reports/core/src/components/pure/TestPageView.test/index/web/tests.json +57 -0
- package/testeranto/reports/core/src/components/pure/TestPageView.test/index/web/type_errors.txt +99 -0
- package/testeranto/reports/core/src/lib/BaseSuite.test/node.test/node/prompt.txt +1 -0
- package/testeranto/reports/core/src/lib/BaseSuite.test/node.test/node/tests.json +7 -9
- package/testeranto/reports/core/src/lib/BaseSuite.test/node.test/node/type_errors.txt +11 -16
- package/testeranto/reports/core/src/lib/BaseSuite.test/pure.test/pure/type_errors.txt +11 -16
- package/testeranto/reports/core/src/lib/BaseSuite.test/web.test/web/error.log +0 -2
- package/testeranto/reports/core/src/lib/BaseSuite.test/web.test/web/prompt.txt +15 -0
- package/testeranto/reports/core/src/lib/BaseSuite.test/web.test/web/tests.json +29 -0
- package/testeranto/reports/core/src/lib/BaseSuite.test/web.test/web/type_errors.txt +56 -0
- package/testeranto/reports/core/src/lib/TipoSkripto.test/TipoSkripto/node/exit.log +1 -0
- package/testeranto/reports/core/src/lib/TipoSkripto.test/TipoSkripto/node/message.txt +17 -0
- package/testeranto/reports/core/src/lib/TipoSkripto.test/TipoSkripto/node/prompt.txt +17 -0
- package/testeranto/reports/core/src/lib/TipoSkripto.test/TipoSkripto/node/stderr.log +18 -0
- package/testeranto/reports/core/src/lib/TipoSkripto.test/TipoSkripto/node/type_errors.txt +32 -0
- package/testeranto/reports/core/src/lib/pmProxy.test/index/node/exit.log +1 -1
- package/testeranto/reports/core/src/lib/pmProxy.test/index/node/stderr.log +60 -82
- package/testeranto/reports/core/src/lib/pmProxy.test/index/node/type_errors.txt +8 -13
- package/testeranto/reports/core/summary.json +23 -36
- package/testeranto.config.ts +14 -41
- package/tsc.log +274 -455
- package/dist/common/src/lib/abstractBase.js +0 -196
- package/dist/common/src/lib/baseBuilder.test/baseBuilder.test.adapter.js +0 -25
- package/dist/common/src/lib/baseBuilder.test/baseBuilder.test.implementation.js +0 -113
- package/dist/common/src/lib/baseBuilder.test/baseBuilder.test.mock.js +0 -46
- package/dist/common/src/lib/baseBuilder.test/baseBuilder.test.node.js +0 -12
- package/dist/common/src/lib/baseBuilder.test/baseBuilder.test.pure.js +0 -12
- package/dist/common/src/lib/baseBuilder.test/baseBuilder.test.specification.js +0 -18
- package/dist/common/src/lib/baseBuilder.test/baseBuilder.test.web.js +0 -12
- package/dist/common/src/lib/basebuilder.js +0 -88
- package/dist/common/src/lib/classBuilder.js +0 -36
- package/dist/common/src/lib/classBuilder.test/classBuilder.test.adapter.js +0 -23
- package/dist/common/src/lib/classBuilder.test/classBuilder.test.js +0 -12
- package/dist/common/src/lib/classBuilder.test/classBuilder.test.types.js +0 -2
- package/dist/common/src/lib/classBuilder.test/mock.js +0 -17
- package/dist/common/src/lib/core.js +0 -45
- package/dist/common/src/lib/core.test/core.test.implementation.js +0 -121
- package/dist/common/src/lib/core.test/core.test.js +0 -63
- package/dist/common/src/lib/core.test/core.test.specification.js +0 -53
- package/dist/common/src/lib/core.test/core.test.types.js +0 -2
- package/dist/module/src/lib/abstractBase.js +0 -190
- package/dist/module/src/lib/baseBuilder.test/baseBuilder.test.adapter.js +0 -22
- package/dist/module/src/lib/baseBuilder.test/baseBuilder.test.implementation.js +0 -110
- package/dist/module/src/lib/baseBuilder.test/baseBuilder.test.mock.js +0 -42
- package/dist/module/src/lib/baseBuilder.test/baseBuilder.test.node.js +0 -7
- package/dist/module/src/lib/baseBuilder.test/baseBuilder.test.pure.js +0 -7
- package/dist/module/src/lib/baseBuilder.test/baseBuilder.test.specification.js +0 -14
- package/dist/module/src/lib/baseBuilder.test/baseBuilder.test.web.js +0 -7
- package/dist/module/src/lib/basebuilder.js +0 -84
- package/dist/module/src/lib/classBuilder.js +0 -32
- package/dist/module/src/lib/classBuilder.test/classBuilder.test.adapter.js +0 -20
- package/dist/module/src/lib/classBuilder.test/classBuilder.test.js +0 -7
- package/dist/module/src/lib/classBuilder.test/classBuilder.test.types.js +0 -1
- package/dist/module/src/lib/classBuilder.test/mock.js +0 -14
- package/dist/module/src/lib/core.js +0 -42
- package/dist/module/src/lib/core.test/core.test.implementation.js +0 -118
- package/dist/module/src/lib/core.test/core.test.js +0 -58
- package/dist/module/src/lib/core.test/core.test.specification.js +0 -49
- package/dist/module/src/lib/core.test/core.test.types.js +0 -1
- package/dist/types/src/lib/abstractBase.d.ts +0 -70
- package/dist/types/src/lib/baseBuilder.test/baseBuilder.test.adapter.d.ts +0 -3
- package/dist/types/src/lib/baseBuilder.test/baseBuilder.test.implementation.d.ts +0 -3
- package/dist/types/src/lib/baseBuilder.test/baseBuilder.test.mock.d.ts +0 -15
- package/dist/types/src/lib/baseBuilder.test/baseBuilder.test.node.d.ts +0 -3
- package/dist/types/src/lib/baseBuilder.test/baseBuilder.test.pure.d.ts +0 -3
- package/dist/types/src/lib/baseBuilder.test/baseBuilder.test.specification.d.ts +0 -3
- package/dist/types/src/lib/baseBuilder.test/baseBuilder.test.types.d.ts +0 -22
- package/dist/types/src/lib/baseBuilder.test/baseBuilder.test.web.d.ts +0 -3
- package/dist/types/src/lib/basebuilder.d.ts +0 -23
- package/dist/types/src/lib/classBuilder.d.ts +0 -15
- package/dist/types/src/lib/classBuilder.test/classBuilder.test.adapter.d.ts +0 -3
- package/dist/types/src/lib/classBuilder.test/classBuilder.test.d.ts +0 -3
- package/dist/types/src/lib/classBuilder.test/classBuilder.test.implementation.d.ts +0 -3
- package/dist/types/src/lib/classBuilder.test/classBuilder.test.specification.d.ts +0 -3
- package/dist/types/src/lib/classBuilder.test/mock.d.ts +0 -14
- package/dist/types/src/lib/core.d.ts +0 -12
- package/dist/types/src/lib/core.test/core.test.d.ts +0 -3
- package/dist/types/src/lib/core.test/core.test.types.d.ts +0 -46
- package/src/lib/abstractBase.ts +0 -351
- package/src/lib/baseBuilder.test/baseBuilder.test.adapter.ts +0 -29
- package/src/lib/baseBuilder.test/baseBuilder.test.implementation.ts +0 -139
- package/src/lib/baseBuilder.test/baseBuilder.test.mock.ts +0 -90
- package/src/lib/baseBuilder.test/baseBuilder.test.node.ts +0 -16
- package/src/lib/baseBuilder.test/baseBuilder.test.pure.ts +0 -16
- package/src/lib/baseBuilder.test/baseBuilder.test.specification.ts +0 -35
- package/src/lib/baseBuilder.test/baseBuilder.test.types.ts +0 -36
- package/src/lib/baseBuilder.test/baseBuilder.test.web.ts +0 -16
- package/src/lib/basebuilder.ts +0 -187
- package/src/lib/classBuilder.test/classBuilder.test.adapter.ts +0 -25
- package/src/lib/classBuilder.test/classBuilder.test.specification.ts +0 -104
- package/src/lib/classBuilder.test/classBuilder.test.ts +0 -14
- package/src/lib/classBuilder.test/mock.ts +0 -83
- package/src/lib/classBuilder.ts +0 -120
- package/src/lib/core.test/core.test.implementation.ts +0 -155
- package/src/lib/core.test/core.test.specification.ts +0 -113
- package/src/lib/core.test/core.test.ts +0 -72
- package/src/lib/core.test/core.test.types.ts +0 -68
- package/src/lib/core.ts +0 -125
- package/testeranto/bundles/node/core/chunk-4CSH4UJE.mjs +0 -872
- package/testeranto/bundles/node/core/chunk-4JTDLQVA.mjs +0 -253
- package/testeranto/bundles/node/core/chunk-C3APFDUV.mjs +0 -70
- package/testeranto/bundles/node/core/src/lib/baseBuilder.test/baseBuilder.test.node.mjs +0 -243
- package/testeranto/bundles/node/core/src/lib/classBuilder.test/classBuilder.test.mjs +0 -411
- package/testeranto/bundles/node/core/src/lib/core.test/core.test.mjs +0 -494
- package/testeranto/bundles/node/core/src/lib/pmProxy.test/index.mjs +0 -4755
- package/testeranto/bundles/pure/core/src/Pure.test.mjs +0 -410
- package/testeranto/bundles/pure/core/src/lib/baseBuilder.test/baseBuilder.test.pure.mjs +0 -241
- package/testeranto/bundles/web/core/src/components/pure/FeaturesReporterView.test/index.html +0 -15
- package/testeranto/bundles/web/core/src/components/pure/ProjectPageView.test/index.html +0 -15
- package/testeranto/bundles/web/core/src/components/pure/TestPageView.test/index.html +0 -15
- package/testeranto/bundles/web/core/src/lib/baseBuilder.test/baseBuilder.test.web.html +0 -15
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.node/node/exit.log +0 -1
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.node/node/lint_errors.txt +0 -10
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.node/node/prompt.txt +0 -17
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.node/node/stdout.log +0 -6
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.node/node/suite-0/given-testInitialization/then-0/butThen/hello.txt +0 -1
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.node/node/suite-0/given-testInitialization/then-1/butThen/artifact_test.txt +0 -1
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.node/node/tests.json +0 -71
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.node/node/type_errors.txt +0 -42
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.pure/pure/lint_errors.txt +0 -10
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.pure/pure/prompt.txt +0 -17
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.pure/pure/type_errors.txt +0 -42
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.web/web/debug.log +0 -0
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.web/web/error.log +0 -3
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.web/web/exit.log +0 -1
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.web/web/info.log +0 -0
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.web/web/warn.log +0 -0
- package/testeranto/reports/core/src/lib/classBuilder.test/classBuilder.test/node/exit.log +0 -1
- package/testeranto/reports/core/src/lib/classBuilder.test/classBuilder.test/node/prompt.txt +0 -17
- package/testeranto/reports/core/src/lib/classBuilder.test/classBuilder.test/node/stderr.log +0 -0
- package/testeranto/reports/core/src/lib/classBuilder.test/classBuilder.test/node/stdout.log +0 -619
- package/testeranto/reports/core/src/lib/classBuilder.test/classBuilder.test/node/tests.json +0 -165
- package/testeranto/reports/core/src/lib/classBuilder.test/classBuilder.test/node/type_errors.txt +0 -88
- package/testeranto/reports/core/src/lib/core.test/core.test/node/exit.log +0 -1
- package/testeranto/reports/core/src/lib/core.test/core.test/node/lint_errors.txt +0 -21
- package/testeranto/reports/core/src/lib/core.test/core.test/node/prompt.txt +0 -19
- package/testeranto/reports/core/src/lib/core.test/core.test/node/stderr.log +0 -0
- package/testeranto/reports/core/src/lib/core.test/core.test/node/type_errors.txt +0 -45
- package/testeranto/reports/core/src/lib/pmProxy.test/index/node/tests.json +0 -152
- package/testeranto/reportsweb_build_errors +0 -546
- /package/dist/common/src/lib/{baseBuilder.test/baseBuilder.test.types.js → Tiposkripto.test/Tiposkripto.types.js} +0 -0
- /package/dist/module/src/lib/{baseBuilder.test/baseBuilder.test.types.js → Tiposkripto.test/Tiposkripto.types.js} +0 -0
- /package/testeranto/reports/core/src/{lib/classBuilder.test/classBuilder.test/node → components/pure/FeaturesReporterView.test/index/web}/lint_errors.txt +0 -0
- /package/testeranto/reports/core/src/{lib/baseBuilder.test/baseBuilder.test.node/node → components/pure/FeaturesReporterView.test/index/web}/message.txt +0 -0
- /package/testeranto/reports/core/src/{lib/baseBuilder.test/baseBuilder.test.pure/pure → components/pure/ProjectPageView.test/index/web}/message.txt +0 -0
- /package/testeranto/reports/core/src/{lib/classBuilder.test/classBuilder.test/node → components/pure/TestPageView.test/index/web}/message.txt +0 -0
- /package/testeranto/reports/core/src/lib/{baseBuilder.test/baseBuilder.test.node/node/stderr.log → BaseSuite.test/web.test/web/lint_errors.txt} +0 -0
- /package/testeranto/reports/core/src/lib/{core.test/core.test/node → BaseSuite.test/web.test/web}/message.txt +0 -0
- /package/testeranto/reports/core/src/lib/{baseBuilder.test/baseBuilder.test.pure/pure/exit.log → TipoSkripto.test/TipoSkripto/node/lint_errors.txt} +0 -0
- /package/testeranto/reports/core/src/lib/{core.test/core.test → TipoSkripto.test/TipoSkripto}/node/stdout.log +0 -0
package/dist/types/src/Node.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import Testeranto from "./lib/core.js";
|
|
2
1
|
import { ITTestResourceRequest } from "./lib/index.js";
|
|
3
2
|
import { ITestSpecification, ITestImplementation, ITestAdapter, Ibdd_in_any, Ibdd_out_any, Ibdd_out } from "./CoreTypes.js";
|
|
4
|
-
|
|
3
|
+
import Tiposkripto from "./lib/Tiposkripto.js";
|
|
4
|
+
export declare class NodeTesteranto<I extends Ibdd_in_any, O extends Ibdd_out_any, M> extends Tiposkripto<I, O, M> {
|
|
5
5
|
constructor(input: I["iinput"], testSpecification: ITestSpecification<I, O>, testImplementation: ITestImplementation<I, O, M>, testResourceRequirement: ITTestResourceRequest, testAdapter: Partial<ITestAdapter<I>>);
|
|
6
6
|
receiveTestResourceConfig(partialTestResource: string): Promise<import("./lib/index.js").IFinalResults>;
|
|
7
7
|
}
|
|
@@ -1,16 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
type O = Ibdd_out<{
|
|
3
|
-
SidecarInitialized: [null];
|
|
4
|
-
}, {
|
|
5
|
-
SidecarReady: [];
|
|
6
|
-
}, {
|
|
7
|
-
SendTestMessage: [string];
|
|
8
|
-
VerifyCleanup: [];
|
|
9
|
-
}, {
|
|
10
|
-
MessageReceived: [string];
|
|
11
|
-
ListenersCleaned: [];
|
|
12
|
-
}>;
|
|
13
|
-
declare const _default: Promise<import("../../lib/core").default<I, O, {
|
|
14
|
-
whens: import("../../Types").TestWhenImplementation<I, O>;
|
|
15
|
-
}>>;
|
|
1
|
+
declare const _default: Promise<Testeranto<I, O, M>>;
|
|
16
2
|
export default _default;
|
|
@@ -1,16 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
type O = Ibdd_out<{
|
|
3
|
-
SidecarInitialized: [null];
|
|
4
|
-
}, {
|
|
5
|
-
SidecarReady: [];
|
|
6
|
-
}, {
|
|
7
|
-
SendTestMessage: [string];
|
|
8
|
-
VerifyCleanup: [];
|
|
9
|
-
}, {
|
|
10
|
-
MessageReceived: [string];
|
|
11
|
-
ListenersCleaned: [];
|
|
12
|
-
}>;
|
|
13
|
-
declare const _default: Promise<import("../../lib/core").default<I, O, {
|
|
14
|
-
whens: import("../../Types").TestWhenImplementation<I, O>;
|
|
15
|
-
}>>;
|
|
1
|
+
declare const _default: Promise<Testeranto<I, O, M>>;
|
|
16
2
|
export default _default;
|
|
@@ -1,16 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
type O = Ibdd_out<{
|
|
3
|
-
SidecarInitialized: [null];
|
|
4
|
-
}, {
|
|
5
|
-
SidecarReady: [];
|
|
6
|
-
}, {
|
|
7
|
-
SendTestMessage: [string];
|
|
8
|
-
VerifyCleanup: [];
|
|
9
|
-
}, {
|
|
10
|
-
MessageReceived: [string];
|
|
11
|
-
ListenersCleaned: [];
|
|
12
|
-
}>;
|
|
13
|
-
declare const _default: Promise<import("../../lib/core").default<I, O, {
|
|
14
|
-
whens: import("../../Types").TestWhenImplementation<I, O>;
|
|
15
|
-
}>>;
|
|
1
|
+
declare const _default: Promise<Testeranto<I, O, M>>;
|
|
16
2
|
export default _default;
|
package/dist/types/src/Pure.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Ibdd_in_any, Ibdd_out, ITestImplementation, ITestAdapter, ITestSpecification } from "./CoreTypes.js";
|
|
2
|
-
import Testeranto from "./lib/core.js";
|
|
3
2
|
import { ITTestResourceRequest } from "./lib/index.js";
|
|
4
|
-
|
|
3
|
+
import Tiposkripto from "./lib/Tiposkripto.js";
|
|
4
|
+
export declare class PureTesteranto<I extends Ibdd_in_any, O extends Ibdd_out, M> extends Tiposkripto<I, O, M> {
|
|
5
5
|
constructor(input: I["iinput"], testSpecification: ITestSpecification<I, O>, testImplementation: ITestImplementation<I, O, M>, testResourceRequirement: ITTestResourceRequest, testAdapter: Partial<ITestAdapter<I>>);
|
|
6
6
|
receiveTestResourceConfig(partialTestResource: string): Promise<import("./lib/index.js").IFinalResults>;
|
|
7
7
|
}
|
|
@@ -1,59 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import { IPM } from "./lib/types";
|
|
3
|
-
type I = Ibdd_in<null, // No initial input needed
|
|
4
|
-
IPM, // Test subject is IPM
|
|
5
|
-
{
|
|
6
|
-
pm: IPM;
|
|
7
|
-
artifacts?: any[];
|
|
8
|
-
testJobs?: any[];
|
|
9
|
-
specs?: any[];
|
|
10
|
-
largePayload?: boolean;
|
|
11
|
-
}, // Store contains PM instance
|
|
12
|
-
{
|
|
13
|
-
pm: IPM;
|
|
14
|
-
}, // Selection is same as store
|
|
15
|
-
() => {
|
|
16
|
-
pm: IPM;
|
|
17
|
-
config: {};
|
|
18
|
-
proxies: any;
|
|
19
|
-
}, // Given returns initial state
|
|
20
|
-
(store: {
|
|
21
|
-
pm: IPM;
|
|
22
|
-
[key: string]: any;
|
|
23
|
-
}) => {
|
|
24
|
-
pm: IPM;
|
|
25
|
-
[key: string]: any;
|
|
26
|
-
}, // When modifies store
|
|
27
|
-
(store: {
|
|
28
|
-
pm: IPM;
|
|
29
|
-
[key: string]: any;
|
|
30
|
-
}) => {
|
|
31
|
-
pm: IPM;
|
|
32
|
-
[key: string]: any;
|
|
33
|
-
}>;
|
|
34
|
-
type O = Ibdd_out<{
|
|
35
|
-
Default: [string];
|
|
36
|
-
}, {
|
|
37
|
-
Default: [];
|
|
38
|
-
}, {
|
|
39
|
-
applyProxy: [string];
|
|
40
|
-
verifyCall: [string, any];
|
|
41
|
-
addArtifact: [Promise<string>];
|
|
42
|
-
setTestJobs: [any[]];
|
|
43
|
-
modifySpecs: [(specs: any) => any[]];
|
|
44
|
-
}, {
|
|
45
|
-
verifyProxy: [string];
|
|
46
|
-
verifyNoProxy: [];
|
|
47
|
-
verifyResourceConfig: [];
|
|
48
|
-
verifyError: [string];
|
|
49
|
-
verifyLargePayload: [];
|
|
50
|
-
verifyTypeSafety: [];
|
|
51
|
-
initializedProperly: [];
|
|
52
|
-
specsGenerated: [];
|
|
53
|
-
jobsCreated: [];
|
|
54
|
-
artifactsTracked: [];
|
|
55
|
-
testRunSuccessful: [];
|
|
56
|
-
specsModified: [number];
|
|
57
|
-
}>;
|
|
58
|
-
declare const _default: Promise<number | import("./lib/core").default<I, O, {}>>;
|
|
1
|
+
declare const _default: Promise<any>;
|
|
59
2
|
export default _default;
|
|
@@ -1,29 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import { Ibdd_in, Ibdd_out } from "../CoreTypes";
|
|
3
|
-
import { PM_Node } from "../PM/node";
|
|
4
|
-
type O = Ibdd_out<{
|
|
5
|
-
Default: [];
|
|
6
|
-
}, {
|
|
7
|
-
"the http server which is used in development": [];
|
|
8
|
-
}, {}, {
|
|
9
|
-
"the frontpage looks good": [];
|
|
10
|
-
"the projects page looks good": [];
|
|
11
|
-
"a project page looks good": [];
|
|
12
|
-
"a test page looks good": [];
|
|
13
|
-
}>;
|
|
14
|
-
type I = Ibdd_in<(port: number) => Server<typeof IncomingMessage, typeof ServerResponse>, number, Server<typeof IncomingMessage, typeof ServerResponse>, number, Server<typeof IncomingMessage, typeof ServerResponse>, Server<typeof IncomingMessage, typeof ServerResponse>, Server<typeof IncomingMessage, typeof ServerResponse>>;
|
|
15
|
-
type M = {
|
|
16
|
-
givens: {
|
|
17
|
-
[K in keyof O["givens"]]: (...args: any[]) => IProjectPageViewProps;
|
|
18
|
-
};
|
|
19
|
-
whens: {
|
|
20
|
-
[K in keyof O["whens"]]: (...args: any[]) => (props: IProjectPageViewProps, utils: any) => IProjectPageViewProps & {
|
|
21
|
-
container?: HTMLElement;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
thens: {
|
|
25
|
-
[K in keyof O["thens"]]: (port: number, pm: PM_Node) => void;
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
declare const _default: Promise<import("../lib/core").default<I, O, M>>;
|
|
1
|
+
declare const _default: Promise<Testeranto<I, O, M>>;
|
|
29
2
|
export default _default;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { Plugin } from "esbuild";
|
|
2
2
|
import { ITTestResourceConfiguration } from "./lib/index.js";
|
|
3
3
|
import { PM } from "./PM/index.js";
|
|
4
|
-
import { BaseWhen, BaseThen, BaseGiven, IGivens } from "./lib/abstractBase.js";
|
|
5
4
|
import { Ibdd_in_any, Ibdd_out_any } from "./CoreTypes.js";
|
|
6
5
|
import { BaseSuite } from "./lib/BaseSuite.js";
|
|
6
|
+
import { IGivens, BaseGiven } from "./lib/BaseGiven.js";
|
|
7
|
+
import { BaseThen } from "./lib/BaseThen.js";
|
|
8
|
+
import { BaseWhen } from "./lib/BaseWhen.js";
|
|
7
9
|
export type ISummary = Record<string, {
|
|
8
10
|
runTimeErrors: number | "?" | undefined;
|
|
9
11
|
typeErrors: number | "?" | undefined;
|
package/dist/types/src/Web.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ITestSpecification, ITestImplementation, ITestAdapter, Ibdd_in_any, Ibdd_out } from "./CoreTypes";
|
|
2
|
-
import
|
|
2
|
+
import Tiposkripto from "./lib/Tiposkripto";
|
|
3
3
|
import { ITTestResourceRequest } from "./lib/index.js";
|
|
4
|
-
export declare class WebTesteranto<I extends Ibdd_in_any, O extends Ibdd_out, M> extends
|
|
4
|
+
export declare class WebTesteranto<I extends Ibdd_in_any, O extends Ibdd_out, M> extends Tiposkripto<I, O, M> {
|
|
5
5
|
constructor(input: I["iinput"], testSpecification: ITestSpecification<I, O>, testImplementation: ITestImplementation<I, O, M>, testResourceRequirement: ITTestResourceRequest, testAdapter: Partial<ITestAdapter<I>>);
|
|
6
6
|
receiveTestResourceConfig(partialTestResource: any): Promise<import("./lib/index.js").IFinalResults>;
|
|
7
7
|
}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
import "../../../App.scss";
|
|
2
|
-
declare const _default: Promise<
|
|
3
|
-
whens: import("../../../Types").TestWhenImplementation<import("./types").I, import("./types").O>;
|
|
4
|
-
}>>;
|
|
2
|
+
declare const _default: Promise<Testeranto<I, O, M>>;
|
|
5
3
|
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: Promise<
|
|
1
|
+
declare const _default: Promise<Testeranto<I, O, M>>;
|
|
2
2
|
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: Promise<
|
|
1
|
+
declare const _default: Promise<Testeranto<I, O, M>>;
|
|
2
2
|
export default _default;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { Ibdd_in_any } from "../CoreTypes";
|
|
2
|
+
import { ITestArtifactory, ITLog, ITTestResourceConfiguration } from ".";
|
|
3
|
+
import { IPM } from "./types.js";
|
|
4
|
+
/**
|
|
5
|
+
* Represents a collection of Given conditions keyed by their names.
|
|
6
|
+
* Givens are typically organized as named collections because:
|
|
7
|
+
* - They set up different initial states for tests
|
|
8
|
+
* - Tests often need to reference specific Given conditions by name
|
|
9
|
+
* - This allows for better organization and reuse of setup logic
|
|
10
|
+
* - The BDD pattern often involves multiple named Given scenarios
|
|
11
|
+
*/
|
|
12
|
+
export type IGivens<I extends Ibdd_in_any> = Record<string, BaseGiven<I>>;
|
|
13
|
+
export declare abstract class BaseGiven<I extends Ibdd_in_any> {
|
|
14
|
+
name: string;
|
|
15
|
+
features: string[];
|
|
16
|
+
whens: any[];
|
|
17
|
+
thens: any[];
|
|
18
|
+
error: Error;
|
|
19
|
+
fail: any;
|
|
20
|
+
store: I["istore"];
|
|
21
|
+
recommendedFsPath: string;
|
|
22
|
+
givenCB: I["given"];
|
|
23
|
+
initialValues: any;
|
|
24
|
+
key: string;
|
|
25
|
+
failed: boolean;
|
|
26
|
+
artifacts: string[];
|
|
27
|
+
addArtifact(path: string): void;
|
|
28
|
+
constructor(name: string, features: string[], whens: any[], thens: any[], givenCB: I["given"], initialValues: any);
|
|
29
|
+
beforeAll(store: I["istore"]): I["istore"];
|
|
30
|
+
toObj(): {
|
|
31
|
+
key: string;
|
|
32
|
+
name: string;
|
|
33
|
+
whens: any[];
|
|
34
|
+
thens: any[];
|
|
35
|
+
error: (string | Error | undefined)[] | null;
|
|
36
|
+
failed: boolean;
|
|
37
|
+
features: string[];
|
|
38
|
+
artifacts: string[];
|
|
39
|
+
};
|
|
40
|
+
abstract givenThat(subject: I["isubject"], testResourceConfiguration: any, artifactory: ITestArtifactory, givenCB: I["given"], initialValues: any, pm: IPM): Promise<I["istore"]>;
|
|
41
|
+
afterEach(store: I["istore"], key: string, artifactory: ITestArtifactory, pm: IPM): Promise<I["istore"]>;
|
|
42
|
+
abstract uberCatcher(e: any): any;
|
|
43
|
+
give(subject: I["isubject"], key: string, testResourceConfiguration: ITTestResourceConfiguration, tester: (t: Awaited<I["then"]> | undefined) => boolean, artifactory: ITestArtifactory, tLog: ITLog, pm: IPM, suiteNdx: number): Promise<I["istore"]>;
|
|
44
|
+
}
|
|
@@ -1,7 +1,16 @@
|
|
|
1
1
|
import { ITTestResourceConfiguration, ITestArtifactory } from ".";
|
|
2
2
|
import { Ibdd_in_any, Ibdd_out_any } from "../CoreTypes";
|
|
3
|
-
import { IGivens } from "./
|
|
3
|
+
import { IGivens } from "./BaseGiven";
|
|
4
4
|
import { IPM } from "./types";
|
|
5
|
+
/**
|
|
6
|
+
* Represents a collection of test suites keyed by their names.
|
|
7
|
+
* Suites are organized as named collections because:
|
|
8
|
+
* - Tests are typically grouped into logical suites (e.g., by feature, component)
|
|
9
|
+
* - Suites may have different configurations or setup requirements
|
|
10
|
+
* - Named suites allow for selective test execution and better reporting
|
|
11
|
+
* - This supports the hierarchical structure of test organization
|
|
12
|
+
*/
|
|
13
|
+
export type ISuites<I extends Ibdd_in_any, O extends Ibdd_out_any> = Record<string, BaseSuite<I, O>>;
|
|
5
14
|
export declare abstract class BaseSuite<I extends Ibdd_in_any, O extends Ibdd_out_any> {
|
|
6
15
|
name: string;
|
|
7
16
|
givens: IGivens<I>;
|
|
@@ -19,12 +28,8 @@ export declare abstract class BaseSuite<I extends Ibdd_in_any, O extends Ibdd_ou
|
|
|
19
28
|
givens: {
|
|
20
29
|
key: string;
|
|
21
30
|
name: string;
|
|
22
|
-
whens:
|
|
23
|
-
thens:
|
|
24
|
-
name: string;
|
|
25
|
-
error: boolean;
|
|
26
|
-
artifacts: string[];
|
|
27
|
-
}[];
|
|
31
|
+
whens: any[];
|
|
32
|
+
thens: any[];
|
|
28
33
|
error: (string | Error | undefined)[] | null;
|
|
29
34
|
failed: boolean;
|
|
30
35
|
features: string[];
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import { BaseGiven
|
|
1
|
+
import { BaseGiven } from "../BaseGiven";
|
|
2
2
|
import { BaseSuite } from "../BaseSuite";
|
|
3
|
+
import { BaseThen } from "../BaseThen";
|
|
4
|
+
import { BaseWhen } from "../BaseWhen";
|
|
3
5
|
import { IPM } from "../types";
|
|
4
6
|
import { I, TestStore, TestSelection, O } from "./test";
|
|
5
7
|
export declare class MockGiven extends BaseGiven<I> {
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { Ibdd_in_any } from "../CoreTypes";
|
|
2
|
+
import { ITLog, ITTestResourceConfiguration } from ".";
|
|
3
|
+
import { IPM } from "./types.js";
|
|
4
|
+
export declare abstract class BaseThen<I extends Ibdd_in_any> {
|
|
5
|
+
name: string;
|
|
6
|
+
thenCB: (storeState: I["iselection"], pm: IPM) => Promise<I["then"]>;
|
|
7
|
+
error: boolean;
|
|
8
|
+
artifacts: string[];
|
|
9
|
+
constructor(name: string, thenCB: (val: I["iselection"]) => Promise<I["then"]>);
|
|
10
|
+
addArtifact(path: string): void;
|
|
11
|
+
toObj(): {
|
|
12
|
+
name: string;
|
|
13
|
+
error: boolean;
|
|
14
|
+
artifacts: string[];
|
|
15
|
+
};
|
|
16
|
+
abstract butThen(store: I["istore"], thenCB: (s: I["iselection"]) => Promise<I["isubject"]>, testResourceConfiguration: ITTestResourceConfiguration, pm: IPM): Promise<I["iselection"]>;
|
|
17
|
+
test(store: I["istore"], testResourceConfiguration: any, tLog: ITLog, pm: IPM, filepath: string): Promise<I["then"] | undefined>;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Represents a collection of Then assertions keyed by their names.
|
|
21
|
+
* Thens are typically part of Given definitions rather than standalone collections,
|
|
22
|
+
* but this type exists for consistency and potential future use cases where:
|
|
23
|
+
* - Assertions might need to be reused or composed dynamically
|
|
24
|
+
* - Custom assertion libraries could benefit from named assertion collections
|
|
25
|
+
* - Advanced validation patterns require named Then conditions
|
|
26
|
+
*/
|
|
27
|
+
export type IThens<I extends Ibdd_in_any> = Record<string, BaseThen<I>>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { Ibdd_in_any } from "../CoreTypes";
|
|
2
|
+
import { ITLog } from ".";
|
|
3
|
+
import { IPM } from "./types.js";
|
|
4
|
+
export declare abstract class BaseWhen<I extends Ibdd_in_any> {
|
|
5
|
+
name: string;
|
|
6
|
+
whenCB: (x: I["iselection"]) => I["then"];
|
|
7
|
+
error: Error;
|
|
8
|
+
artifacts: string[];
|
|
9
|
+
addArtifact(path: string): void;
|
|
10
|
+
constructor(name: string, whenCB: (xyz: I["iselection"]) => I["then"]);
|
|
11
|
+
abstract andWhen(store: I["istore"], whenCB: (x: I["iselection"]) => I["then"], testResource: any, pm: IPM): Promise<any>;
|
|
12
|
+
toObj(): {
|
|
13
|
+
name: string;
|
|
14
|
+
error: string | null;
|
|
15
|
+
artifacts: string[];
|
|
16
|
+
};
|
|
17
|
+
test(store: I["istore"], testResourceConfiguration: any, tLog: ITLog, pm: IPM, filepath: string): Promise<any>;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Represents a collection of When actions keyed by their names.
|
|
21
|
+
* Whens are typically part of Given definitions rather than standalone collections,
|
|
22
|
+
* but this type exists for consistency and potential future use cases where:
|
|
23
|
+
* - When actions might need to be reused across multiple Given conditions
|
|
24
|
+
* - Dynamic composition of test steps is required
|
|
25
|
+
* - Advanced test patterns need to reference When actions by name
|
|
26
|
+
*/
|
|
27
|
+
export type IWhens<I extends Ibdd_in_any> = Record<string, BaseWhen<I>>;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { NonEmptyObject } from "type-fest";
|
|
2
|
+
import type { Ibdd_in_any, Ibdd_out_any, ITestImplementation, ITestSpecification, ITestAdapter } from "../CoreTypes";
|
|
3
|
+
import { ITestJob, IFinalResults, ITTestResourceRequest } from "./index.js";
|
|
4
|
+
import { BaseGiven } from "./BaseGiven";
|
|
5
|
+
import { BaseWhen } from "./BaseWhen.js";
|
|
6
|
+
import { BaseThen } from "./BaseThen.js";
|
|
7
|
+
import { IPM } from "./types.js";
|
|
8
|
+
type IExtenstions = Record<string, unknown>;
|
|
9
|
+
export default abstract class Tiposkripto<I extends Ibdd_in_any = Ibdd_in_any, O extends Ibdd_out_any = Ibdd_out_any, M = unknown> {
|
|
10
|
+
abstract receiveTestResourceConfig(partialTestResource: string): Promise<IFinalResults>;
|
|
11
|
+
specs: any;
|
|
12
|
+
assertThis: (t: I["then"]) => any;
|
|
13
|
+
testResourceRequirement: ITTestResourceRequest;
|
|
14
|
+
artifacts: Promise<unknown>[];
|
|
15
|
+
testJobs: ITestJob[];
|
|
16
|
+
testSpecification: ITestSpecification<I, O>;
|
|
17
|
+
suitesOverrides: Record<keyof IExtenstions, any>;
|
|
18
|
+
givenOverides: Record<keyof IExtenstions, any>;
|
|
19
|
+
whenOverides: Record<keyof IExtenstions, any>;
|
|
20
|
+
thenOverides: Record<keyof IExtenstions, any>;
|
|
21
|
+
puppetMaster: IPM;
|
|
22
|
+
constructor(input: I["iinput"], testSpecification: ITestSpecification<I, O>, testImplementation: ITestImplementation<I, O, M> & {
|
|
23
|
+
suites: Record<string, NonEmptyObject<object>>;
|
|
24
|
+
givens: Record<string, any>;
|
|
25
|
+
whens: Record<string, any>;
|
|
26
|
+
thens: Record<string, any>;
|
|
27
|
+
}, testResourceRequirement?: ITTestResourceRequest, testAdapter?: Partial<ITestAdapter<I>>, uberCatcher?: (cb: () => void) => void);
|
|
28
|
+
Specs(): any;
|
|
29
|
+
Suites(): Record<string, any>;
|
|
30
|
+
Given(): Record<keyof IExtenstions, (name: string, features: string[], whens: BaseWhen<I>[], thens: BaseThen<I>[], gcb: I["given"]) => BaseGiven<I>>;
|
|
31
|
+
When(): Record<keyof IExtenstions, (arg0: I["istore"], ...arg1: any) => BaseWhen<I>>;
|
|
32
|
+
Then(): Record<keyof IExtenstions, (selection: I["iselection"], expectation: any) => BaseThen<I>>;
|
|
33
|
+
getTestJobs(): ITestJob[];
|
|
34
|
+
}
|
|
35
|
+
export {};
|
package/dist/types/src/lib/{core.test/MockCore.d.ts → Tiposkripto.test/MockTiposkripto.d.ts}
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import Tiposkripto from "../Tiposkripto";
|
|
2
2
|
import { Ibdd_in_any, Ibdd_out_any, ITestImplementation, ITestSpecification, ITestAdapter } from "../../CoreTypes";
|
|
3
3
|
import { ITTestResourceRequest, IFinalResults } from "..";
|
|
4
4
|
/**
|
|
5
|
-
* Concrete implementation of
|
|
5
|
+
* Concrete implementation of Tiposkripto for testing purposes
|
|
6
6
|
*/
|
|
7
|
-
export declare class
|
|
7
|
+
export declare class MockTiposkripto<I extends Ibdd_in_any, O extends Ibdd_out_any, M = unknown> extends Tiposkripto<I, O, M> {
|
|
8
8
|
specs: any[];
|
|
9
9
|
testJobs: any[];
|
|
10
10
|
artifacts: any[];
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Ibdd_in, Ibdd_out, ITestImplementation, ITestSpecification } from "../../CoreTypes";
|
|
2
|
-
import { ClassBuilder } from "../classBuilder";
|
|
1
|
+
import { Ibdd_in, Ibdd_out, ITestImplementation, ITestSpecification, ITestAdapter } from "../../CoreTypes";
|
|
3
2
|
import { ITestJob, ITTestResourceRequest } from "..";
|
|
3
|
+
import Tiposkripto from "../Tiposkripto";
|
|
4
4
|
export type I = Ibdd_in<{}, // iinput
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
() =>
|
|
5
|
+
Tiposkripto<any, any, any>, // isubject
|
|
6
|
+
Tiposkripto<any, any, any>, // istore
|
|
7
|
+
Tiposkripto<any, any, any>, // iselection
|
|
8
|
+
() => Tiposkripto<any, any, any>, // given
|
|
9
9
|
(store: any) => any, // when
|
|
10
10
|
(store: any) => any>;
|
|
11
11
|
export type O = Ibdd_out<{
|
|
@@ -17,6 +17,7 @@ export type O = Ibdd_out<{
|
|
|
17
17
|
WithResourceRequirements: [requirements: ITTestResourceRequest];
|
|
18
18
|
WithCustomImplementation: [impl: ITestImplementation<any, any>];
|
|
19
19
|
WithCustomSpecification: [spec: ITestSpecification<any, any>];
|
|
20
|
+
WithCustomAdapter: [adapter: Partial<ITestAdapter<any>>];
|
|
20
21
|
}, {
|
|
21
22
|
addArtifact: [artifact: Promise<any>];
|
|
22
23
|
setTestJobs: [jobs: ITestJob[]];
|
|
@@ -33,6 +34,7 @@ export type O = Ibdd_out<{
|
|
|
33
34
|
givensOverridesConfigured: [];
|
|
34
35
|
whensOverridesConfigured: [];
|
|
35
36
|
thensOverridesConfigured: [];
|
|
37
|
+
interfaceConfigured: [];
|
|
36
38
|
specsModified: [expectedCount: number];
|
|
37
39
|
jobsModified: [expectedCount: number];
|
|
38
40
|
errorThrown: [expectedMessage: string];
|
|
@@ -40,12 +42,12 @@ export type O = Ibdd_out<{
|
|
|
40
42
|
}>;
|
|
41
43
|
export type M = {
|
|
42
44
|
givens: {
|
|
43
|
-
[K in keyof O["givens"]]: (...args: O["givens"][K]) =>
|
|
45
|
+
[K in keyof O["givens"]]: (...args: O["givens"][K]) => Tiposkripto<any, any, any>;
|
|
44
46
|
};
|
|
45
47
|
whens: {
|
|
46
|
-
[K in keyof O["whens"]]: (...args: O["whens"][K]) => (builder:
|
|
48
|
+
[K in keyof O["whens"]]: (...args: O["whens"][K]) => (builder: Tiposkripto<any, any, any>) => Tiposkripto<any, any, any>;
|
|
47
49
|
};
|
|
48
50
|
thens: {
|
|
49
|
-
[K in keyof O["thens"]]: (...args: O["thens"][K]) => (builder:
|
|
51
|
+
[K in keyof O["thens"]]: (...args: O["thens"][K]) => (builder: Tiposkripto<any, any, any>) => Tiposkripto<any, any, any>;
|
|
50
52
|
};
|
|
51
53
|
};
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import { BaseGiven, BaseThen, BaseWhen } from "../abstractBase";
|
|
2
1
|
import { Ibdd_in_any } from "../../CoreTypes";
|
|
2
|
+
import { BaseGiven } from "../BaseGiven";
|
|
3
|
+
import { BaseThen } from "../BaseThen";
|
|
4
|
+
import { BaseWhen } from "../BaseWhen";
|
|
3
5
|
export declare class MockGiven<I extends Ibdd_in_any> extends BaseGiven<I> {
|
|
4
6
|
constructor(name: string, features: string[], whens: BaseWhen<I>[], thens: BaseThen<I>[], givenCB: I["given"], initialValues: any);
|
|
5
7
|
givenThat(subject: I["isubject"], testResourceConfiguration: any, artifactory: any, givenCB: I["given"], initialValues: any, pm: any): Promise<I["istore"]>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BaseThen } from "../abstractBase";
|
|
2
1
|
import { Ibdd_in_any } from "../../CoreTypes";
|
|
2
|
+
import { BaseThen } from "../BaseThen";
|
|
3
3
|
export declare class MockThen<I extends Ibdd_in_any> extends BaseThen<I> {
|
|
4
4
|
constructor(name: string, thenCB: (val: I["iselection"]) => Promise<I["then"]>);
|
|
5
5
|
butThen(store: I["istore"], thenCB: (s: I["iselection"]) => Promise<I["isubject"]>, testResourceConfiguration: any, pm: any): Promise<I["iselection"]>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BaseWhen } from "../abstractBase";
|
|
2
1
|
import { Ibdd_in_any } from "../../CoreTypes";
|
|
2
|
+
import { BaseWhen } from "../BaseWhen";
|
|
3
3
|
export declare class MockWhen<I extends Ibdd_in_any> extends BaseWhen<I> {
|
|
4
4
|
constructor(name: string, whenCB: (x: I["iselection"]) => I["then"]);
|
|
5
5
|
andWhen(store: I["istore"], whenCB: (x: I["iselection"]) => I["then"], testResource: any, pm: any): Promise<I["istore"]>;
|
|
@@ -12,13 +12,13 @@ export type I = Ibdd_in<{}, // iinput
|
|
|
12
12
|
selected: boolean;
|
|
13
13
|
};
|
|
14
14
|
}, // iselection
|
|
15
|
-
() => {
|
|
15
|
+
() => () => {
|
|
16
16
|
testStore: {
|
|
17
17
|
value: string;
|
|
18
18
|
};
|
|
19
19
|
}, // given
|
|
20
|
-
(store: any) => any, // when
|
|
21
|
-
(store: any) => any>;
|
|
20
|
+
(store: any) => (store: any) => any, // when
|
|
21
|
+
(store: any) => (store: any) => any>;
|
|
22
22
|
export type O = Ibdd_out<{
|
|
23
23
|
Default: [string];
|
|
24
24
|
}, // Suites
|
|
@@ -3,7 +3,7 @@ import { PM_Node } from "../PM/node";
|
|
|
3
3
|
import { PM_Pure } from "../PM/pure";
|
|
4
4
|
import { PM_Web } from "../PM/web";
|
|
5
5
|
import { ITestconfig, IBuiltConfig, IRunTime, ITestTypes } from "../Types";
|
|
6
|
-
import { IGivens } from "./
|
|
6
|
+
import { IGivens } from "./BaseGiven";
|
|
7
7
|
import { BaseSuite } from "./BaseSuite";
|
|
8
8
|
export declare const BaseAdapter: <T extends Ibdd_in_any>() => ITestAdapter<T>;
|
|
9
9
|
export declare const DefaultAdapter: <T extends Ibdd_in_any>(p: Partial<ITestAdapter<T>>) => ITestAdapter<T>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { I } from "./types";
|
|
2
1
|
import { IProxy } from "../pmProxy";
|
|
3
2
|
export type ITestProxies = {
|
|
4
3
|
butThenProxy: IProxy;
|
|
5
4
|
};
|
|
6
|
-
declare const _default: Promise<
|
|
5
|
+
declare const _default: Promise<Testeranto<I, O, M>>;
|
|
7
6
|
export default _default;
|
|
@@ -2,8 +2,10 @@ import type { Ibdd_in_any, Ibdd_out_any } from "../CoreTypes";
|
|
|
2
2
|
import { PM_Node } from "../PM/node";
|
|
3
3
|
import { PM_Pure } from "../PM/pure";
|
|
4
4
|
import { PM_Web } from "../PM/web";
|
|
5
|
-
import { IGivens, BaseGiven
|
|
5
|
+
import { IGivens, BaseGiven } from "./BaseGiven";
|
|
6
6
|
import { BaseSuite } from "./BaseSuite";
|
|
7
|
+
import { BaseThen } from "./BaseThen";
|
|
8
|
+
import { BaseWhen } from "./BaseWhen";
|
|
7
9
|
export type IPM = PM_Node | PM_Web | PM_Pure;
|
|
8
10
|
export type ThemeType = "system" | "light" | "dark" | "light-vibrant" | "dark-vibrant" | "sepia" | "light-grayscale" | "dark-grayscale" | "daily" | "protanopia" | "deuteranopia" | "tritanopia";
|
|
9
11
|
export type TestPhase = "beforeAll" | "beforeEach" | "test" | "afterEach" | "afterAll";
|
|
@@ -1,19 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import type { Express } from "express";
|
|
3
|
-
type I = Ibdd_in<(port: number) => Express, (port: number) => Express, any, any, any, any, any>;
|
|
4
|
-
type O = Ibdd_out<{
|
|
5
|
-
TheMothership: [null];
|
|
6
|
-
}, {
|
|
7
|
-
ItIsRunning: [];
|
|
8
|
-
}, {
|
|
9
|
-
IClaimTheResource: [string];
|
|
10
|
-
IReleaseTheResource: [string];
|
|
11
|
-
IResetTheResource: [string];
|
|
12
|
-
}, {
|
|
13
|
-
TheResourceIsClaimed: [string];
|
|
14
|
-
TheResourceIsUnClaimed: [string];
|
|
15
|
-
}>;
|
|
16
|
-
declare const _default: Promise<import("../lib/core").default<Ibdd_in_any, O, {
|
|
17
|
-
whens: import("../Types").TestWhenImplementation<I, O>;
|
|
18
|
-
}>>;
|
|
1
|
+
declare const _default: Promise<Testeranto<I, O, M>>;
|
|
19
2
|
export default _default;
|