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,7 +6,6 @@ exports.BaseThen = exports.BaseWhen = exports.BaseGiven = void 0;
|
|
|
6
6
|
const pmProxy_js_1 = require("./pmProxy.js");
|
|
7
7
|
class BaseGiven {
|
|
8
8
|
addArtifact(path) {
|
|
9
|
-
console.log("Given addArtifact", path);
|
|
10
9
|
const normalizedPath = path.replace(/\\/g, "/"); // Normalize path separators
|
|
11
10
|
this.artifacts.push(normalizedPath);
|
|
12
11
|
}
|
|
@@ -53,7 +52,9 @@ class BaseGiven {
|
|
|
53
52
|
tLog(e.stack);
|
|
54
53
|
});
|
|
55
54
|
try {
|
|
56
|
-
|
|
55
|
+
// Ensure addArtifact is properly bound to 'this'
|
|
56
|
+
const addArtifact = this.addArtifact.bind(this);
|
|
57
|
+
const proxiedPm = (0, pmProxy_js_1.beforeEachProxy)(pm, suiteNdx.toString(), addArtifact);
|
|
57
58
|
this.store = await this.givenThat(subject, testResourceConfiguration, givenArtifactory, this.givenCB, this.initialValues, proxiedPm);
|
|
58
59
|
}
|
|
59
60
|
catch (e) {
|
|
@@ -80,7 +81,9 @@ class BaseGiven {
|
|
|
80
81
|
}
|
|
81
82
|
finally {
|
|
82
83
|
try {
|
|
83
|
-
|
|
84
|
+
// Ensure addArtifact is properly bound to 'this'
|
|
85
|
+
const addArtifact = this.addArtifact.bind(this);
|
|
86
|
+
const proxiedPm = (0, pmProxy_js_1.afterEachProxy)(pm, suiteNdx.toString(), key, addArtifact);
|
|
84
87
|
// (proxiedPm as any).currentStep = this;
|
|
85
88
|
await this.afterEach(this.store, this.key, givenArtifactory, proxiedPm);
|
|
86
89
|
}
|
|
@@ -96,7 +99,6 @@ class BaseGiven {
|
|
|
96
99
|
exports.BaseGiven = BaseGiven;
|
|
97
100
|
class BaseWhen {
|
|
98
101
|
addArtifact(path) {
|
|
99
|
-
console.log("When addArtifact", path);
|
|
100
102
|
const normalizedPath = path.replace(/\\/g, "/"); // Normalize path separators
|
|
101
103
|
this.artifacts.push(normalizedPath);
|
|
102
104
|
}
|
|
@@ -119,7 +121,9 @@ class BaseWhen {
|
|
|
119
121
|
async test(store, testResourceConfiguration, tLog, pm, filepath) {
|
|
120
122
|
try {
|
|
121
123
|
// tLog(" When:", this.name);
|
|
122
|
-
|
|
124
|
+
// Ensure addArtifact is properly bound to 'this'
|
|
125
|
+
const addArtifact = this.addArtifact.bind(this);
|
|
126
|
+
const proxiedPm = (0, pmProxy_js_1.andWhenProxy)(pm, filepath, addArtifact);
|
|
123
127
|
// (proxiedPm as any).currentStep = this;
|
|
124
128
|
const result = await this.andWhen(store, this.whenCB, testResourceConfiguration, proxiedPm);
|
|
125
129
|
return result;
|
|
@@ -141,7 +145,6 @@ class BaseThen {
|
|
|
141
145
|
this.artifacts = [];
|
|
142
146
|
}
|
|
143
147
|
addArtifact(path) {
|
|
144
|
-
console.log("Then addArtifact", path);
|
|
145
148
|
const normalizedPath = path.replace(/\\/g, "/"); // Normalize path separators
|
|
146
149
|
this.artifacts.push(normalizedPath);
|
|
147
150
|
}
|
|
@@ -154,11 +157,28 @@ class BaseThen {
|
|
|
154
157
|
return obj;
|
|
155
158
|
}
|
|
156
159
|
async test(store, testResourceConfiguration, tLog, pm, filepath) {
|
|
157
|
-
|
|
160
|
+
// Ensure addArtifact is properly bound to 'this'
|
|
161
|
+
const addArtifact = this.addArtifact.bind(this);
|
|
162
|
+
const proxiedPm = (0, pmProxy_js_1.butThenProxy)(pm, filepath, addArtifact);
|
|
158
163
|
return this.butThen(store, async (s) => {
|
|
159
164
|
try {
|
|
160
165
|
if (typeof this.thenCB === "function") {
|
|
161
|
-
|
|
166
|
+
// Add debug logging to see what's being passed to thenCB
|
|
167
|
+
// Check if the thenCB is spreading the arguments incorrectly
|
|
168
|
+
// Wrap the proxy to see what's happening when writeFileSync is called
|
|
169
|
+
const wrappedPm = new Proxy(proxiedPm, {
|
|
170
|
+
get: (target, prop, receiver) => {
|
|
171
|
+
if (prop === "writeFileSync") {
|
|
172
|
+
return (...args) => {
|
|
173
|
+
console.log(`[DEBUG] writeFileSync called with args:`, args);
|
|
174
|
+
return target[prop](...args);
|
|
175
|
+
};
|
|
176
|
+
}
|
|
177
|
+
return target[prop];
|
|
178
|
+
},
|
|
179
|
+
});
|
|
180
|
+
const result = await this.thenCB(s, wrappedPm);
|
|
181
|
+
return result;
|
|
162
182
|
}
|
|
163
183
|
else {
|
|
164
184
|
return this.thenCB;
|
|
@@ -2,18 +2,24 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.testAdapter = void 0;
|
|
4
4
|
exports.testAdapter = {
|
|
5
|
-
beforeAll: async (input, testResource, pm) =>
|
|
5
|
+
beforeAll: async (input, testResource, pm) => {
|
|
6
|
+
return input;
|
|
7
|
+
},
|
|
6
8
|
beforeEach: async (subject, initializer, testResource, initialValues, pm) => {
|
|
7
|
-
const result = initializer();
|
|
9
|
+
const result = initializer()();
|
|
8
10
|
return result;
|
|
9
11
|
},
|
|
10
12
|
andWhen: async (store, whenCB, testResource, utils) => {
|
|
11
|
-
|
|
13
|
+
const result = whenCB(store, utils);
|
|
14
|
+
return result;
|
|
12
15
|
},
|
|
13
16
|
butThen: async (store, thenCB, testResource, pm) => {
|
|
14
|
-
|
|
17
|
+
const result = thenCB(store, pm);
|
|
18
|
+
return result;
|
|
19
|
+
},
|
|
20
|
+
afterEach: async (store, key, pm) => {
|
|
21
|
+
return store;
|
|
15
22
|
},
|
|
16
|
-
|
|
17
|
-
afterAll: () => { },
|
|
23
|
+
afterAll: (store, pm) => { },
|
|
18
24
|
assertThis: (x) => x,
|
|
19
25
|
};
|
|
@@ -8,7 +8,7 @@ exports.implementation = {
|
|
|
8
8
|
Default: "BaseBuilder test suite",
|
|
9
9
|
},
|
|
10
10
|
givens: {
|
|
11
|
-
"the default BaseBuilder": () => {
|
|
11
|
+
"the default BaseBuilder": () => () => {
|
|
12
12
|
return new baseBuilder_test_mock_1.MockBaseBuilder({}, // input
|
|
13
13
|
{}, // suitesOverrides
|
|
14
14
|
{}, // givenOverrides
|
|
@@ -18,19 +18,19 @@ exports.implementation = {
|
|
|
18
18
|
() => [] // testSpecification
|
|
19
19
|
);
|
|
20
20
|
},
|
|
21
|
-
"a BaseBuilder with TestInput": (input) => {
|
|
21
|
+
"a BaseBuilder with TestInput": (input) => () => {
|
|
22
22
|
return new baseBuilder_test_mock_1.MockBaseBuilder(input, {}, {}, {}, {}, { ports: [] }, () => []);
|
|
23
23
|
},
|
|
24
|
-
"a BaseBuilder with Test Resource Requirements": (requirements) => {
|
|
24
|
+
"a BaseBuilder with Test Resource Requirements": (requirements) => () => {
|
|
25
25
|
return new baseBuilder_test_mock_1.MockBaseBuilder({}, {}, {}, {}, {}, requirements, () => []);
|
|
26
26
|
},
|
|
27
27
|
},
|
|
28
28
|
whens: {
|
|
29
|
-
addArtifact: (artifact) => (builder) => {
|
|
29
|
+
addArtifact: (artifact) => (builder, utils) => {
|
|
30
30
|
builder.artifacts.push(artifact);
|
|
31
31
|
return builder;
|
|
32
32
|
},
|
|
33
|
-
setTestJobs: (jobs) => (builder) => {
|
|
33
|
+
setTestJobs: (jobs) => (builder, utils) => {
|
|
34
34
|
builder.testJobs = jobs;
|
|
35
35
|
return builder;
|
|
36
36
|
},
|
|
@@ -59,13 +59,13 @@ exports.implementation = {
|
|
|
59
59
|
});
|
|
60
60
|
return builder;
|
|
61
61
|
},
|
|
62
|
-
"it generates TestSpecifications": () => (builder) => {
|
|
62
|
+
"it generates TestSpecifications": () => (builder, utils) => {
|
|
63
63
|
if (!Array.isArray(builder.specs)) {
|
|
64
64
|
throw new Error("Specs were not generated");
|
|
65
65
|
}
|
|
66
66
|
return builder;
|
|
67
67
|
},
|
|
68
|
-
"it creates jobs": () => (builder) => {
|
|
68
|
+
"it creates jobs": () => (builder, utils) => {
|
|
69
69
|
if (!Array.isArray(builder.testJobs)) {
|
|
70
70
|
throw new Error("Test jobs were not created");
|
|
71
71
|
}
|
|
@@ -79,31 +79,31 @@ exports.implementation = {
|
|
|
79
79
|
utils.writeFileSync("artifact_test.txt", "test");
|
|
80
80
|
return builder;
|
|
81
81
|
},
|
|
82
|
-
resourceRequirementsSet: () => (builder) => {
|
|
82
|
+
resourceRequirementsSet: () => (builder, utils) => {
|
|
83
83
|
if (!builder.testResourceRequirement) {
|
|
84
84
|
throw new Error("Resource requirements not set");
|
|
85
85
|
}
|
|
86
86
|
return builder;
|
|
87
87
|
},
|
|
88
|
-
suitesOverridesConfigured: () => (builder) => {
|
|
88
|
+
suitesOverridesConfigured: () => (builder, utils) => {
|
|
89
89
|
if (!builder.suitesOverrides) {
|
|
90
90
|
throw new Error("Suites overrides not configured");
|
|
91
91
|
}
|
|
92
92
|
return builder;
|
|
93
93
|
},
|
|
94
|
-
givensOverridesConfigured: () => (builder) => {
|
|
94
|
+
givensOverridesConfigured: () => (builder, utils) => {
|
|
95
95
|
if (!builder.givenOverides) {
|
|
96
96
|
throw new Error("Givens overrides not configured");
|
|
97
97
|
}
|
|
98
98
|
return builder;
|
|
99
99
|
},
|
|
100
|
-
whensOverridesConfigured: () => (builder) => {
|
|
100
|
+
whensOverridesConfigured: () => (builder, utils) => {
|
|
101
101
|
if (!builder.whenOverides) {
|
|
102
102
|
throw new Error("Whens overrides not configured");
|
|
103
103
|
}
|
|
104
104
|
return builder;
|
|
105
105
|
},
|
|
106
|
-
thensOverridesConfigured: () => (builder) => {
|
|
106
|
+
thensOverridesConfigured: () => (builder, utils) => {
|
|
107
107
|
if (!builder.thenOverides) {
|
|
108
108
|
throw new Error("Thens overrides not configured");
|
|
109
109
|
}
|
|
@@ -36,17 +36,13 @@ class BaseBuilder {
|
|
|
36
36
|
},
|
|
37
37
|
runner,
|
|
38
38
|
receiveTestResourceConfig: async function (puppetMaster) {
|
|
39
|
-
// deprecated?
|
|
40
39
|
const tLog = async (...l) => {
|
|
41
40
|
//
|
|
42
41
|
};
|
|
43
42
|
try {
|
|
44
43
|
const suiteDone = await runner(puppetMaster, tLog);
|
|
45
44
|
const fails = suiteDone.fails;
|
|
46
|
-
await puppetMaster.writeFileSync(
|
|
47
|
-
`tests.json`,
|
|
48
|
-
JSON.stringify(this.toObj(), null, 2),
|
|
49
|
-
]);
|
|
45
|
+
await puppetMaster.writeFileSync(`tests.json`, JSON.stringify(this.toObj(), null, 2), "test");
|
|
50
46
|
return {
|
|
51
47
|
failed: fails > 0,
|
|
52
48
|
fails,
|
|
@@ -63,10 +59,6 @@ class BaseBuilder {
|
|
|
63
59
|
features: [],
|
|
64
60
|
};
|
|
65
61
|
}
|
|
66
|
-
// const logPromise = new Promise(async (res) => {
|
|
67
|
-
// await puppetMaster.end(access);
|
|
68
|
-
// res(true);
|
|
69
|
-
// });
|
|
70
62
|
},
|
|
71
63
|
};
|
|
72
64
|
});
|
|
@@ -20,13 +20,13 @@ class ClassBuilder extends basebuilder_js_1.BaseBuilder {
|
|
|
20
20
|
}, {});
|
|
21
21
|
const classyWhens = Object.entries(testImplementation.whens).reduce((a, [key, whEn]) => {
|
|
22
22
|
a[key] = (...payload) => {
|
|
23
|
-
return new whenKlasser.prototype.constructor(`${
|
|
23
|
+
return new whenKlasser.prototype.constructor(`${key}: ${payload && payload.toString()}`, whEn(...payload));
|
|
24
24
|
};
|
|
25
25
|
return a;
|
|
26
26
|
}, {});
|
|
27
27
|
const classyThens = Object.entries(testImplementation.thens).reduce((a, [key, thEn]) => {
|
|
28
|
-
a[key] = (
|
|
29
|
-
return new thenKlasser.prototype.constructor(`${
|
|
28
|
+
a[key] = (...args) => {
|
|
29
|
+
return new thenKlasser.prototype.constructor(`${key}: ${args && args.toString()}`, thEn(...args));
|
|
30
30
|
};
|
|
31
31
|
return a;
|
|
32
32
|
}, {});
|
|
@@ -17,10 +17,8 @@ class TesterantoCore extends classBuilder_js_1.ClassBuilder {
|
|
|
17
17
|
return fullAdapter.assertThis(t);
|
|
18
18
|
}
|
|
19
19
|
async setup(s, artifactory, tr, pm) {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
// artifactory,
|
|
23
|
-
pm);
|
|
20
|
+
var _a, _b;
|
|
21
|
+
return (_b = (_a = fullAdapter.beforeAll) === null || _a === void 0 ? void 0 : _a.call(fullAdapter, s, tr, pm)) !== null && _b !== void 0 ? _b : s;
|
|
24
22
|
}
|
|
25
23
|
}, class Given extends abstractBase_js_1.BaseGiven {
|
|
26
24
|
constructor() {
|
|
@@ -31,7 +29,7 @@ class TesterantoCore extends classBuilder_js_1.ClassBuilder {
|
|
|
31
29
|
return fullAdapter.beforeEach(subject, initializer, testResource, initialValues, pm);
|
|
32
30
|
}
|
|
33
31
|
afterEach(store, key, artifactory, pm) {
|
|
34
|
-
return
|
|
32
|
+
return Promise.resolve(fullAdapter.afterEach(store, key, pm));
|
|
35
33
|
}
|
|
36
34
|
}, class When extends abstractBase_js_1.BaseWhen {
|
|
37
35
|
async andWhen(store, whenCB, testResource, pm) {
|
|
@@ -4,29 +4,26 @@
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
5
|
exports.defaultTestResourceRequirement = exports.DefaultAdapter = exports.BaseAdapter = void 0;
|
|
6
6
|
const BaseAdapter = () => ({
|
|
7
|
-
beforeAll: async (
|
|
8
|
-
|
|
7
|
+
beforeAll: async (input, testResource, pm) => {
|
|
8
|
+
return input;
|
|
9
|
+
},
|
|
10
|
+
beforeEach: async function (subject, initializer, testResource, initialValues, pm) {
|
|
9
11
|
return subject;
|
|
10
12
|
},
|
|
11
|
-
afterEach: async (
|
|
12
|
-
afterAll: (store) => undefined,
|
|
13
|
-
butThen: async (store, thenCb) => {
|
|
14
|
-
return thenCb(store);
|
|
13
|
+
afterEach: async (store, key, pm) => Promise.resolve(store),
|
|
14
|
+
afterAll: (store, pm) => undefined,
|
|
15
|
+
butThen: async (store, thenCb, testResource, pm) => {
|
|
16
|
+
return thenCb(store, pm);
|
|
15
17
|
},
|
|
16
18
|
andWhen: async (store, whenCB, testResource, pm) => {
|
|
17
|
-
|
|
18
|
-
await whenCB(store, testResource, pm);
|
|
19
|
-
}
|
|
20
|
-
catch (error) {
|
|
21
|
-
console.error("Error in andWhen:", error);
|
|
22
|
-
throw error; // Re-throw to maintain test failure
|
|
23
|
-
}
|
|
19
|
+
return whenCB(store, pm);
|
|
24
20
|
},
|
|
25
21
|
assertThis: (x) => x,
|
|
26
22
|
});
|
|
27
23
|
exports.BaseAdapter = BaseAdapter;
|
|
28
24
|
const DefaultAdapter = (p) => {
|
|
29
|
-
|
|
25
|
+
const base = (0, exports.BaseAdapter)();
|
|
26
|
+
return Object.assign(Object.assign({}, base), p);
|
|
30
27
|
};
|
|
31
28
|
exports.DefaultAdapter = DefaultAdapter;
|
|
32
29
|
exports.defaultTestResourceRequirement = {
|
|
@@ -10,10 +10,16 @@ const baseProxy = function (pm, mappings) {
|
|
|
10
10
|
const method = mapping[0];
|
|
11
11
|
const arger = mapping[1];
|
|
12
12
|
if (prop === method) {
|
|
13
|
-
return (...x) =>
|
|
13
|
+
return (...x) => {
|
|
14
|
+
// Add debug logging
|
|
15
|
+
const modifiedArgs = arger(...x);
|
|
16
|
+
return target[prop](...modifiedArgs);
|
|
17
|
+
};
|
|
14
18
|
}
|
|
15
19
|
}
|
|
16
|
-
return (...x) =>
|
|
20
|
+
return (...x) => {
|
|
21
|
+
return target[prop](...x);
|
|
22
|
+
};
|
|
17
23
|
},
|
|
18
24
|
});
|
|
19
25
|
};
|
|
@@ -53,10 +59,27 @@ const butThenProxy = (pm, filepath, addArtifact) => {
|
|
|
53
59
|
],
|
|
54
60
|
[
|
|
55
61
|
"writeFileSync",
|
|
56
|
-
(fp, contents) => {
|
|
62
|
+
(fp, contents, testName) => {
|
|
63
|
+
console.log(`[DEBUG] butThenProxy writeFileSync: fp="${fp}" (type: ${typeof fp}), contents="${contents}" (type: ${typeof contents}), testName="${testName}" (type: ${typeof testName})`);
|
|
64
|
+
// Check if fp is being treated as individual characters
|
|
65
|
+
if (typeof fp !== "string") {
|
|
66
|
+
console.log(`[ERROR] fp is not a string:`, fp);
|
|
67
|
+
// If fp is not a string, try to handle it
|
|
68
|
+
if (Array.isArray(fp)) {
|
|
69
|
+
// If it's an array, join it back into a string
|
|
70
|
+
fp = fp.join("");
|
|
71
|
+
console.log(`[DEBUG] Converted array to string: "${fp}"`);
|
|
72
|
+
}
|
|
73
|
+
else {
|
|
74
|
+
// For other cases, convert to string
|
|
75
|
+
fp = String(fp);
|
|
76
|
+
console.log(`[DEBUG] Converted to string: "${fp}"`);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
57
79
|
const path = `${filepath}/butThen/${fp}`;
|
|
80
|
+
console.log(`[DEBUG] Generated path: "${path}"`);
|
|
58
81
|
addArtifact(path);
|
|
59
|
-
return [path, contents];
|
|
82
|
+
return [path, contents, testName];
|
|
60
83
|
},
|
|
61
84
|
],
|
|
62
85
|
[
|
|
@@ -96,10 +119,10 @@ const andWhenProxy = (pm, filepath, addArtifact) => {
|
|
|
96
119
|
],
|
|
97
120
|
[
|
|
98
121
|
"writeFileSync",
|
|
99
|
-
(fp, contents) => {
|
|
122
|
+
(fp, contents, testName) => {
|
|
100
123
|
const path = `${filepath}/andWhen/${fp}`;
|
|
101
124
|
addArtifact(path);
|
|
102
|
-
return [path, contents];
|
|
125
|
+
return [path, contents, testName];
|
|
103
126
|
},
|
|
104
127
|
],
|
|
105
128
|
[
|
|
@@ -140,10 +163,10 @@ const afterEachProxy = (pm, suite, given, addArtifact) => {
|
|
|
140
163
|
],
|
|
141
164
|
[
|
|
142
165
|
"writeFileSync",
|
|
143
|
-
(fp, contents) => {
|
|
166
|
+
(fp, contents, testName) => {
|
|
144
167
|
const path = `suite-${suite}/given-${given}/afterEach/${fp}`;
|
|
145
168
|
addArtifact(path);
|
|
146
|
-
return [path, contents];
|
|
169
|
+
return [path, contents, testName];
|
|
147
170
|
},
|
|
148
171
|
],
|
|
149
172
|
[
|
|
@@ -176,10 +199,10 @@ const beforeEachProxy = (pm, suite, addArtifact) => {
|
|
|
176
199
|
],
|
|
177
200
|
[
|
|
178
201
|
"writeFileSync",
|
|
179
|
-
(fp, contents) => {
|
|
202
|
+
(fp, contents, testName) => {
|
|
180
203
|
const path = `suite-${suite}/beforeEach/${fp}`;
|
|
181
204
|
addArtifact(path);
|
|
182
|
-
return [path, contents];
|
|
205
|
+
return [path, contents, testName];
|
|
183
206
|
},
|
|
184
207
|
],
|
|
185
208
|
[
|
|
@@ -208,10 +231,10 @@ const beforeAllProxy = (pm, suite, addArtifact) => {
|
|
|
208
231
|
return baseProxy(pm, [
|
|
209
232
|
[
|
|
210
233
|
"writeFileSync",
|
|
211
|
-
(fp, contents) => {
|
|
234
|
+
(fp, contents, testName) => {
|
|
212
235
|
const path = `suite-${suite}/beforeAll/${fp}`;
|
|
213
236
|
addArtifact(path);
|
|
214
|
-
return [path, contents];
|
|
237
|
+
return [path, contents, testName];
|
|
215
238
|
},
|
|
216
239
|
],
|
|
217
240
|
[
|
|
@@ -248,10 +271,10 @@ const afterAllProxy = (pm, suite, addArtifact) => {
|
|
|
248
271
|
],
|
|
249
272
|
[
|
|
250
273
|
"writeFileSync",
|
|
251
|
-
(fp, contents) => {
|
|
274
|
+
(fp, contents, testName) => {
|
|
252
275
|
const path = `suite-${suite}/afterAll/${fp}`;
|
|
253
276
|
addArtifact(path);
|
|
254
|
-
return [path, contents];
|
|
277
|
+
return [path, contents, testName];
|
|
255
278
|
},
|
|
256
279
|
],
|
|
257
280
|
[
|
|
@@ -38,7 +38,17 @@ exports.testAdapter = {
|
|
|
38
38
|
beforeEachProxy: input.butThenProxy(new mockPMBase_1.MockPMBase(), theGivenString),
|
|
39
39
|
};
|
|
40
40
|
},
|
|
41
|
-
assertThis: (
|
|
42
|
-
|
|
41
|
+
assertThis: (actualResult, expectedResult) => {
|
|
42
|
+
// Handle both path assertions and our new test result
|
|
43
|
+
if (typeof actualResult === 'string' && actualResult.startsWith('PASS')) {
|
|
44
|
+
chai_1.assert.equal(actualResult, 'PASS', 'tests.json should be written with correct path and content');
|
|
45
|
+
}
|
|
46
|
+
else if (typeof actualResult === 'string' && actualResult.startsWith('FAIL')) {
|
|
47
|
+
// For the tests.json write test, we want to see what's actually happening
|
|
48
|
+
chai_1.assert.fail(`Test failed: ${actualResult}`);
|
|
49
|
+
}
|
|
50
|
+
else {
|
|
51
|
+
chai_1.assert.equal(actualResult, expectedResult);
|
|
52
|
+
}
|
|
43
53
|
},
|
|
44
54
|
};
|
|
@@ -8,25 +8,25 @@ function createPathRewriter(basePath) {
|
|
|
8
8
|
if (!path)
|
|
9
9
|
return path;
|
|
10
10
|
// Normalize paths and handle edge cases
|
|
11
|
-
const normalizedPath = path.replace(/\\/g,
|
|
12
|
-
const normalizedBase = basePath.replace(/\\/g,
|
|
11
|
+
const normalizedPath = path.replace(/\\/g, "/");
|
|
12
|
+
const normalizedBase = basePath.replace(/\\/g, "/");
|
|
13
13
|
// Handle absolute paths
|
|
14
|
-
if (normalizedPath.startsWith(
|
|
14
|
+
if (normalizedPath.startsWith("/")) {
|
|
15
15
|
return `${normalizedBase}${normalizedPath}`;
|
|
16
16
|
}
|
|
17
17
|
// Handle parent directory references
|
|
18
|
-
if (normalizedPath.includes(
|
|
19
|
-
const parts = normalizedPath.split(
|
|
20
|
-
const baseParts = normalizedBase.split(
|
|
18
|
+
if (normalizedPath.includes("../")) {
|
|
19
|
+
const parts = normalizedPath.split("/");
|
|
20
|
+
const baseParts = normalizedBase.split("/");
|
|
21
21
|
for (const part of parts) {
|
|
22
|
-
if (part ===
|
|
22
|
+
if (part === "..") {
|
|
23
23
|
baseParts.pop();
|
|
24
24
|
}
|
|
25
|
-
else if (part !==
|
|
25
|
+
else if (part !== ".") {
|
|
26
26
|
baseParts.push(part);
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
|
-
return baseParts.join(
|
|
29
|
+
return baseParts.join("/");
|
|
30
30
|
}
|
|
31
31
|
return `${normalizedBase}/${normalizedPath}`;
|
|
32
32
|
};
|
|
@@ -42,58 +42,55 @@ exports.implementation = {
|
|
|
42
42
|
// functions have no mutations
|
|
43
43
|
},
|
|
44
44
|
thens: {
|
|
45
|
-
theButTheProxyReturns: (method, expectedPath) => (store) => {
|
|
46
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
45
|
+
theButTheProxyReturns: (method, expectedPath) => async (store) => {
|
|
47
46
|
const mockPm = new mockPMBase_1.MockPMBase();
|
|
48
47
|
const filepath = "test/path";
|
|
49
|
-
|
|
48
|
+
// Track the actual path that was used
|
|
50
49
|
let actualPath;
|
|
51
|
-
|
|
50
|
+
// Monkey patch to track the path
|
|
51
|
+
const originalWriteFileSync = mockPm.writeFileSync;
|
|
52
|
+
mockPm.writeFileSync = async (path, content, testName) => {
|
|
53
|
+
actualPath = path;
|
|
54
|
+
return originalWriteFileSync.call(mockPm, path, content, testName);
|
|
55
|
+
};
|
|
56
|
+
const originalCreateWriteStream = mockPm.createWriteStream;
|
|
57
|
+
mockPm.createWriteStream = async (path, testName) => {
|
|
58
|
+
actualPath = path;
|
|
59
|
+
return originalCreateWriteStream.call(mockPm, path, testName);
|
|
60
|
+
};
|
|
61
|
+
const originalScreencast = mockPm.screencast;
|
|
62
|
+
mockPm.screencast = async (opts, testName, page) => {
|
|
63
|
+
actualPath = opts.path;
|
|
64
|
+
return originalScreencast.call(mockPm, opts, testName, page);
|
|
65
|
+
};
|
|
66
|
+
const originalCustomScreenShot = mockPm.customScreenShot;
|
|
67
|
+
mockPm.customScreenShot = async (opts, testName, pageUid) => {
|
|
68
|
+
actualPath = opts.path;
|
|
69
|
+
return originalCustomScreenShot.call(mockPm, opts, testName, pageUid);
|
|
70
|
+
};
|
|
52
71
|
try {
|
|
53
72
|
switch (method) {
|
|
54
73
|
case "writeFileSync":
|
|
55
|
-
|
|
56
|
-
? "test content"
|
|
57
|
-
: "default content";
|
|
58
|
-
(0, pmProxy_1.butThenProxy)(mockPm, filepath, {}).writeFileSync(expectedPath.includes("empty")
|
|
59
|
-
? ""
|
|
60
|
-
: expectedPath.includes("nested")
|
|
61
|
-
? "nested/folder/test.txt"
|
|
62
|
-
: expectedPath.includes("spaces")
|
|
63
|
-
? "file with spaces.txt"
|
|
64
|
-
: expectedPath.includes("invalid")
|
|
65
|
-
? "../invalid.txt"
|
|
66
|
-
: "test.txt", content);
|
|
67
|
-
actualPath = (_a = mockPm.getLastCall("writeFileSync")) === null || _a === void 0 ? void 0 : _a.path;
|
|
68
|
-
actualContent = (_b = mockPm.getLastCall("writeFileSync")) === null || _b === void 0 ? void 0 : _b.content;
|
|
74
|
+
await (0, pmProxy_1.butThenProxy)(mockPm, filepath, {}).writeFileSync("test.txt", "content", "test");
|
|
69
75
|
break;
|
|
70
76
|
case "createWriteStream":
|
|
71
|
-
(0, pmProxy_1.butThenProxy)(mockPm, filepath, {}).createWriteStream(
|
|
72
|
-
actualPath = (_c = mockPm.getLastCall("createWriteStream")) === null || _c === void 0 ? void 0 : _c.path;
|
|
77
|
+
await (0, pmProxy_1.butThenProxy)(mockPm, filepath, {}).createWriteStream("stream.txt", "test");
|
|
73
78
|
break;
|
|
74
79
|
case "screencast":
|
|
75
|
-
(0, pmProxy_1.butThenProxy)(mockPm, filepath, {}).screencast({
|
|
76
|
-
path: "screen.png",
|
|
77
|
-
quality: 80,
|
|
78
|
-
fullPage: true,
|
|
79
|
-
}, "test");
|
|
80
|
-
actualPath = (_e = (_d = mockPm.getLastCall("screencast")) === null || _d === void 0 ? void 0 : _d.opts) === null || _e === void 0 ? void 0 : _e.path;
|
|
81
|
-
actualContent = (_f = mockPm.getLastCall("screencast")) === null || _f === void 0 ? void 0 : _f.opts;
|
|
80
|
+
await (0, pmProxy_1.butThenProxy)(mockPm, filepath, {}).screencast({ path: "screen.png" }, "test");
|
|
82
81
|
break;
|
|
83
82
|
case "customScreenShot":
|
|
84
|
-
(0, pmProxy_1.butThenProxy)(mockPm, filepath, {}).customScreenShot({ path: "shot.png" }, "test");
|
|
85
|
-
actualPath = (_h = (_g = mockPm.getLastCall("customScreenShot")) === null || _g === void 0 ? void 0 : _g.opts) === null || _h === void 0 ? void 0 : _h.path;
|
|
83
|
+
await (0, pmProxy_1.butThenProxy)(mockPm, filepath, {}).customScreenShot({ path: "shot.png" }, "test");
|
|
86
84
|
break;
|
|
87
85
|
default:
|
|
88
86
|
throw new Error(`Unknown method: ${method}`);
|
|
89
87
|
}
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
return [actualPath, expectedPath, actualContent];
|
|
88
|
+
// For now, just return the actual path to be asserted against expectedPath
|
|
89
|
+
// The testAdapter.assertThis will handle the comparison
|
|
90
|
+
return actualPath;
|
|
94
91
|
}
|
|
95
92
|
catch (error) {
|
|
96
|
-
|
|
93
|
+
throw error;
|
|
97
94
|
}
|
|
98
95
|
},
|
|
99
96
|
verifyContent: (expectedContent) => (result) => {
|
|
@@ -103,5 +100,38 @@ exports.implementation = {
|
|
|
103
100
|
}
|
|
104
101
|
return result;
|
|
105
102
|
},
|
|
103
|
+
// Test to verify tests.json is written correctly
|
|
104
|
+
verifyTestsJsonWrite: () => async (store) => {
|
|
105
|
+
const mockPm = new mockPMBase_1.MockPMBase();
|
|
106
|
+
// Track the actual parameters passed to writeFileSync
|
|
107
|
+
let actualArgs;
|
|
108
|
+
const originalWriteFileSync = mockPm.writeFileSync;
|
|
109
|
+
mockPm.writeFileSync = async (...args) => {
|
|
110
|
+
actualArgs = args;
|
|
111
|
+
// Check if the first argument is being split
|
|
112
|
+
if (args[0] && typeof args[0] === "string") {
|
|
113
|
+
console.log(`[TESTS.JSON DEBUG] First argument length: ${args[0].length}, value: "${args[0]}"`);
|
|
114
|
+
}
|
|
115
|
+
return originalWriteFileSync.apply(mockPm, args);
|
|
116
|
+
};
|
|
117
|
+
// Simulate writing tests.json through the proxy
|
|
118
|
+
// This should mimic the call in BaseBuilder: puppetMaster.writeFileSync(`tests.json`, JSON.stringify(this.toObj(), null, 2))
|
|
119
|
+
const testData = { test: "data" };
|
|
120
|
+
// const result = await butThenProxy(mockPm, "test/path", {}).writeFileSync(
|
|
121
|
+
// "tests.json",
|
|
122
|
+
// JSON.stringify(testData, null, 2),
|
|
123
|
+
// "test"
|
|
124
|
+
// );
|
|
125
|
+
// Check if both path and content are correct
|
|
126
|
+
if (actualArgs &&
|
|
127
|
+
actualArgs[0] === "test/path/butThen/tests.json" &&
|
|
128
|
+
actualArgs[1] === JSON.stringify(testData, null, 2) &&
|
|
129
|
+
actualArgs[2] === "test") {
|
|
130
|
+
return "PASS";
|
|
131
|
+
}
|
|
132
|
+
else {
|
|
133
|
+
return `FAIL: args=${JSON.stringify(actualArgs)}`;
|
|
134
|
+
}
|
|
135
|
+
},
|
|
106
136
|
},
|
|
107
137
|
};
|
|
@@ -24,6 +24,9 @@ const specification = (Suite, Given, When, Then) => [
|
|
|
24
24
|
specialCharsTest: Given.SomeBaseString(["butThenProxy should handle special characters in paths"], [], [
|
|
25
25
|
Then.theButTheProxyReturns("writeFileSync", "test/path/butThen/file with spaces.txt"),
|
|
26
26
|
], "special chars test"),
|
|
27
|
+
testsJsonTest: Given.SomeBaseString(["butThenProxy should handle tests.json correctly"], [], [
|
|
28
|
+
Then.theButTheProxyReturns("writeFileSync", "test/path/butThen/tests.json"),
|
|
29
|
+
], "tests.json test"),
|
|
27
30
|
}),
|
|
28
31
|
Suite.Default("Proxy Type Coverage", {
|
|
29
32
|
// Test all proxy types
|