testeranto 0.189.0 → 0.197.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/ALL_LICENSES.txt +11246 -0
- package/LICENSE +21 -0
- package/default-project.json +44 -0
- package/design-editor/DesignEditor.tsx +247 -0
- package/design-editor/index.ts +2 -0
- package/design-editor/server.ts +121 -0
- package/design-editor/types.ts +16 -0
- package/designs/default-project.json +210 -0
- package/dist/common/design-editor/DesignEditor.js +239 -0
- package/dist/common/design-editor/index.js +18 -0
- package/dist/common/design-editor/server.js +98 -0
- package/dist/common/design-editor/types.js +2 -0
- package/dist/common/src/App.js +11 -1
- package/dist/common/src/PM/PM_WithEslintAndTsc.js +8 -1
- package/dist/common/src/PM/base.js +1 -0
- package/dist/common/src/PM/main.js +370 -4
- package/dist/common/src/PM/node.js +4 -2
- package/dist/common/src/PM/pure.js +15 -57
- package/dist/common/src/PM/web.js +5 -3
- package/dist/common/src/Pure.test.js +46 -78
- package/dist/common/src/ReportServer.js +8 -2
- package/dist/common/src/build.js +1 -1
- package/dist/common/src/components/DesignEditorPage.js +169 -0
- package/dist/common/src/components/pure/AppFrame.js +62 -13
- package/dist/common/src/components/pure/ModalContent.test/implementation.js +13 -11
- package/dist/common/src/components/pure/ModalContent.test/index.js +48 -2
- package/dist/common/src/components/pure/ModalContent.test/specification.js +2 -2
- package/dist/common/src/components/pure/NavBar.js +9 -10
- package/dist/common/src/components/pure/ProcessManager.js +112 -0
- package/dist/common/src/components/pure/ProcessManagerView.js +237 -0
- package/dist/common/src/components/pure/ProjectPageView.test/implementation.js +134 -106
- package/dist/common/src/components/pure/ProjectsPageView.js +18 -12
- package/dist/common/src/components/pure/SettingsButton.js +4 -74
- package/dist/common/src/components/pure/SingleProcessView.js +214 -0
- package/dist/common/src/components/pure/TestPageView.js +457 -78
- package/dist/common/src/components/pure/TestPageView.test/implementation.js +90 -135
- package/dist/common/src/components/stateful/FeaturesReporter.js +1 -1
- package/dist/common/src/components/stateful/FileTree.js +40 -0
- package/dist/common/src/components/stateful/ProcessManagerPage.js +112 -0
- package/dist/common/src/components/stateful/ProjectPage.js +6 -5
- package/dist/common/src/components/stateful/ProjectsPage.js +32 -6
- package/dist/common/src/components/stateful/SettingsPage.js +72 -0
- package/dist/common/src/components/stateful/SingleProcessPage.js +147 -0
- package/dist/common/src/components/stateful/TestPage.js +104 -8
- package/dist/common/src/components/stateful/TextEditorPage.js +154 -0
- package/dist/common/src/esbuildConfigs/inputFilesPlugin.js +3 -4
- package/dist/common/src/lib/BaseSuite.js +6 -3
- package/dist/common/src/lib/BaseSuite.test/mock.js +17 -30
- package/dist/common/src/lib/BaseSuite.test/test.js +33 -31
- package/dist/common/src/lib/abstractBase.js +28 -8
- package/dist/common/src/lib/baseBuilder.test/baseBuilder.test.adapter.js +12 -6
- package/dist/common/src/lib/baseBuilder.test/baseBuilder.test.implementation.js +12 -12
- package/dist/common/src/lib/basebuilder.js +1 -9
- package/dist/common/src/lib/classBuilder.js +3 -3
- package/dist/common/src/lib/core.js +3 -5
- package/dist/common/src/lib/index.js +11 -14
- package/dist/common/src/lib/pmProxy.js +37 -14
- package/dist/common/src/lib/pmProxy.test/adapter.js +12 -2
- package/dist/common/src/lib/pmProxy.test/implementation.js +73 -43
- package/dist/common/src/lib/pmProxy.test/specification.js +3 -0
- package/dist/common/src/utils/api.js +44 -33
- package/dist/common/src/utils/logFiles.js +48 -22
- package/dist/common/src/utils/makePrompt.js +5 -4
- package/dist/common/testeranto.config.js +15 -13
- package/dist/common/tsconfig.common.tsbuildinfo +1 -1
- package/dist/module/design-editor/DesignEditor.js +203 -0
- package/dist/module/design-editor/index.js +2 -0
- package/dist/module/design-editor/server.js +92 -0
- package/dist/module/src/App.js +11 -1
- package/dist/module/src/PM/PM_WithEslintAndTsc.js +8 -1
- package/dist/module/src/PM/base.js +1 -0
- package/dist/module/src/PM/main.js +370 -4
- package/dist/module/src/PM/node.js +4 -2
- package/dist/module/src/PM/pure.js +15 -57
- package/dist/module/src/PM/web.js +5 -3
- package/dist/module/src/Pure.test.js +46 -78
- package/dist/module/src/ReportServer.js +8 -2
- package/dist/module/src/build.js +1 -1
- package/dist/module/src/components/DesignEditorPage.js +132 -0
- package/dist/module/src/components/pure/AppFrame.js +30 -11
- package/dist/module/src/components/pure/ModalContent.test/implementation.js +13 -11
- package/dist/module/src/components/pure/ModalContent.test/index.js +48 -2
- package/dist/module/src/components/pure/ModalContent.test/specification.js +2 -2
- package/dist/module/src/components/pure/NavBar.js +10 -11
- package/dist/module/src/components/pure/ProcessManager.js +75 -0
- package/dist/module/src/components/pure/ProcessManagerView.js +200 -0
- package/dist/module/src/components/pure/ProjectPageView.test/implementation.js +134 -106
- package/dist/module/src/components/pure/ProjectsPageView.js +20 -14
- package/dist/module/src/components/pure/SettingsButton.js +5 -42
- package/dist/module/src/components/pure/SingleProcessView.js +214 -0
- package/dist/module/src/components/pure/TestPageView.js +425 -76
- package/dist/module/src/components/pure/TestPageView.test/implementation.js +90 -135
- package/dist/module/src/components/stateful/FeaturesReporter.js +1 -1
- package/dist/module/src/components/stateful/FileTree.js +33 -0
- package/dist/module/src/components/stateful/ProcessManagerPage.js +75 -0
- package/dist/module/src/components/stateful/ProjectPage.js +6 -5
- package/dist/module/src/components/stateful/ProjectsPage.js +32 -6
- package/dist/module/src/components/stateful/SettingsPage.js +35 -0
- package/dist/module/src/components/stateful/SingleProcessPage.js +110 -0
- package/dist/module/src/components/stateful/TestPage.js +104 -8
- package/dist/module/src/components/stateful/TextEditorPage.js +117 -0
- package/dist/module/src/esbuildConfigs/inputFilesPlugin.js +3 -4
- package/dist/module/src/lib/BaseSuite.js +6 -3
- package/dist/module/src/lib/BaseSuite.test/mock.js +17 -30
- package/dist/module/src/lib/BaseSuite.test/test.js +33 -31
- package/dist/module/src/lib/abstractBase.js +28 -8
- package/dist/module/src/lib/baseBuilder.test/baseBuilder.test.adapter.js +12 -6
- package/dist/module/src/lib/baseBuilder.test/baseBuilder.test.implementation.js +12 -12
- package/dist/module/src/lib/basebuilder.js +1 -9
- package/dist/module/src/lib/classBuilder.js +3 -3
- package/dist/module/src/lib/core.js +3 -5
- package/dist/module/src/lib/index.js +11 -14
- package/dist/module/src/lib/pmProxy.js +37 -14
- package/dist/module/src/lib/pmProxy.test/adapter.js +12 -2
- package/dist/module/src/lib/pmProxy.test/implementation.js +73 -43
- package/dist/module/src/lib/pmProxy.test/specification.js +3 -0
- package/dist/module/src/utils/api.js +45 -34
- package/dist/module/src/utils/logFiles.js +45 -20
- package/dist/module/src/utils/makePrompt.js +5 -4
- package/dist/module/testeranto.config.js +15 -13
- package/dist/module/tsconfig.module.tsbuildinfo +1 -1
- package/dist/prebuild/App.css +54 -513
- package/dist/prebuild/App.js +13296 -2438
- package/dist/prebuild/ReportServer.mjs +104 -6
- package/dist/prebuild/build.mjs +8 -5
- package/dist/prebuild/run.mjs +389 -37
- package/dist/types/design-editor/DesignEditor.d.ts +18 -0
- package/dist/types/design-editor/server.d.ts +1 -0
- package/dist/types/{PM → src/PM}/index.d.ts +1 -1
- package/dist/types/{PM → src/PM}/main.d.ts +19 -0
- package/dist/types/{PM → src/PM}/pure.d.ts +7 -7
- package/dist/types/{Pure.test.d.ts → src/Pure.test.d.ts} +13 -1
- package/dist/types/src/components/DesignEditorPage.d.ts +1 -0
- package/dist/types/{components → src/components}/pure/AppFrame.d.ts +3 -1
- package/dist/types/{components/pure/ProjectPageView.test → src/components/pure/ModalContent.test}/index.d.ts +2 -1
- package/dist/types/{components → src/components}/pure/NavBar.d.ts +4 -0
- package/dist/types/src/components/pure/ProcessManager.d.ts +8 -0
- package/dist/types/src/components/pure/ProcessManagerView.d.ts +20 -0
- package/dist/types/{components → src/components}/pure/ProjectsPageView.d.ts +1 -1
- package/dist/types/src/components/pure/SettingsButton.d.ts +2 -0
- package/dist/types/{components → src/components}/pure/TestPageView.test/implementation.d.ts +3 -2
- package/dist/types/src/components/pure/TestPageView.test/index.d.ts +3 -0
- package/dist/types/src/components/stateful/FileTree.d.ts +8 -0
- package/dist/types/src/components/stateful/ProcessManagerPage.d.ts +2 -0
- package/dist/types/src/components/stateful/SettingsPage.d.ts +2 -0
- package/dist/types/src/components/stateful/SingleProcessPage.d.ts +2 -0
- package/dist/types/src/components/stateful/TextEditorPage.d.ts +1 -0
- package/dist/types/{lib → src/lib}/BaseSuite.test/mock.d.ts +3 -3
- package/dist/types/{lib → src/lib}/basebuilder.d.ts +1 -1
- package/dist/types/{lib → src/lib}/index.d.ts +1 -1
- package/dist/types/{lib → src/lib}/pmProxy.test/mockPMBase.d.ts +1 -1
- package/dist/types/src/run.d.ts +1 -0
- package/dist/types/src/utils/logFiles.d.ts +71 -0
- package/dist/types/tsconfig.types.tsbuildinfo +1 -1
- package/docs/test-page-components.md +91 -0
- package/package.json +27 -8
- package/src/App.tsx +11 -0
- package/src/PM/PM_WithEslintAndTsc.ts +9 -4
- package/src/PM/base.ts +1 -0
- package/src/PM/index.ts +1 -1
- package/src/PM/main.ts +424 -8
- package/src/PM/node.ts +5 -2
- package/src/PM/pure.ts +23 -61
- package/src/PM/web.ts +7 -3
- package/src/Pure.test.ts +63 -99
- package/src/README.md +20 -1
- package/src/ReportServer.ts +10 -3
- package/src/app.scss +169 -0
- package/src/build.ts +5 -1
- package/src/components/DesignEditorPage.tsx +169 -0
- package/src/components/pure/AppFrame.tsx +121 -16
- package/src/components/pure/ModalContent.test/implementation.tsx +14 -12
- package/src/components/pure/ModalContent.test/index.tsx +58 -6
- package/src/components/pure/ModalContent.test/specification.ts +2 -2
- package/src/components/pure/NavBar.tsx +31 -15
- package/src/components/pure/ProcessManager.tsx +117 -0
- package/src/components/pure/ProcessManagerView.tsx +414 -0
- package/src/components/pure/ProjectPageView.test/implementation.tsx +136 -106
- package/src/components/pure/ProjectPageView.test/index.tsx +0 -2
- package/src/components/pure/ProjectsPageView.tsx +41 -31
- package/src/components/pure/SettingsButton.tsx +7 -62
- package/src/components/pure/SingleProcessView.tsx +235 -0
- package/src/components/pure/TestPageView.test/implementation.ts +115 -147
- package/src/components/pure/TestPageView.test/specification.ts +0 -1
- package/src/components/pure/TestPageView.tsx +821 -100
- package/src/components/stateful/FeaturesReporter.tsx +1 -1
- package/src/components/stateful/FileTree.tsx +66 -0
- package/src/components/stateful/ProcessManagerPage.tsx +108 -0
- package/src/components/stateful/ProjectPage.tsx +6 -5
- package/src/components/stateful/ProjectsPage.tsx +36 -7
- package/src/components/stateful/SettingsPage.tsx +82 -0
- package/src/components/stateful/SingleProcessPage.tsx +155 -0
- package/src/components/stateful/TestPage.tsx +128 -20
- package/src/components/stateful/TextEditorPage.tsx +170 -0
- package/src/esbuildConfigs/inputFilesPlugin.ts +3 -4
- package/src/lib/BaseSuite.test/mock.ts +20 -41
- package/src/lib/BaseSuite.test/test.ts +38 -42
- package/src/lib/BaseSuite.ts +6 -3
- package/src/lib/abstractBase.ts +33 -14
- package/src/lib/baseBuilder.test/baseBuilder.test.adapter.ts +14 -7
- package/src/lib/baseBuilder.test/baseBuilder.test.implementation.ts +15 -14
- package/src/lib/basebuilder.ts +4 -9
- package/src/lib/classBuilder.ts +8 -10
- package/src/lib/core.ts +3 -19
- package/src/lib/index.ts +19 -19
- package/src/lib/pmProxy.test/adapter.ts +10 -2
- package/src/lib/pmProxy.test/implementation.ts +108 -57
- package/src/lib/pmProxy.test/mockPMBase.ts +1 -1
- package/src/lib/pmProxy.test/specification.ts +11 -0
- package/src/lib/pmProxy.ts +40 -15
- package/src/style.scss +3 -502
- package/src/templates/frontpage.html +317 -40
- package/src/templates/frontpage.md +79 -0
- package/src/themes.scss +40 -8
- package/src/utils/api.ts +47 -44
- package/src/utils/logFiles.ts +57 -23
- package/src/utils/makePrompt.ts +5 -4
- package/stargazers.txt +15 -0
- package/stargzers.js +68 -0
- package/testeranto/App.css +54 -513
- package/testeranto/App.js +13296 -2438
- package/testeranto/bundles/node/core/{chunk-L67RWZ4W.mjs → chunk-4CSH4UJE.mjs} +89 -116
- package/testeranto/bundles/node/core/{chunk-JBB5E3XJ.mjs → chunk-4JTDLQVA.mjs} +4 -9
- package/testeranto/bundles/node/core/chunk-C3APFDUV.mjs +70 -0
- package/testeranto/bundles/node/core/src/lib/BaseSuite.test/node.test.mjs +30 -42
- package/testeranto/bundles/node/core/src/lib/baseBuilder.test/baseBuilder.test.node.mjs +27 -31
- package/testeranto/bundles/node/core/src/lib/classBuilder.test/classBuilder.test.mjs +4 -16
- package/testeranto/bundles/node/core/src/lib/core.test/core.test.mjs +16 -27
- package/testeranto/bundles/node/core/src/lib/pmProxy.test/index.mjs +468 -517
- package/testeranto/bundles/pure/core/{chunk-KHJ35R7C.mjs → chunk-62UVCSQC.mjs} +97 -72
- package/testeranto/bundles/pure/core/src/Pure.test.mjs +56 -74
- package/testeranto/bundles/pure/core/src/lib/BaseSuite.test/pure.test.mjs +39 -66
- package/testeranto/bundles/pure/core/src/lib/baseBuilder.test/baseBuilder.test.pure.mjs +25 -19
- package/testeranto/metafiles/node/core.json +2906 -0
- package/testeranto/{bundles/pure/core/metafile.json → metafiles/pure/core.json} +66 -81
- package/testeranto/metafiles/web/core.json +546 -0
- package/testeranto/reports/core/config.json +0 -24
- package/testeranto/reports/core/src/Pure.test/pure/prompt.txt +1 -1
- package/testeranto/reports/core/src/Pure.test/pure/type_errors.txt +59 -94
- package/testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/error.log +2 -55
- package/testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/info.log +0 -2
- package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/error.log +3 -33
- package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/info.log +0 -4
- package/testeranto/reports/core/src/components/pure/TestPageView.test/index/web/error.log +3 -0
- package/testeranto/reports/core/src/components/pure/TestPageView.test/index/web/info.log +0 -2
- package/testeranto/reports/core/src/lib/BaseSuite.test/node.test/node/prompt.txt +2 -2
- package/testeranto/reports/core/src/lib/BaseSuite.test/node.test/node/type_errors.txt +38 -90
- package/testeranto/reports/core/src/lib/BaseSuite.test/pure.test/pure/prompt.txt +1 -1
- package/testeranto/reports/core/src/lib/BaseSuite.test/pure.test/pure/type_errors.txt +38 -90
- package/testeranto/reports/core/src/lib/BaseSuite.test/web.test/web/error.log +2 -0
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.node/node/lint_errors.txt +10 -0
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.node/node/prompt.txt +3 -3
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.node/node/stdout.log +6 -2
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.node/node/tests.json +4 -4
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.node/node/type_errors.txt +22 -45
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.pure/pure/lint_errors.txt +10 -0
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.pure/pure/prompt.txt +1 -1
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.pure/pure/type_errors.txt +22 -45
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.web/web/error.log +2 -0
- package/testeranto/reports/core/src/lib/classBuilder.test/classBuilder.test/node/prompt.txt +4 -4
- package/testeranto/reports/core/src/lib/classBuilder.test/classBuilder.test/node/tests.json +10 -10
- package/testeranto/reports/core/src/lib/classBuilder.test/classBuilder.test/node/type_errors.txt +38 -90
- package/testeranto/reports/core/src/lib/core.test/core.test/node/prompt.txt +4 -4
- package/testeranto/reports/core/src/lib/core.test/core.test/node/type_errors.txt +5 -24
- package/testeranto/reports/core/src/lib/pmProxy.test/index/node/lint_errors.txt +6 -14
- package/testeranto/reports/core/src/lib/pmProxy.test/index/node/prompt.txt +3 -3
- package/testeranto/reports/core/src/lib/pmProxy.test/index/node/stderr.log +88 -0
- package/testeranto/reports/core/src/lib/pmProxy.test/index/node/stdout.log +10 -0
- package/testeranto/reports/core/src/lib/pmProxy.test/index/node/tests.json +33 -43
- package/testeranto/reports/core/src/lib/pmProxy.test/index/node/type_errors.txt +17 -43
- package/testeranto/reports/core/summary.json +15 -51
- package/testeranto/reportsweb_build_errors +546 -0
- package/testeranto.config.ts +16 -13
- package/tsc.log +37 -16
- package/tsconfig.json +3 -2
- package/CNAME +0 -1
- package/README.html +0 -302
- package/dist/common/src/PM/layers/base/PM_Base.js +0 -1
- package/dist/common/src/PM/layers/base/components/PageOperations.js +0 -1
- package/dist/common/src/PM/layers/base/components/PageOperations.testeranto.js +0 -1
- package/dist/common/src/PM/layers/linting/components/Linter.js +0 -1
- package/dist/common/src/PM/layers/linting/components/TypeChecker.js +0 -1
- package/dist/common/src/PM/layers/main/components/SidecarManager.js +0 -1
- package/dist/common/src/PM/layers/main/components/TestRunner.js +0 -1
- package/dist/module/src/PM/layers/base/PM_Base.js +0 -1
- package/dist/module/src/PM/layers/base/components/PageOperations.js +0 -1
- package/dist/module/src/PM/layers/base/components/PageOperations.testeranto.js +0 -1
- package/dist/module/src/PM/layers/linting/components/Linter.js +0 -1
- package/dist/module/src/PM/layers/linting/components/TypeChecker.js +0 -1
- package/dist/module/src/PM/layers/main/components/SidecarManager.js +0 -1
- package/dist/module/src/PM/layers/main/components/TestRunner.js +0 -1
- package/dist/tsconfig.tsbuildinfo +0 -1
- package/dist/types/PM/layers/base/components/PageOperations.d.ts +0 -0
- package/dist/types/PM/layers/base/components/PageOperations.testeranto.d.ts +0 -0
- package/dist/types/PM/layers/linting/components/Linter.d.ts +0 -0
- package/dist/types/PM/layers/linting/components/TypeChecker.d.ts +0 -0
- package/dist/types/PM/layers/main/components/SidecarManager.d.ts +0 -0
- package/dist/types/PM/layers/main/components/TestRunner.d.ts +0 -0
- package/dist/types/components/pure/SettingsButton.d.ts +0 -3
- package/dist/types/components/pure/TestPageView.test/index.d.ts +0 -32
- package/dist/types/utils/logFiles.d.ts +0 -7
- package/docs.html +0 -590
- package/example.css +0 -351
- package/index.html +0 -138
- package/scripts/compile-docs.js +0 -150
- package/smil30/SMIL-anim.mod.xsd +0 -163
- package/smil30/SMIL-control.mod.xsd +0 -73
- package/smil30/SMIL-layout.mod.xsd +0 -149
- package/smil30/SMIL-link.mod.xsd +0 -145
- package/smil30/SMIL-media.mod.xsd +0 -1646
- package/smil30/SMIL-metainformation.mod.xsd +0 -45
- package/smil30/SMIL-smiltext.mod.xsd +0 -353
- package/smil30/SMIL-state.mod.xsd +0 -133
- package/smil30/SMIL-struct.mod.xsd +0 -70
- package/smil30/SMIL-timing.mod.xsd +0 -105
- package/smil30/SMIL-transition.mod.xsd +0 -229
- package/smil30/SMIL.xsd +0 -63
- package/smil30/its.xsd +0 -42
- package/smil30/smil-attribs-1.mod.xsd +0 -610
- package/smil30/smil-datatypes-1.mod.xsd +0 -72
- package/smil30/smil-framework-1.mod.xsd +0 -45
- package/smil30/xml.xsd +0 -16
- package/src/App.scss +0 -123
- package/src/PM/layers/base/PM_Base.ts +0 -0
- package/src/PM/layers/base/components/PageOperations.testeranto.ts +0 -0
- package/src/PM/layers/base/components/PageOperations.ts +0 -0
- package/src/PM/layers/linting/components/Linter.ts +0 -0
- package/src/PM/layers/linting/components/TypeChecker.ts +0 -0
- package/src/PM/layers/main/components/SidecarManager.ts +0 -0
- package/src/PM/layers/main/components/TestRunner.ts +0 -0
- package/src/fonts.scss +0 -55
- package/style.css +0 -12175
- package/testeranto/bundles/node/core/chunk-ZQRRQYS4.mjs +0 -92
- package/testeranto/bundles/node/core/metafile.json +0 -5735
- package/testeranto/bundles/node/core/src/mothership/test.mjs +0 -24588
- package/testeranto/bundles/web/core/MPLUSRounded1c-Black-O75GP5JI.ttf +0 -0
- package/testeranto/bundles/web/core/MPLUSRounded1c-Bold-R524Q5BH.ttf +0 -0
- package/testeranto/bundles/web/core/MPLUSRounded1c-ExtraBold-C6GRMYVT.ttf +0 -0
- package/testeranto/bundles/web/core/MPLUSRounded1c-Light-WKN65Y2C.ttf +0 -0
- package/testeranto/bundles/web/core/MPLUSRounded1c-Medium-ZC4DWL7C.ttf +0 -0
- package/testeranto/bundles/web/core/MPLUSRounded1c-Regular-DT6EKZ3S.ttf +0 -0
- package/testeranto/bundles/web/core/MPLUSRounded1c-Thin-YWDNVG6M.ttf +0 -0
- package/testeranto/bundles/web/core/chunk-BADF3AZF.mjs +0 -108
- package/testeranto/bundles/web/core/chunk-BXV27S2S.mjs +0 -6252
- package/testeranto/bundles/web/core/chunk-EIYZKF2C.mjs +0 -223
- package/testeranto/bundles/web/core/chunk-FNXFUNA7.mjs +0 -28528
- package/testeranto/bundles/web/core/chunk-LU364HVS.mjs +0 -3311
- package/testeranto/bundles/web/core/chunk-QWII7WIM.mjs +0 -2281
- package/testeranto/bundles/web/core/chunk-VAYOSMXI.mjs +0 -21775
- package/testeranto/bundles/web/core/metafile.json +0 -18227
- package/testeranto/bundles/web/core/src/components/pure/AppFrame.test/index.css +0 -12105
- package/testeranto/bundles/web/core/src/components/pure/AppFrame.test/index.html +0 -15
- package/testeranto/bundles/web/core/src/components/pure/AppFrame.test/index.mjs +0 -517
- package/testeranto/bundles/web/core/src/components/pure/FeaturesReporterView.test/index.mjs +0 -166
- package/testeranto/bundles/web/core/src/components/pure/ModalContent.test/index.css +0 -12105
- package/testeranto/bundles/web/core/src/components/pure/ModalContent.test/index.html +0 -15
- package/testeranto/bundles/web/core/src/components/pure/ModalContent.test/index.mjs +0 -93
- package/testeranto/bundles/web/core/src/components/pure/ProjectPageView.test/index.css +0 -12105
- package/testeranto/bundles/web/core/src/components/pure/ProjectPageView.test/index.mjs +0 -343
- package/testeranto/bundles/web/core/src/components/pure/TestPageView.test/index.css +0 -12105
- package/testeranto/bundles/web/core/src/components/pure/TestPageView.test/index.mjs +0 -483
- package/testeranto/bundles/web/core/src/lib/BaseSuite.test/web.test.mjs +0 -394
- package/testeranto/bundles/web/core/src/lib/baseBuilder.test/baseBuilder.test.web.mjs +0 -256
- package/testeranto/reports/core/src/components/pure/AppFrame.test/index/web/debug.log +0 -0
- package/testeranto/reports/core/src/components/pure/AppFrame.test/index/web/error.log +0 -22
- package/testeranto/reports/core/src/components/pure/AppFrame.test/index/web/exit.log +0 -1
- package/testeranto/reports/core/src/components/pure/AppFrame.test/index/web/info.log +0 -4
- package/testeranto/reports/core/src/components/pure/AppFrame.test/index/web/lint_errors.txt +0 -2
- package/testeranto/reports/core/src/components/pure/AppFrame.test/index/web/message.txt +0 -17
- package/testeranto/reports/core/src/components/pure/AppFrame.test/index/web/prompt.txt +0 -18
- package/testeranto/reports/core/src/components/pure/AppFrame.test/index/web/tests.json +0 -57
- package/testeranto/reports/core/src/components/pure/AppFrame.test/index/web/type_errors.txt +0 -55
- package/testeranto/reports/core/src/components/pure/AppFrame.test/index/web/warn.log +0 -0
- package/testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/lint_errors.txt +0 -0
- package/testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/message.txt +0 -17
- package/testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/prompt.txt +0 -16
- package/testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/suite-0/given-basicRender/then-4/butThen/features-reporter.png +0 -0
- package/testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/tests.json +0 -76
- package/testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/type_errors.txt +0 -80
- package/testeranto/reports/core/src/components/pure/ModalContent.test/index/web/debug.log +0 -0
- package/testeranto/reports/core/src/components/pure/ModalContent.test/index/web/error.log +0 -0
- package/testeranto/reports/core/src/components/pure/ModalContent.test/index/web/exit.log +0 -0
- package/testeranto/reports/core/src/components/pure/ModalContent.test/index/web/info.log +0 -4
- package/testeranto/reports/core/src/components/pure/ModalContent.test/index/web/lint_errors.txt +0 -0
- package/testeranto/reports/core/src/components/pure/ModalContent.test/index/web/message.txt +0 -17
- package/testeranto/reports/core/src/components/pure/ModalContent.test/index/web/prompt.txt +0 -15
- package/testeranto/reports/core/src/components/pure/ModalContent.test/index/web/suite-0/given-basicRender/then-2/butThen/modal-content.png +0 -0
- package/testeranto/reports/core/src/components/pure/ModalContent.test/index/web/tests.json +0 -42
- package/testeranto/reports/core/src/components/pure/ModalContent.test/index/web/type_errors.txt +0 -65
- package/testeranto/reports/core/src/components/pure/ModalContent.test/index/web/warn.log +0 -0
- package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/lint_errors.txt +0 -2
- package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/message.txt +0 -17
- package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/prompt.txt +0 -16
- package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/suite-0/given-basicRender/then-6/butThen/happy-state.png +0 -0
- package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/suite-0/given-errorHandling/then-1/butThen/error-state.png +0 -0
- package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/tests.json +0 -99
- package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/type_errors.txt +0 -91
- package/testeranto/reports/core/src/components/pure/TestPageView.test/index/web/lint_errors.txt +0 -0
- package/testeranto/reports/core/src/components/pure/TestPageView.test/index/web/message.txt +0 -17
- package/testeranto/reports/core/src/components/pure/TestPageView.test/index/web/prompt.txt +0 -18
- package/testeranto/reports/core/src/components/pure/TestPageView.test/index/web/tests.json +0 -69
- package/testeranto/reports/core/src/components/pure/TestPageView.test/index/web/type_errors.txt +0 -111
- package/testeranto/reports/core/src/lib/BaseSuite.test/web.test/web/lint_errors.txt +0 -0
- package/testeranto/reports/core/src/lib/BaseSuite.test/web.test/web/message.txt +0 -17
- package/testeranto/reports/core/src/lib/BaseSuite.test/web.test/web/prompt.txt +0 -15
- package/testeranto/reports/core/src/lib/BaseSuite.test/web.test/web/tests.json +0 -31
- package/testeranto/reports/core/src/lib/BaseSuite.test/web.test/web/type_errors.txt +0 -113
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.web/web/lint_errors.txt +0 -0
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.web/web/message.txt +0 -17
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.web/web/prompt.txt +0 -17
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.web/web/suite-0/given-testInitialization/then-0/butThen/hello.txt +0 -1
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.web/web/suite-0/given-testInitialization/then-1/butThen/artifact_test.txt +0 -1
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.web/web/tests.json +0 -71
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.web/web/type_errors.txt +0 -65
- package/testeranto/reports/core/src/mothership/test/node/exit.log +0 -1
- package/testeranto/reports/core/src/mothership/test/node/lint_errors.txt +0 -0
- package/testeranto/reports/core/src/mothership/test/node/message.txt +0 -17
- package/testeranto/reports/core/src/mothership/test/node/prompt.txt +0 -14
- package/testeranto/reports/core/src/mothership/test/node/stderr.log +0 -27
- package/testeranto/reports/core/src/mothership/test/node/stdout.log +0 -8
- package/testeranto/reports/core/src/mothership/test/node/tests.json +0 -36
- package/testeranto/reports/core/src/mothership/test/node/type_errors.txt +0 -38
- package/videos/download-smil-xsd.sh +0 -29
- package/videos/project0/index.md +0 -72
- package/videos/project0/narration.json +0 -7
- package/videos/project0/narration.ssml +0 -58
- package/videos/project0/package.json +0 -21
- package/videos/project0/presentation.smil +0 -25
- package/videos/project0/smil30/SMIL-anim.mod.xsd +0 -163
- package/videos/project0/smil30/SMIL-anim.mod.xsd.1 +0 -163
- package/videos/project0/smil30/SMIL-anim.mod.xsd.2 +0 -163
- package/videos/project0/smil30/SMIL-control.mod.xsd +0 -73
- package/videos/project0/smil30/SMIL-control.mod.xsd.1 +0 -73
- package/videos/project0/smil30/SMIL-control.mod.xsd.2 +0 -73
- package/videos/project0/smil30/SMIL-layout.mod.xsd +0 -149
- package/videos/project0/smil30/SMIL-layout.mod.xsd.1 +0 -149
- package/videos/project0/smil30/SMIL-layout.mod.xsd.2 +0 -149
- package/videos/project0/smil30/SMIL-link.mod.xsd +0 -145
- package/videos/project0/smil30/SMIL-link.mod.xsd.1 +0 -145
- package/videos/project0/smil30/SMIL-link.mod.xsd.2 +0 -145
- package/videos/project0/smil30/SMIL-media.mod.xsd +0 -1646
- package/videos/project0/smil30/SMIL-media.mod.xsd.1 +0 -1646
- package/videos/project0/smil30/SMIL-media.mod.xsd.2 +0 -1646
- package/videos/project0/smil30/SMIL-metainformation.mod.xsd +0 -45
- package/videos/project0/smil30/SMIL-metainformation.mod.xsd.1 +0 -45
- package/videos/project0/smil30/SMIL-metainformation.mod.xsd.2 +0 -45
- package/videos/project0/smil30/SMIL-smiltext.mod.xsd +0 -353
- package/videos/project0/smil30/SMIL-smiltext.mod.xsd.1 +0 -353
- package/videos/project0/smil30/SMIL-smiltext.mod.xsd.2 +0 -353
- package/videos/project0/smil30/SMIL-state.mod.xsd +0 -133
- package/videos/project0/smil30/SMIL-state.mod.xsd.1 +0 -133
- package/videos/project0/smil30/SMIL-state.mod.xsd.2 +0 -133
- package/videos/project0/smil30/SMIL-struct.mod.xsd +0 -70
- package/videos/project0/smil30/SMIL-struct.mod.xsd.1 +0 -70
- package/videos/project0/smil30/SMIL-struct.mod.xsd.2 +0 -70
- package/videos/project0/smil30/SMIL-timing.mod.xsd +0 -105
- package/videos/project0/smil30/SMIL-timing.mod.xsd.1 +0 -105
- package/videos/project0/smil30/SMIL-timing.mod.xsd.2 +0 -105
- package/videos/project0/smil30/SMIL-transition.mod.xsd +0 -229
- package/videos/project0/smil30/SMIL-transition.mod.xsd.1 +0 -229
- package/videos/project0/smil30/SMIL-transition.mod.xsd.2 +0 -229
- package/videos/project0/smil30/SMIL.xsd +0 -63
- package/videos/project0/smil30/SMIL.xsd.1 +0 -63
- package/videos/project0/smil30/SMIL.xsd.2 +0 -63
- package/videos/project0/smil30/its.xsd +0 -42
- package/videos/project0/smil30/its.xsd.1 +0 -42
- package/videos/project0/smil30/its.xsd.2 +0 -42
- package/videos/project0/smil30/smil-attribs-1.mod.xsd +0 -610
- package/videos/project0/smil30/smil-attribs-1.mod.xsd.1 +0 -610
- package/videos/project0/smil30/smil-attribs-1.mod.xsd.2 +0 -610
- package/videos/project0/smil30/smil-datatypes-1.mod.xsd +0 -72
- package/videos/project0/smil30/smil-datatypes-1.mod.xsd.1 +0 -72
- package/videos/project0/smil30/smil-datatypes-1.mod.xsd.2 +0 -72
- package/videos/project0/smil30/smil-framework-1.mod.xsd +0 -45
- package/videos/project0/smil30/smil-framework-1.mod.xsd.1 +0 -45
- package/videos/project0/smil30/smil-framework-1.mod.xsd.2 +0 -45
- package/videos/project0/smil30/smil-profile-model-1.mod.xsd +0 -1331
- package/videos/project0/smil30/smil-profile-model-1.mod.xsd.1 +0 -1331
- package/videos/project0/smil30/smil-qname-1.mod.xsd +0 -121
- package/videos/project0/smil30/smil-qname-1.mod.xsd.1 +0 -121
- package/videos/project0/smil30/xml.xsd +0 -16
- package/videos/project0/smil30/xml.xsd.1 +0 -16
- package/videos/project0/smil30/xml.xsd.2 +0 -16
- package/videos/project0/smil30.xsd +0 -137
- package/videos/project0/src/audio/metadata.json +0 -5
- package/videos/project0/src/audio/narration.mp3 +0 -0
- package/videos/project0/src/motion-canvas.d.ts +0 -1
- package/videos/project0/src/project.meta +0 -31
- package/videos/project0/src/project.ts +0 -13
- package/videos/project0/src/scenes/example.meta +0 -5
- package/videos/project0/src/scenes/scene1.meta +0 -3
- package/videos/project0/src/scenes/scene1.tsx +0 -129
- package/videos/project0/src/scenes/scene2.tsx +0 -132
- package/videos/project0/src/scenes/scene3.meta +0 -26
- package/videos/project0/src/scenes/scene3.tsx +0 -188
- package/videos/project0/tsconfig.json +0 -4
- package/videos/project0/vite.config.ts +0 -10
- package/videos/trash/output/project.mp4 +0 -0
- package/videos/trash/text.mp4 +0 -0
- package/videos/trash/video/project.tsx +0 -549
- package/videos/trash/video/render.ts +0 -15
- package/videos/trash/vite.config.ts +0 -10
- package/videos/tts.js +0 -109
- /package/dist/{types/ReportServer.d.ts → module/design-editor/types.js} +0 -0
- /package/dist/types/{App.d.ts → src/App.d.ts} +0 -0
- /package/dist/types/{CoreTypes.d.ts → src/CoreTypes.d.ts} +0 -0
- /package/dist/types/{Init.d.ts → src/Init.d.ts} +0 -0
- /package/dist/types/{Node.d.ts → src/Node.d.ts} +0 -0
- /package/dist/types/{NodeSidecar.d.ts → src/NodeSidecar.d.ts} +0 -0
- /package/dist/types/{PM → src/PM}/PM_WithEslintAndTsc.d.ts +0 -0
- /package/dist/types/{PM → src/PM}/__tests__/nodeSidecar.testeranto.d.ts +0 -0
- /package/dist/types/{PM → src/PM}/__tests__/pureSidecar.testeranto.d.ts +0 -0
- /package/dist/types/{PM → src/PM}/__tests__/webSidecar.testeranto.d.ts +0 -0
- /package/dist/types/{PM → src/PM}/base.d.ts +0 -0
- /package/dist/types/{PM → src/PM}/node.d.ts +0 -0
- /package/dist/types/{PM → src/PM}/nodeSidecar.d.ts +0 -0
- /package/dist/types/{PM → src/PM}/pureSidecar.d.ts +0 -0
- /package/dist/types/{PM → src/PM}/sidecar.d.ts +0 -0
- /package/dist/types/{PM → src/PM}/types.d.ts +0 -0
- /package/dist/types/{PM → src/PM}/web.d.ts +0 -0
- /package/dist/types/{PM → src/PM}/webSidecar.d.ts +0 -0
- /package/dist/types/{Pure.d.ts → src/Pure.d.ts} +0 -0
- /package/dist/types/{PureSidecar.d.ts → src/PureSidecar.d.ts} +0 -0
- /package/dist/types/{build.d.ts → src/ReportServer.d.ts} +0 -0
- /package/dist/types/{ReportServer.test.ts → src/ReportServer.test.ts}/index.d.ts +0 -0
- /package/dist/types/{ReportServerLib.d.ts → src/ReportServerLib.d.ts} +0 -0
- /package/dist/types/{Types.d.ts → src/Types.d.ts} +0 -0
- /package/dist/types/{Web.d.ts → src/Web.d.ts} +0 -0
- /package/dist/types/{WebSidecar.d.ts → src/WebSidecar.d.ts} +0 -0
- /package/dist/types/{init-docs.d.ts → src/build.d.ts} +0 -0
- /package/dist/types/{components → src/components}/SunriseAnimation.d.ts +0 -0
- /package/dist/types/{components → src/components}/SunriseAnimation.test/implementation.d.ts +0 -0
- /package/dist/types/{components → src/components}/SunriseAnimation.test/index.d.ts +0 -0
- /package/dist/types/{components → src/components}/SunriseAnimation.test/interface.d.ts +0 -0
- /package/dist/types/{components → src/components}/SunriseAnimation.test/specification.d.ts +0 -0
- /package/dist/types/{components → src/components}/SunriseAnimation.test/types.d.ts +0 -0
- /package/dist/types/{components → src/components}/TestStatusBadge.d.ts +0 -0
- /package/dist/types/{components → src/components}/pure/AppFrame.test/implementation.d.ts +0 -0
- /package/dist/types/{components → src/components}/pure/AppFrame.test/index.d.ts +0 -0
- /package/dist/types/{components → src/components}/pure/AppFrame.test/specification.d.ts +0 -0
- /package/dist/types/{components → src/components}/pure/AppFrame.test/types.d.ts +0 -0
- /package/dist/types/{components → src/components}/pure/FeaturesReporterView.d.ts +0 -0
- /package/dist/types/{components → src/components}/pure/FeaturesReporterView.test/implementation.d.ts +0 -0
- /package/dist/types/{components → src/components}/pure/FeaturesReporterView.test/index.d.ts +0 -0
- /package/dist/types/{components → src/components}/pure/FeaturesReporterView.test/specification.d.ts +0 -0
- /package/dist/types/{components → src/components}/pure/FeaturesReporterView.test/types.d.ts +0 -0
- /package/dist/types/{components → src/components}/pure/ModalContent.d.ts +0 -0
- /package/dist/types/{components → src/components}/pure/ModalContent.test/implementation.d.ts +0 -0
- /package/dist/types/{components → src/components}/pure/ModalContent.test/specification.d.ts +0 -0
- /package/dist/types/{components → src/components}/pure/ModalContent.test/types.d.ts +0 -0
- /package/dist/types/{components → src/components}/pure/ProjectPageView.d.ts +0 -0
- /package/dist/types/{components → src/components}/pure/ProjectPageView.test/implementation.d.ts +0 -0
- /package/dist/types/{components/pure/ModalContent.test → src/components/pure/ProjectPageView.test}/index.d.ts +0 -0
- /package/dist/types/{components → src/components}/pure/ProjectPageView.test/specification.d.ts +0 -0
- /package/dist/types/{components → src/components}/pure/ProjectPageView.test/types.d.ts +0 -0
- /package/dist/types/{PM/layers/base/PM_Base.d.ts → src/components/pure/SingleProcessView.d.ts} +0 -0
- /package/dist/types/{components → src/components}/pure/TestPageView.d.ts +0 -0
- /package/dist/types/{components → src/components}/pure/TestPageView.test/specification.d.ts +0 -0
- /package/dist/types/{components → src/components}/pure/TestPageView.test/types.d.ts +0 -0
- /package/dist/types/{components → src/components}/pure/ThemeCard.d.ts +0 -0
- /package/dist/types/{components → src/components}/stateful/FeaturesReporter.d.ts +0 -0
- /package/dist/types/{components → src/components}/stateful/ProjectPage.d.ts +0 -0
- /package/dist/types/{components → src/components}/stateful/ProjectsPage.d.ts +0 -0
- /package/dist/types/{components → src/components}/stateful/TestPage.d.ts +0 -0
- /package/dist/types/{defaultConfig.d.ts → src/defaultConfig.d.ts} +0 -0
- /package/dist/types/{esbuildConfigs → src/esbuildConfigs}/consoleDetectorPlugin.d.ts +0 -0
- /package/dist/types/{esbuildConfigs → src/esbuildConfigs}/eslint-formatter-testeranto.d.ts +0 -0
- /package/dist/types/{esbuildConfigs → src/esbuildConfigs}/featuresPlugin.d.ts +0 -0
- /package/dist/types/{esbuildConfigs → src/esbuildConfigs}/index.d.ts +0 -0
- /package/dist/types/{esbuildConfigs → src/esbuildConfigs}/inputFilesPlugin.d.ts +0 -0
- /package/dist/types/{esbuildConfigs → src/esbuildConfigs}/nativeImportDetectorPlugin.d.ts +0 -0
- /package/dist/types/{esbuildConfigs → src/esbuildConfigs}/node.d.ts +0 -0
- /package/dist/types/{esbuildConfigs → src/esbuildConfigs}/pure.d.ts +0 -0
- /package/dist/types/{esbuildConfigs → src/esbuildConfigs}/rebuildPlugin.d.ts +0 -0
- /package/dist/types/{esbuildConfigs → src/esbuildConfigs}/web.d.ts +0 -0
- /package/dist/types/{run.d.ts → src/init-docs.d.ts} +0 -0
- /package/dist/types/{lib → src/lib}/BaseSuite.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/BaseSuite.test/node.test.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/BaseSuite.test/pure.test.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/BaseSuite.test/test.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/BaseSuite.test/web.test.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/Sidecar.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/abstractBase.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/abstractBase.test/MockGiven.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/abstractBase.test/MockThen.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/abstractBase.test/MockWhen.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/abstractBase.test/adapter.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/abstractBase.test/implementation.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/abstractBase.test/index.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/abstractBase.test/specification.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/abstractBase.test/types.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/baseBuilder.test/baseBuilder.test.adapter.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/baseBuilder.test/baseBuilder.test.implementation.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/baseBuilder.test/baseBuilder.test.mock.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/baseBuilder.test/baseBuilder.test.node.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/baseBuilder.test/baseBuilder.test.pure.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/baseBuilder.test/baseBuilder.test.specification.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/baseBuilder.test/baseBuilder.test.types.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/baseBuilder.test/baseBuilder.test.web.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/classBuilder.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/classBuilder.test/classBuilder.test.adapter.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/classBuilder.test/classBuilder.test.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/classBuilder.test/classBuilder.test.implementation.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/classBuilder.test/classBuilder.test.specification.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/classBuilder.test/classBuilder.test.types.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/classBuilder.test/mock.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/core.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/core.test/MockCore.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/core.test/core.test.adapter.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/core.test/core.test.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/core.test/core.test.implementation.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/core.test/core.test.specification.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/core.test/core.test.types.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/mocks.test.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/pmProxy.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/pmProxy.test/adapter.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/pmProxy.test/implementation.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/pmProxy.test/index.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/pmProxy.test/mockPM.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/pmProxy.test/specification.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/pmProxy.test/types.d.ts +0 -0
- /package/dist/types/{lib → src/lib}/types.d.ts +0 -0
- /package/dist/types/{mothership → src/mothership}/index.d.ts +0 -0
- /package/dist/types/{mothership → src/mothership}/test.d.ts +0 -0
- /package/dist/types/{types → src/types}/features.d.ts +0 -0
- /package/dist/types/{utils → src/utils}/api.d.ts +0 -0
- /package/dist/types/{utils → src/utils}/buildTemplates.d.ts +0 -0
- /package/dist/types/{utils → src/utils}/featureUtils.d.ts +0 -0
- /package/dist/types/{utils → src/utils}/makePrompt.d.ts +0 -0
- /package/dist/types/{utils → src/utils}/queue.d.ts +0 -0
- /package/dist/types/{utils.d.ts → src/utils.d.ts} +0 -0
- /package/dist/types/{web.html.d.ts → src/web.html.d.ts} +0 -0
|
@@ -6,6 +6,7 @@ import { MockBaseBuilder } from "./baseBuilder.test.mock";
|
|
|
6
6
|
import { I, O } from "./baseBuilder.test.types";
|
|
7
7
|
import { ITestJob, ITTestResourceRequest } from "..";
|
|
8
8
|
import { BaseBuilder } from "../basebuilder";
|
|
9
|
+
import { IPM } from "../types";
|
|
9
10
|
|
|
10
11
|
// Define our test subject type
|
|
11
12
|
type TestSubject = MockBaseBuilder<any, any, any, any, any, any>;
|
|
@@ -16,7 +17,7 @@ export const implementation: ITestImplementation<I, O, {}> = {
|
|
|
16
17
|
},
|
|
17
18
|
|
|
18
19
|
givens: {
|
|
19
|
-
"the default BaseBuilder": () => {
|
|
20
|
+
"the default BaseBuilder": () => () => {
|
|
20
21
|
return new MockBaseBuilder(
|
|
21
22
|
{}, // input
|
|
22
23
|
{}, // suitesOverrides
|
|
@@ -27,7 +28,7 @@ export const implementation: ITestImplementation<I, O, {}> = {
|
|
|
27
28
|
() => [] // testSpecification
|
|
28
29
|
);
|
|
29
30
|
},
|
|
30
|
-
"a BaseBuilder with TestInput": (input: any) => {
|
|
31
|
+
"a BaseBuilder with TestInput": (input: any) => () => {
|
|
31
32
|
return new MockBaseBuilder(
|
|
32
33
|
input,
|
|
33
34
|
{},
|
|
@@ -40,24 +41,24 @@ export const implementation: ITestImplementation<I, O, {}> = {
|
|
|
40
41
|
},
|
|
41
42
|
"a BaseBuilder with Test Resource Requirements": (
|
|
42
43
|
requirements: ITTestResourceRequest
|
|
43
|
-
) => {
|
|
44
|
+
) => () => {
|
|
44
45
|
return new MockBaseBuilder({}, {}, {}, {}, {}, requirements, () => []);
|
|
45
46
|
},
|
|
46
47
|
},
|
|
47
48
|
|
|
48
49
|
whens: {
|
|
49
|
-
addArtifact: (artifact: Promise<any>) => (builder: TestSubject) => {
|
|
50
|
+
addArtifact: (artifact: Promise<any>) => (builder: TestSubject, utils: IPM) => {
|
|
50
51
|
builder.artifacts.push(artifact);
|
|
51
52
|
return builder;
|
|
52
53
|
},
|
|
53
|
-
setTestJobs: (jobs: ITestJob[]) => (builder: TestSubject) => {
|
|
54
|
+
setTestJobs: (jobs: ITestJob[]) => (builder: TestSubject, utils: IPM) => {
|
|
54
55
|
builder.testJobs = jobs;
|
|
55
56
|
return builder;
|
|
56
57
|
},
|
|
57
58
|
},
|
|
58
59
|
|
|
59
60
|
thens: {
|
|
60
|
-
"it is initialized": () => (builder, utils) => {
|
|
61
|
+
"it is initialized": () => (builder: TestSubject, utils: IPM) => {
|
|
61
62
|
utils.writeFileSync("hello.txt", "world");
|
|
62
63
|
|
|
63
64
|
if (!(builder instanceof BaseBuilder)) {
|
|
@@ -84,19 +85,19 @@ export const implementation: ITestImplementation<I, O, {}> = {
|
|
|
84
85
|
|
|
85
86
|
return builder;
|
|
86
87
|
},
|
|
87
|
-
"it generates TestSpecifications": () => (builder: TestSubject) => {
|
|
88
|
+
"it generates TestSpecifications": () => (builder: TestSubject, utils: IPM) => {
|
|
88
89
|
if (!Array.isArray(builder.specs)) {
|
|
89
90
|
throw new Error("Specs were not generated");
|
|
90
91
|
}
|
|
91
92
|
return builder;
|
|
92
93
|
},
|
|
93
|
-
"it creates jobs": () => (builder: TestSubject) => {
|
|
94
|
+
"it creates jobs": () => (builder: TestSubject, utils: IPM) => {
|
|
94
95
|
if (!Array.isArray(builder.testJobs)) {
|
|
95
96
|
throw new Error("Test jobs were not created");
|
|
96
97
|
}
|
|
97
98
|
return builder;
|
|
98
99
|
},
|
|
99
|
-
"it tracks artifacts": () => (builder: TestSubject, utils) => {
|
|
100
|
+
"it tracks artifacts": () => (builder: TestSubject, utils: IPM) => {
|
|
100
101
|
if (!Array.isArray(builder.artifacts)) {
|
|
101
102
|
throw new Error("Artifacts array not initialized");
|
|
102
103
|
}
|
|
@@ -104,31 +105,31 @@ export const implementation: ITestImplementation<I, O, {}> = {
|
|
|
104
105
|
utils.writeFileSync("artifact_test.txt", "test");
|
|
105
106
|
return builder;
|
|
106
107
|
},
|
|
107
|
-
resourceRequirementsSet: () => (builder: TestSubject) => {
|
|
108
|
+
resourceRequirementsSet: () => (builder: TestSubject, utils: IPM) => {
|
|
108
109
|
if (!builder.testResourceRequirement) {
|
|
109
110
|
throw new Error("Resource requirements not set");
|
|
110
111
|
}
|
|
111
112
|
return builder;
|
|
112
113
|
},
|
|
113
|
-
suitesOverridesConfigured: () => (builder: TestSubject) => {
|
|
114
|
+
suitesOverridesConfigured: () => (builder: TestSubject, utils: IPM) => {
|
|
114
115
|
if (!builder.suitesOverrides) {
|
|
115
116
|
throw new Error("Suites overrides not configured");
|
|
116
117
|
}
|
|
117
118
|
return builder;
|
|
118
119
|
},
|
|
119
|
-
givensOverridesConfigured: () => (builder: TestSubject) => {
|
|
120
|
+
givensOverridesConfigured: () => (builder: TestSubject, utils: IPM) => {
|
|
120
121
|
if (!builder.givenOverides) {
|
|
121
122
|
throw new Error("Givens overrides not configured");
|
|
122
123
|
}
|
|
123
124
|
return builder;
|
|
124
125
|
},
|
|
125
|
-
whensOverridesConfigured: () => (builder: TestSubject) => {
|
|
126
|
+
whensOverridesConfigured: () => (builder: TestSubject, utils: IPM) => {
|
|
126
127
|
if (!builder.whenOverides) {
|
|
127
128
|
throw new Error("Whens overrides not configured");
|
|
128
129
|
}
|
|
129
130
|
return builder;
|
|
130
131
|
},
|
|
131
|
-
thensOverridesConfigured: () => (builder: TestSubject) => {
|
|
132
|
+
thensOverridesConfigured: () => (builder: TestSubject, utils: IPM) => {
|
|
132
133
|
if (!builder.thenOverides) {
|
|
133
134
|
throw new Error("Thens overrides not configured");
|
|
134
135
|
}
|
package/src/lib/basebuilder.ts
CHANGED
|
@@ -34,7 +34,7 @@ export abstract class BaseBuilder<
|
|
|
34
34
|
> {
|
|
35
35
|
specs: any;
|
|
36
36
|
|
|
37
|
-
assertThis: (t: I["then"]) =>
|
|
37
|
+
assertThis: (t: I["then"]) => any;
|
|
38
38
|
|
|
39
39
|
testResourceRequirement: ITTestResourceRequest;
|
|
40
40
|
artifacts: Promise<unknown>[] = [];
|
|
@@ -111,7 +111,6 @@ export abstract class BaseBuilder<
|
|
|
111
111
|
receiveTestResourceConfig: async function (
|
|
112
112
|
puppetMaster: IPM
|
|
113
113
|
): Promise<IFinalResults> {
|
|
114
|
-
// deprecated?
|
|
115
114
|
const tLog = async (...l: string[]) => {
|
|
116
115
|
//
|
|
117
116
|
};
|
|
@@ -119,10 +118,11 @@ export abstract class BaseBuilder<
|
|
|
119
118
|
try {
|
|
120
119
|
const suiteDone: BaseSuite<I, O> = await runner(puppetMaster, tLog);
|
|
121
120
|
const fails = suiteDone.fails;
|
|
122
|
-
await puppetMaster.writeFileSync(
|
|
121
|
+
await puppetMaster.writeFileSync(
|
|
123
122
|
`tests.json`,
|
|
124
123
|
JSON.stringify(this.toObj(), null, 2),
|
|
125
|
-
|
|
124
|
+
"test"
|
|
125
|
+
);
|
|
126
126
|
|
|
127
127
|
return {
|
|
128
128
|
failed: fails > 0,
|
|
@@ -139,11 +139,6 @@ export abstract class BaseBuilder<
|
|
|
139
139
|
features: [],
|
|
140
140
|
};
|
|
141
141
|
}
|
|
142
|
-
|
|
143
|
-
// const logPromise = new Promise(async (res) => {
|
|
144
|
-
// await puppetMaster.end(access);
|
|
145
|
-
// res(true);
|
|
146
|
-
// });
|
|
147
142
|
},
|
|
148
143
|
};
|
|
149
144
|
});
|
package/src/lib/classBuilder.ts
CHANGED
|
@@ -82,10 +82,10 @@ export abstract class ClassBuilder<
|
|
|
82
82
|
);
|
|
83
83
|
|
|
84
84
|
const classyWhens = Object.entries(testImplementation.whens).reduce(
|
|
85
|
-
(a, [key, whEn]: [string, (x) => any]) => {
|
|
86
|
-
a[key] = (...payload: any) => {
|
|
85
|
+
(a, [key, whEn]: [string, (...x: any[]) => any]) => {
|
|
86
|
+
a[key] = (...payload: any[]) => {
|
|
87
87
|
return new whenKlasser.prototype.constructor(
|
|
88
|
-
`${
|
|
88
|
+
`${key}: ${payload && payload.toString()}`,
|
|
89
89
|
whEn(...payload)
|
|
90
90
|
);
|
|
91
91
|
};
|
|
@@ -94,14 +94,12 @@ export abstract class ClassBuilder<
|
|
|
94
94
|
{}
|
|
95
95
|
);
|
|
96
96
|
|
|
97
|
-
const classyThens = Object.entries
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
(a, [key, thEn]: [string, (s: I["iselection"]) => I["isubject"]]) => {
|
|
101
|
-
a[key] = (expected, ...x) => {
|
|
97
|
+
const classyThens = Object.entries(testImplementation.thens).reduce(
|
|
98
|
+
(a, [key, thEn]: [string, (...x: any[]) => any]) => {
|
|
99
|
+
a[key] = (...args: any[]) => {
|
|
102
100
|
return new thenKlasser.prototype.constructor(
|
|
103
|
-
`${
|
|
104
|
-
thEn(
|
|
101
|
+
`${key}: ${args && args.toString()}`,
|
|
102
|
+
thEn(...args)
|
|
105
103
|
);
|
|
106
104
|
};
|
|
107
105
|
return a;
|
package/src/lib/core.ts
CHANGED
|
@@ -42,7 +42,7 @@ export default abstract class TesterantoCore<
|
|
|
42
42
|
testAdapter: Partial<ITestAdapter<I>>,
|
|
43
43
|
uberCatcher: (cb: () => void) => void
|
|
44
44
|
) {
|
|
45
|
-
const fullAdapter = DefaultAdapter(testAdapter);
|
|
45
|
+
const fullAdapter = DefaultAdapter<I>(testAdapter);
|
|
46
46
|
|
|
47
47
|
super(
|
|
48
48
|
testImplementation,
|
|
@@ -64,20 +64,7 @@ export default abstract class TesterantoCore<
|
|
|
64
64
|
tr: ITTestResourceConfiguration,
|
|
65
65
|
pm: IPM
|
|
66
66
|
): Promise<I["isubject"]> {
|
|
67
|
-
return (
|
|
68
|
-
fullAdapter.beforeAll ||
|
|
69
|
-
(async (
|
|
70
|
-
input: I["iinput"],
|
|
71
|
-
artifactory: ITestArtifactory,
|
|
72
|
-
tr,
|
|
73
|
-
pm: IPM
|
|
74
|
-
) => input as any)
|
|
75
|
-
)(
|
|
76
|
-
s,
|
|
77
|
-
this.testResourceConfiguration,
|
|
78
|
-
// artifactory,
|
|
79
|
-
pm
|
|
80
|
-
);
|
|
67
|
+
return fullAdapter.beforeAll?.(s, tr, pm) ?? (s as unknown as Promise<I["isubject"]>);
|
|
81
68
|
}
|
|
82
69
|
} as any,
|
|
83
70
|
|
|
@@ -107,11 +94,8 @@ export default abstract class TesterantoCore<
|
|
|
107
94
|
artifactory,
|
|
108
95
|
pm
|
|
109
96
|
): Promise<unknown> {
|
|
110
|
-
return
|
|
111
|
-
res(fullAdapter.afterEach(store, key, pm))
|
|
112
|
-
);
|
|
97
|
+
return Promise.resolve(fullAdapter.afterEach(store, key, pm));
|
|
113
98
|
}
|
|
114
|
-
s;
|
|
115
99
|
} as any,
|
|
116
100
|
|
|
117
101
|
class When extends BaseWhen<I> {
|
package/src/lib/index.ts
CHANGED
|
@@ -13,23 +13,27 @@ import { BaseSuite } from "./BaseSuite";
|
|
|
13
13
|
import { IPM } from "./types";
|
|
14
14
|
|
|
15
15
|
export const BaseAdapter = <T extends Ibdd_in_any>(): ITestAdapter<T> => ({
|
|
16
|
-
beforeAll: async (
|
|
16
|
+
beforeAll: async (input: T["iinput"], testResource: ITTestResourceConfiguration, pm: IPM) => {
|
|
17
|
+
return input as unknown as T["isubject"];
|
|
18
|
+
},
|
|
17
19
|
beforeEach: async function (
|
|
18
20
|
subject: T["isubject"],
|
|
19
|
-
|
|
20
|
-
x: unknown,
|
|
21
|
+
initializer: (c?: any) => T["given"],
|
|
21
22
|
testResource: ITTestResourceConfiguration,
|
|
23
|
+
initialValues: any,
|
|
22
24
|
pm: IPM
|
|
23
|
-
): Promise<T["
|
|
24
|
-
return subject;
|
|
25
|
+
): Promise<T["istore"]> {
|
|
26
|
+
return subject as unknown as T["istore"];
|
|
25
27
|
},
|
|
26
|
-
afterEach: async (
|
|
27
|
-
afterAll: (store: T["istore"]) => undefined,
|
|
28
|
+
afterEach: async (store: T["istore"], key: string, pm: IPM) => Promise.resolve(store),
|
|
29
|
+
afterAll: (store: T["istore"], pm: IPM) => undefined,
|
|
28
30
|
butThen: async (
|
|
29
31
|
store: T["istore"],
|
|
30
|
-
thenCb:
|
|
32
|
+
thenCb: T["then"],
|
|
33
|
+
testResource: ITTestResourceConfiguration,
|
|
34
|
+
pm: IPM
|
|
31
35
|
) => {
|
|
32
|
-
return thenCb(store);
|
|
36
|
+
return thenCb(store, pm);
|
|
33
37
|
},
|
|
34
38
|
andWhen: async (
|
|
35
39
|
store: T["istore"],
|
|
@@ -37,23 +41,19 @@ export const BaseAdapter = <T extends Ibdd_in_any>(): ITestAdapter<T> => ({
|
|
|
37
41
|
testResource: ITTestResourceConfiguration,
|
|
38
42
|
pm: IPM
|
|
39
43
|
) => {
|
|
40
|
-
|
|
41
|
-
await whenCB(store, testResource, pm);
|
|
42
|
-
} catch (error) {
|
|
43
|
-
console.error("Error in andWhen:", error);
|
|
44
|
-
throw error; // Re-throw to maintain test failure
|
|
45
|
-
}
|
|
44
|
+
return whenCB(store, pm);
|
|
46
45
|
},
|
|
47
|
-
assertThis: (x:
|
|
46
|
+
assertThis: (x: T["then"]) => x,
|
|
48
47
|
});
|
|
49
48
|
|
|
50
49
|
export const DefaultAdapter = <T extends Ibdd_in_any>(
|
|
51
50
|
p: Partial<ITestAdapter<T>>
|
|
52
51
|
): ITestAdapter<T> => {
|
|
52
|
+
const base = BaseAdapter<T>();
|
|
53
53
|
return {
|
|
54
|
-
...
|
|
54
|
+
...base,
|
|
55
55
|
...p,
|
|
56
|
-
}
|
|
56
|
+
} as ITestAdapter<T>;
|
|
57
57
|
};
|
|
58
58
|
|
|
59
59
|
export type ITTestResourceConfiguration = {
|
|
@@ -84,7 +84,7 @@ export type ILogWriter = {
|
|
|
84
84
|
mkdirSync: () => any;
|
|
85
85
|
testArtiFactoryfileWriter: (
|
|
86
86
|
tLog: ITLog,
|
|
87
|
-
n: (Promise) => void
|
|
87
|
+
n: (promise: Promise<any>) => void
|
|
88
88
|
) => (fPath: string, value: unknown) => void;
|
|
89
89
|
};
|
|
90
90
|
|
|
@@ -48,7 +48,15 @@ export const testAdapter: ITestAdapter<I> = {
|
|
|
48
48
|
};
|
|
49
49
|
},
|
|
50
50
|
|
|
51
|
-
assertThis: (
|
|
52
|
-
|
|
51
|
+
assertThis: (actualResult, expectedResult) => {
|
|
52
|
+
// Handle both path assertions and our new test result
|
|
53
|
+
if (typeof actualResult === 'string' && actualResult.startsWith('PASS')) {
|
|
54
|
+
assert.equal(actualResult, 'PASS', 'tests.json should be written with correct path and content');
|
|
55
|
+
} else if (typeof actualResult === 'string' && actualResult.startsWith('FAIL')) {
|
|
56
|
+
// For the tests.json write test, we want to see what's actually happening
|
|
57
|
+
assert.fail(`Test failed: ${actualResult}`);
|
|
58
|
+
} else {
|
|
59
|
+
assert.equal(actualResult, expectedResult);
|
|
60
|
+
}
|
|
53
61
|
},
|
|
54
62
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
1
2
|
import { ITestImplementation } from "../../CoreTypes";
|
|
2
3
|
import { IPM } from "../types";
|
|
3
4
|
import { IProxy } from "../pmProxy";
|
|
@@ -11,30 +12,30 @@ function createPathRewriter(basePath: string): PathRewriter {
|
|
|
11
12
|
return (path: string) => {
|
|
12
13
|
if (!path) return path;
|
|
13
14
|
// Normalize paths and handle edge cases
|
|
14
|
-
const normalizedPath = path.replace(/\\/g,
|
|
15
|
-
const normalizedBase = basePath.replace(/\\/g,
|
|
16
|
-
|
|
15
|
+
const normalizedPath = path.replace(/\\/g, "/");
|
|
16
|
+
const normalizedBase = basePath.replace(/\\/g, "/");
|
|
17
|
+
|
|
17
18
|
// Handle absolute paths
|
|
18
|
-
if (normalizedPath.startsWith(
|
|
19
|
+
if (normalizedPath.startsWith("/")) {
|
|
19
20
|
return `${normalizedBase}${normalizedPath}`;
|
|
20
21
|
}
|
|
21
|
-
|
|
22
|
+
|
|
22
23
|
// Handle parent directory references
|
|
23
|
-
if (normalizedPath.includes(
|
|
24
|
-
const parts = normalizedPath.split(
|
|
25
|
-
const baseParts = normalizedBase.split(
|
|
26
|
-
|
|
24
|
+
if (normalizedPath.includes("../")) {
|
|
25
|
+
const parts = normalizedPath.split("/");
|
|
26
|
+
const baseParts = normalizedBase.split("/");
|
|
27
|
+
|
|
27
28
|
for (const part of parts) {
|
|
28
|
-
if (part ===
|
|
29
|
+
if (part === "..") {
|
|
29
30
|
baseParts.pop();
|
|
30
|
-
} else if (part !==
|
|
31
|
+
} else if (part !== ".") {
|
|
31
32
|
baseParts.push(part);
|
|
32
33
|
}
|
|
33
34
|
}
|
|
34
|
-
|
|
35
|
-
return baseParts.join(
|
|
35
|
+
|
|
36
|
+
return baseParts.join("/");
|
|
36
37
|
}
|
|
37
|
-
|
|
38
|
+
|
|
38
39
|
return `${normalizedBase}/${normalizedPath}`;
|
|
39
40
|
};
|
|
40
41
|
}
|
|
@@ -54,72 +55,82 @@ export const implementation: ITestImplementation<I, O, M> = {
|
|
|
54
55
|
thens: {
|
|
55
56
|
theButTheProxyReturns:
|
|
56
57
|
(method: string, expectedPath: string) =>
|
|
57
|
-
(store: { pathRewriter: PathRewriter }) => {
|
|
58
|
+
async (store: { pathRewriter: PathRewriter }) => {
|
|
58
59
|
const mockPm = new MockPMBase() as unknown as IPM;
|
|
59
60
|
const filepath = "test/path";
|
|
60
|
-
const rewritePath = createPathRewriter(`${filepath}/butThen`);
|
|
61
61
|
|
|
62
|
-
|
|
63
|
-
let
|
|
62
|
+
// Track the actual path that was used
|
|
63
|
+
let actualPath: string | undefined;
|
|
64
|
+
|
|
65
|
+
// Monkey patch to track the path
|
|
66
|
+
const originalWriteFileSync = mockPm.writeFileSync;
|
|
67
|
+
mockPm.writeFileSync = async (
|
|
68
|
+
path: string,
|
|
69
|
+
content: string,
|
|
70
|
+
testName?: string
|
|
71
|
+
) => {
|
|
72
|
+
actualPath = path;
|
|
73
|
+
return originalWriteFileSync.call(mockPm, path, content, testName);
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
const originalCreateWriteStream = mockPm.createWriteStream;
|
|
77
|
+
mockPm.createWriteStream = async (path: string, testName?: string) => {
|
|
78
|
+
actualPath = path;
|
|
79
|
+
return originalCreateWriteStream.call(mockPm, path, testName);
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
const originalScreencast = mockPm.screencast;
|
|
83
|
+
mockPm.screencast = async (opts: any, testName: string, page?: any) => {
|
|
84
|
+
actualPath = opts.path;
|
|
85
|
+
return originalScreencast.call(mockPm, opts, testName, page);
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
const originalCustomScreenShot = mockPm.customScreenShot;
|
|
89
|
+
mockPm.customScreenShot = async (
|
|
90
|
+
opts: any,
|
|
91
|
+
testName: string,
|
|
92
|
+
pageUid?: any
|
|
93
|
+
) => {
|
|
94
|
+
actualPath = opts.path;
|
|
95
|
+
return originalCustomScreenShot.call(mockPm, opts, testName, pageUid);
|
|
96
|
+
};
|
|
64
97
|
|
|
65
98
|
try {
|
|
66
99
|
switch (method) {
|
|
67
100
|
case "writeFileSync":
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
expectedPath.includes("empty")
|
|
73
|
-
? ""
|
|
74
|
-
: expectedPath.includes("nested")
|
|
75
|
-
? "nested/folder/test.txt"
|
|
76
|
-
: expectedPath.includes("spaces")
|
|
77
|
-
? "file with spaces.txt"
|
|
78
|
-
: expectedPath.includes("invalid")
|
|
79
|
-
? "../invalid.txt"
|
|
80
|
-
: "test.txt",
|
|
81
|
-
content
|
|
101
|
+
await butThenProxy(mockPm, filepath, {}).writeFileSync(
|
|
102
|
+
"test.txt",
|
|
103
|
+
"content",
|
|
104
|
+
"test"
|
|
82
105
|
);
|
|
83
|
-
actualPath = mockPm.getLastCall("writeFileSync")?.path;
|
|
84
|
-
actualContent = mockPm.getLastCall("writeFileSync")?.content;
|
|
85
106
|
break;
|
|
86
|
-
|
|
87
107
|
case "createWriteStream":
|
|
88
|
-
butThenProxy(mockPm, filepath, {}).createWriteStream(
|
|
89
|
-
|
|
108
|
+
await butThenProxy(mockPm, filepath, {}).createWriteStream(
|
|
109
|
+
"stream.txt",
|
|
110
|
+
"test"
|
|
90
111
|
);
|
|
91
|
-
actualPath = mockPm.getLastCall("createWriteStream")?.path;
|
|
92
112
|
break;
|
|
93
|
-
|
|
94
113
|
case "screencast":
|
|
95
|
-
butThenProxy(mockPm, filepath, {}).screencast(
|
|
96
|
-
{
|
|
97
|
-
path: "screen.png",
|
|
98
|
-
quality: 80,
|
|
99
|
-
fullPage: true,
|
|
100
|
-
},
|
|
114
|
+
await butThenProxy(mockPm, filepath, {}).screencast(
|
|
115
|
+
{ path: "screen.png" },
|
|
101
116
|
"test"
|
|
102
117
|
);
|
|
103
|
-
actualPath = mockPm.getLastCall("screencast")?.opts?.path;
|
|
104
|
-
actualContent = mockPm.getLastCall("screencast")?.opts;
|
|
105
118
|
break;
|
|
106
|
-
|
|
107
119
|
case "customScreenShot":
|
|
108
|
-
butThenProxy(mockPm, filepath, {}).customScreenShot(
|
|
109
|
-
|
|
120
|
+
await butThenProxy(mockPm, filepath, {}).customScreenShot(
|
|
121
|
+
{ path: "shot.png" },
|
|
122
|
+
"test"
|
|
123
|
+
);
|
|
110
124
|
break;
|
|
111
|
-
|
|
112
125
|
default:
|
|
113
126
|
throw new Error(`Unknown method: ${method}`);
|
|
114
127
|
}
|
|
115
128
|
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
return [actualPath, expectedPath, actualContent];
|
|
129
|
+
// For now, just return the actual path to be asserted against expectedPath
|
|
130
|
+
// The testAdapter.assertThis will handle the comparison
|
|
131
|
+
return actualPath;
|
|
121
132
|
} catch (error) {
|
|
122
|
-
|
|
133
|
+
throw error;
|
|
123
134
|
}
|
|
124
135
|
},
|
|
125
136
|
|
|
@@ -134,5 +145,45 @@ export const implementation: ITestImplementation<I, O, M> = {
|
|
|
134
145
|
}
|
|
135
146
|
return result;
|
|
136
147
|
},
|
|
148
|
+
// Test to verify tests.json is written correctly
|
|
149
|
+
verifyTestsJsonWrite:
|
|
150
|
+
() => async (store: { pathRewriter: PathRewriter }) => {
|
|
151
|
+
const mockPm = new MockPMBase() as unknown as IPM;
|
|
152
|
+
|
|
153
|
+
// Track the actual parameters passed to writeFileSync
|
|
154
|
+
let actualArgs: any[] | undefined;
|
|
155
|
+
const originalWriteFileSync = mockPm.writeFileSync;
|
|
156
|
+
mockPm.writeFileSync = async (...args: any[]) => {
|
|
157
|
+
actualArgs = args;
|
|
158
|
+
// Check if the first argument is being split
|
|
159
|
+
if (args[0] && typeof args[0] === "string") {
|
|
160
|
+
console.log(
|
|
161
|
+
`[TESTS.JSON DEBUG] First argument length: ${args[0].length}, value: "${args[0]}"`
|
|
162
|
+
);
|
|
163
|
+
}
|
|
164
|
+
return originalWriteFileSync.apply(mockPm, args);
|
|
165
|
+
};
|
|
166
|
+
|
|
167
|
+
// Simulate writing tests.json through the proxy
|
|
168
|
+
// This should mimic the call in BaseBuilder: puppetMaster.writeFileSync(`tests.json`, JSON.stringify(this.toObj(), null, 2))
|
|
169
|
+
const testData = { test: "data" };
|
|
170
|
+
// const result = await butThenProxy(mockPm, "test/path", {}).writeFileSync(
|
|
171
|
+
// "tests.json",
|
|
172
|
+
// JSON.stringify(testData, null, 2),
|
|
173
|
+
// "test"
|
|
174
|
+
// );
|
|
175
|
+
|
|
176
|
+
// Check if both path and content are correct
|
|
177
|
+
if (
|
|
178
|
+
actualArgs &&
|
|
179
|
+
actualArgs[0] === "test/path/butThen/tests.json" &&
|
|
180
|
+
actualArgs[1] === JSON.stringify(testData, null, 2) &&
|
|
181
|
+
actualArgs[2] === "test"
|
|
182
|
+
) {
|
|
183
|
+
return "PASS";
|
|
184
|
+
} else {
|
|
185
|
+
return `FAIL: args=${JSON.stringify(actualArgs)}`;
|
|
186
|
+
}
|
|
187
|
+
},
|
|
137
188
|
},
|
|
138
189
|
};
|
|
@@ -88,7 +88,7 @@ export class MockPMBase implements PM_Base {
|
|
|
88
88
|
|
|
89
89
|
testArtiFactoryfileWriter(
|
|
90
90
|
tLog: ITLog,
|
|
91
|
-
callback: (
|
|
91
|
+
callback: (promise: Promise<any>) => void
|
|
92
92
|
): any {
|
|
93
93
|
return (fPath: string, value: string | Buffer | any) => {
|
|
94
94
|
this.trackCall("testArtiFactoryfileWriter", { fPath, value });
|
|
@@ -84,6 +84,17 @@ export const specification: ITestSpecification<I, O> = (
|
|
|
84
84
|
],
|
|
85
85
|
"special chars test"
|
|
86
86
|
),
|
|
87
|
+
testsJsonTest: Given.SomeBaseString(
|
|
88
|
+
["butThenProxy should handle tests.json correctly"],
|
|
89
|
+
[],
|
|
90
|
+
[
|
|
91
|
+
Then.theButTheProxyReturns(
|
|
92
|
+
"writeFileSync",
|
|
93
|
+
"test/path/butThen/tests.json"
|
|
94
|
+
),
|
|
95
|
+
],
|
|
96
|
+
"tests.json test"
|
|
97
|
+
),
|
|
87
98
|
}),
|
|
88
99
|
|
|
89
100
|
Suite.Default("Proxy Type Coverage", {
|