testeranto 0.202.0 → 0.205.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.vscode/settings.json +1 -0
- package/Dockerfile.golang +14 -0
- package/Dockerfile.mothership +11 -0
- package/Dockerfile.node +9 -0
- package/Dockerfile.python +19 -0
- package/Dockerfile.web +9 -0
- package/README.md +26 -1
- package/UX/chache/index.md +11 -0
- package/bundle.js +2 -11
- package/dist/cjs-shim.js +2 -0
- package/dist/common/example/Calculator.js +105 -0
- package/dist/common/example/Calculator.test.adapter.js +39 -0
- package/dist/common/example/Calculator.test.implementation.js +50 -0
- package/dist/common/example/Calculator.test.js +11 -0
- package/dist/common/example/Calculator.test.specification.js +92 -0
- package/dist/common/example/Calculator.test.types.js +3 -0
- package/dist/common/scripts/build-example.js +105 -0
- package/dist/common/src/Helpo.js +55 -0
- package/dist/common/src/Init.js +9 -1
- package/dist/common/src/Node.js +0 -1
- package/dist/common/src/PM/golingvuBuild.js +46 -0
- package/dist/common/src/PM/pitonoBuild.js +46 -0
- package/dist/common/src/PM/utils.js +8 -1
- package/dist/common/src/PM/web.js +4 -8
- package/dist/common/src/Pure.js +0 -14
- package/dist/common/src/Pure.test.js +1 -6
- package/dist/common/src/Web.js +1 -35
- package/dist/common/src/WebSidecar.js +0 -1
- package/dist/common/src/app/FileService.js +25 -0
- package/dist/common/src/app/api.js +73 -0
- package/dist/common/src/app/backend/PM_0.js +317 -0
- package/dist/common/src/app/backend/PM_1_WithProcesses.js +922 -0
- package/dist/common/src/app/backend/PM_2_WithTCP.js +244 -0
- package/dist/common/src/app/backend/PM_WithBuild.js +120 -0
- package/dist/common/src/app/backend/PM_WithEslintAndTsc.js +133 -0
- package/dist/common/src/app/backend/PM_WithGit.js +586 -0
- package/dist/common/src/app/backend/PM_WithHelpo.js +257 -0
- package/dist/common/src/app/backend/PM_WithProcesses.js +1083 -0
- package/dist/common/src/app/backend/PM_WithTCP.js +388 -0
- package/dist/common/src/app/backend/getAllFilesRecursively.js +22 -0
- package/dist/common/src/app/backend/main.js +804 -0
- package/dist/common/src/app/backend/makePrompt.js +73 -0
- package/dist/common/src/app/backend/utils.js +144 -0
- package/dist/common/src/app/frontend/App.js +206 -0
- package/dist/common/src/app/frontend/DevelopmentFileService.js +98 -0
- package/dist/common/src/app/frontend/GitFileService.js +262 -0
- package/dist/common/src/app/frontend/GitHubAuthService.js +184 -0
- package/dist/common/src/app/frontend/api.js +93 -0
- package/dist/common/src/app/frontend/components/DesignEditorPage.js +208 -0
- package/dist/common/src/app/frontend/components/SunriseAnimation.js +291 -0
- package/dist/common/src/app/frontend/components/SunriseAnimation.test/interface.js +68 -0
- package/dist/common/src/app/frontend/components/pure/AppFrame.js +177 -0
- package/dist/common/src/app/frontend/components/pure/GitHubLoginButton.js +18 -0
- package/dist/common/src/app/frontend/components/pure/GitIntegrationView.js +383 -0
- package/dist/common/src/app/frontend/components/pure/HelpoChatDrawer.js +179 -0
- package/dist/common/src/app/frontend/components/pure/MagicRobotModal.js +73 -0
- package/dist/common/src/app/frontend/components/pure/ModalContent.test/index.js +61 -0
- package/dist/common/src/app/frontend/components/pure/NavBar.js +45 -0
- package/dist/common/src/app/frontend/components/pure/ProcessDetails.js +49 -0
- package/dist/common/src/app/frontend/components/pure/ProcessInput.js +62 -0
- package/dist/common/src/app/frontend/components/pure/ProcessList.js +52 -0
- package/dist/common/src/app/frontend/components/pure/ProcessLogs.js +67 -0
- package/dist/common/src/app/frontend/components/pure/ProcessManager.js +113 -0
- package/dist/common/src/app/frontend/components/pure/ProcessManagerView.js +82 -0
- package/dist/common/src/app/frontend/components/pure/ProcessManagerViewTypes.js +2 -0
- package/dist/common/src/app/frontend/components/pure/ProcessSidebar.js +56 -0
- package/dist/common/src/app/frontend/components/pure/ProcessTerminal.js +62 -0
- package/dist/common/src/app/frontend/components/pure/ProjectPageView.js +69 -0
- package/dist/common/src/app/frontend/components/pure/ProjectPageView.test/implementation.js +185 -0
- package/dist/common/src/app/frontend/components/pure/Settings.js +122 -0
- package/dist/common/src/app/frontend/components/pure/Settings.test.js +30 -0
- package/dist/common/src/app/frontend/components/pure/SignIn.js +22 -0
- package/dist/common/src/app/frontend/components/pure/SingleProcessView.js +126 -0
- package/dist/common/src/app/frontend/components/pure/TerminalInput.js +76 -0
- package/dist/common/src/app/frontend/components/pure/TerminalLogs.js +80 -0
- package/dist/common/src/app/frontend/components/stateful/DratoPage.js +319 -0
- package/dist/common/src/app/frontend/components/stateful/FeaturesReporter.js +22 -0
- package/dist/common/src/app/frontend/components/stateful/GenericXMLEditor/AttributeEditor.js +51 -0
- package/dist/common/src/app/frontend/components/stateful/GenericXMLEditor/Drawer.js +152 -0
- package/dist/common/src/app/frontend/components/stateful/GenericXMLEditor/GenericPreview.js +156 -0
- package/dist/common/src/app/frontend/components/stateful/GenericXMLEditor/GenericTextEditor.js +169 -0
- package/dist/common/src/app/frontend/components/stateful/GenericXMLEditor/GenericTree.js +30 -0
- package/dist/common/src/app/frontend/components/stateful/GenericXMLEditorPage.js +306 -0
- package/dist/common/src/app/frontend/components/stateful/GitIntegrationPage.js +252 -0
- package/dist/common/src/app/frontend/components/stateful/GrafeoPage.js +437 -0
- package/dist/common/src/app/frontend/components/stateful/ProcessManagerPage.js +113 -0
- package/dist/common/src/app/frontend/components/stateful/ProjectPage.js +108 -0
- package/dist/common/src/app/frontend/components/stateful/ProjectsPage.js +136 -0
- package/dist/common/src/app/frontend/components/stateful/SVGEditor/CircleForm.js +24 -0
- package/dist/common/src/app/frontend/components/stateful/SVGEditor/GroupForm.js +22 -0
- package/dist/common/src/app/frontend/components/stateful/SVGEditor/RectForm.js +25 -0
- package/dist/common/src/app/frontend/components/stateful/SVGEditor/SVGAttributeField.js +15 -0
- package/dist/common/src/app/frontend/components/stateful/SVGEditor/SVGAttributesEditor.js +87 -0
- package/dist/common/src/app/frontend/components/stateful/SVGEditor/SVGEditorControls.js +23 -0
- package/dist/common/src/app/frontend/components/stateful/SVGEditor/SVGElementForm.js +23 -0
- package/dist/common/src/app/frontend/components/stateful/SVGEditor/SVGPreview.js +178 -0
- package/dist/common/src/app/frontend/components/stateful/SVGEditor/SVGTextEditor.js +155 -0
- package/dist/common/src/app/frontend/components/stateful/SVGEditor/SVGTree.js +105 -0
- package/dist/common/src/app/frontend/components/stateful/SVGEditor/SVGTypes.js +2 -0
- package/dist/common/src/app/frontend/components/stateful/SVGEditorPage.js +437 -0
- package/dist/common/src/app/frontend/components/stateful/SingleProcessPage.js +134 -0
- package/dist/common/src/app/frontend/components/stateful/SkriboPage.js +517 -0
- package/dist/common/src/app/frontend/fetchDataUtil.js +187 -0
- package/dist/common/src/app/frontend/flua/FluaPage.js +378 -0
- package/dist/common/src/app/frontend/testPage/ITestPageViewProps.js +2 -0
- package/dist/common/src/app/frontend/testPage/ProjectsTree.js +179 -0
- package/dist/common/src/app/frontend/testPage/TestPage.js +85 -0
- package/dist/common/src/app/frontend/testPage/TestPageLeftContent.js +48 -0
- package/dist/common/src/app/frontend/testPage/TestPageMainContent.js +82 -0
- package/dist/common/src/app/frontend/testPage/TestPageNavbar.js +33 -0
- package/dist/common/src/app/frontend/testPage/TestPageView.js +352 -0
- package/dist/common/src/app/frontend/testPage/TestPageView.test/implementation.js +158 -0
- package/dist/common/src/app/frontend/testPage/TestPageView.test/index.js +15 -0
- package/dist/common/src/app/frontend/testPage/TestPageView.test/specification.js +27 -0
- package/dist/common/src/app/frontend/testPage/TestPageView_utils.js +128 -0
- package/dist/common/src/app/frontend/useFileSystemSync.js +108 -0
- package/dist/common/src/app/frontend/useFs.js +15 -0
- package/dist/common/src/app/frontend/useGitMode.js +20 -0
- package/dist/common/src/app/frontend/useTerminalWebSocket.js +44 -0
- package/dist/common/src/app/frontend/useWebSocket.js +16 -0
- package/dist/common/src/app/types.js +2 -0
- package/dist/common/src/builders/golang.js +30 -0
- package/dist/common/src/builders/node.js +35 -0
- package/dist/common/src/builders/python.js +28 -0
- package/dist/common/src/builders/web.js +35 -0
- package/dist/common/src/esbuildConfigs/node.js +3 -1
- package/dist/common/src/lib/BaseGiven.js +95 -18
- package/dist/common/src/lib/BaseSuite.js +55 -8
- package/dist/common/src/lib/BaseSuite.test/test.js +58 -103
- package/dist/common/src/lib/BaseThen.js +28 -29
- package/dist/common/src/lib/BaseWhen.js +7 -5
- package/dist/common/src/lib/Tiposkripto.js +26 -11
- package/dist/common/src/lib/Tiposkripto.test/MockTiposkripto.js +35 -45
- package/dist/common/src/lib/Tiposkripto.test/Tiposkripto.implementation.js +15 -13
- package/dist/common/src/lib/Tiposkripto.test/Tiposkripto.specification.js +8 -5
- package/dist/common/src/lib/pmProxy.js +0 -33
- package/dist/common/src/lib/pmProxy.test/implementation.js +83 -90
- package/dist/common/src/lib/pmProxy.test/index.js +1 -3
- package/dist/common/src/lib/pmProxy.test/mockPM.js +1 -0
- package/dist/common/src/lib/pmProxy.test/specification.js +0 -1
- package/dist/common/src/mothership/index.js +164 -2
- package/dist/common/src/mothership/test.js +4 -2
- package/dist/common/src/testeranto.js +96 -97
- package/dist/common/src/utils/generateGolingvuMetafile.js +157 -0
- package/dist/common/src/utils/golingvuMetafile/fileDiscovery.js +142 -0
- package/dist/common/src/utils/golingvuMetafile/goList.js +103 -0
- package/dist/common/src/utils/golingvuMetafile/helpers.js +68 -0
- package/dist/common/src/utils/golingvuMetafile/importParser.js +89 -0
- package/dist/common/src/utils/golingvuMetafile/types.js +3 -0
- package/dist/common/src/utils/golingvuMetafile.js +7 -114
- package/dist/common/src/utils/golingvuWatcher.js +233 -0
- package/dist/common/src/utils/logFiles.js +9 -1
- package/dist/common/src/utils/pitonoMetafile.js +222 -42
- package/dist/common/src/utils/pitonoWatcher.js +130 -0
- package/dist/common/src/utils/writeGolingvuMetafile.js +324 -0
- package/dist/common/testeranto.config.js +28 -39
- package/dist/common/tsconfig.common.tsbuildinfo +1 -1
- package/dist/module/example/Calculator.js +101 -0
- package/dist/module/example/Calculator.test.adapter.js +36 -0
- package/dist/module/example/Calculator.test.implementation.js +47 -0
- package/dist/module/example/Calculator.test.js +6 -0
- package/dist/module/example/Calculator.test.specification.js +88 -0
- package/dist/module/example/Calculator.test.types.js +2 -0
- package/dist/module/scripts/build-example.js +100 -0
- package/dist/module/src/Helpo.js +48 -0
- package/dist/module/src/Init.js +9 -1
- package/dist/module/src/Node.js +0 -1
- package/dist/module/src/PM/golingvuBuild.js +42 -0
- package/dist/module/src/PM/pitonoBuild.js +42 -0
- package/dist/module/src/PM/utils.js +8 -1
- package/dist/module/src/PM/web.js +4 -8
- package/dist/module/src/Pure.js +0 -14
- package/dist/module/src/Pure.test.js +1 -6
- package/dist/module/src/Web.js +1 -35
- package/dist/module/src/WebSidecar.js +0 -1
- package/dist/module/src/app/FileService.js +21 -0
- package/dist/module/src/app/api.js +70 -0
- package/dist/module/src/app/backend/PM_0.js +310 -0
- package/dist/module/src/app/backend/PM_1_WithProcesses.js +882 -0
- package/dist/module/src/app/backend/PM_2_WithTCP.js +237 -0
- package/dist/module/src/app/backend/PM_WithBuild.js +113 -0
- package/dist/module/src/app/backend/PM_WithEslintAndTsc.js +126 -0
- package/dist/module/src/app/backend/PM_WithGit.js +546 -0
- package/dist/module/src/app/backend/PM_WithHelpo.js +250 -0
- package/dist/module/src/app/backend/PM_WithProcesses.js +1083 -0
- package/dist/module/src/app/backend/PM_WithTCP.js +381 -0
- package/dist/module/src/app/backend/getAllFilesRecursively.js +16 -0
- package/dist/module/src/app/backend/main.js +764 -0
- package/dist/module/src/app/backend/makePrompt.js +66 -0
- package/dist/module/src/app/backend/utils.js +131 -0
- package/dist/module/src/app/frontend/App.js +164 -0
- package/dist/module/src/app/frontend/DevelopmentFileService.js +91 -0
- package/dist/module/src/app/frontend/GitFileService.js +258 -0
- package/dist/module/src/app/frontend/GitHubAuthService.js +180 -0
- package/dist/module/src/app/frontend/api.js +87 -0
- package/dist/module/src/app/frontend/components/DesignEditorPage.js +171 -0
- package/dist/module/src/app/frontend/components/SunriseAnimation.js +256 -0
- package/dist/module/src/app/frontend/components/SunriseAnimation.test/interface.js +32 -0
- package/dist/module/src/app/frontend/components/pure/AppFrame.js +140 -0
- package/dist/module/src/app/frontend/components/pure/GitHubLoginButton.js +11 -0
- package/dist/module/src/app/frontend/components/pure/GitIntegrationView.js +346 -0
- package/dist/module/src/app/frontend/components/pure/HelpoChatDrawer.js +142 -0
- package/dist/module/src/app/frontend/components/pure/MagicRobotModal.js +66 -0
- package/dist/module/src/app/frontend/components/pure/ModalContent.test/index.js +56 -0
- package/dist/module/src/app/frontend/components/pure/NavBar.js +38 -0
- package/dist/module/src/app/frontend/components/pure/ProcessDetails.js +42 -0
- package/dist/module/src/app/frontend/components/pure/ProcessInput.js +25 -0
- package/dist/module/src/app/frontend/components/pure/ProcessList.js +45 -0
- package/dist/module/src/app/frontend/components/pure/ProcessLogs.js +30 -0
- package/dist/module/src/app/frontend/components/pure/ProcessManager.js +76 -0
- package/dist/module/src/app/frontend/components/pure/ProcessManagerView.js +45 -0
- package/dist/module/src/app/frontend/components/pure/ProcessSidebar.js +49 -0
- package/dist/module/src/app/frontend/components/pure/ProcessTerminal.js +25 -0
- package/dist/module/src/app/frontend/components/pure/ProjectPageView.js +62 -0
- package/dist/module/src/app/frontend/components/pure/ProjectPageView.test/implementation.js +182 -0
- package/dist/module/src/app/frontend/components/pure/Settings.js +85 -0
- package/dist/module/src/app/frontend/components/pure/Settings.test.js +30 -0
- package/dist/module/src/app/frontend/components/pure/SignIn.js +15 -0
- package/dist/module/src/app/frontend/components/pure/SingleProcessView.js +126 -0
- package/dist/module/src/app/frontend/components/pure/TerminalInput.js +39 -0
- package/dist/module/src/app/frontend/components/pure/TerminalLogs.js +43 -0
- package/dist/module/src/app/frontend/components/stateful/DratoPage.js +282 -0
- package/dist/module/src/app/frontend/components/stateful/FeaturesReporter.js +22 -0
- package/dist/module/src/app/frontend/components/stateful/GenericXMLEditor/AttributeEditor.js +44 -0
- package/dist/module/src/app/frontend/components/stateful/GenericXMLEditor/Drawer.js +115 -0
- package/dist/module/src/app/frontend/components/stateful/GenericXMLEditor/GenericPreview.js +119 -0
- package/dist/module/src/app/frontend/components/stateful/GenericXMLEditor/GenericTextEditor.js +132 -0
- package/dist/module/src/app/frontend/components/stateful/GenericXMLEditor/GenericTree.js +23 -0
- package/dist/module/src/app/frontend/components/stateful/GenericXMLEditorPage.js +269 -0
- package/dist/module/src/app/frontend/components/stateful/GitIntegrationPage.js +215 -0
- package/dist/module/src/app/frontend/components/stateful/GrafeoPage.js +400 -0
- package/dist/module/src/app/frontend/components/stateful/ProcessManagerPage.js +76 -0
- package/dist/module/src/app/frontend/components/stateful/ProjectPage.js +71 -0
- package/dist/module/src/app/frontend/components/stateful/ProjectsPage.js +99 -0
- package/dist/module/src/app/frontend/components/stateful/SVGEditor/CircleForm.js +17 -0
- package/dist/module/src/app/frontend/components/stateful/SVGEditor/GroupForm.js +15 -0
- package/dist/module/src/app/frontend/components/stateful/SVGEditor/RectForm.js +18 -0
- package/dist/module/src/app/frontend/components/stateful/SVGEditor/SVGAttributeField.js +8 -0
- package/dist/module/src/app/frontend/components/stateful/SVGEditor/SVGAttributesEditor.js +50 -0
- package/dist/module/src/app/frontend/components/stateful/SVGEditor/SVGEditorControls.js +16 -0
- package/dist/module/src/app/frontend/components/stateful/SVGEditor/SVGElementForm.js +16 -0
- package/dist/module/src/app/frontend/components/stateful/SVGEditor/SVGPreview.js +141 -0
- package/dist/module/src/app/frontend/components/stateful/SVGEditor/SVGTextEditor.js +118 -0
- package/dist/module/src/app/frontend/components/stateful/SVGEditor/SVGTree.js +68 -0
- package/dist/module/src/app/frontend/components/stateful/SVGEditor/SVGTypes.js +1 -0
- package/dist/module/src/app/frontend/components/stateful/SVGEditorPage.js +400 -0
- package/dist/module/src/app/frontend/components/stateful/SingleProcessPage.js +134 -0
- package/dist/module/src/app/frontend/components/stateful/SkriboPage.js +510 -0
- package/dist/module/src/app/frontend/fetchDataUtil.js +187 -0
- package/dist/module/src/app/frontend/flua/FluaPage.js +341 -0
- package/dist/module/src/app/frontend/testPage/ITestPageViewProps.js +1 -0
- package/dist/module/src/app/frontend/testPage/ProjectsTree.js +142 -0
- package/dist/module/src/app/frontend/testPage/TestPage.js +48 -0
- package/dist/module/src/app/frontend/testPage/TestPageLeftContent.js +11 -0
- package/dist/module/src/app/frontend/testPage/TestPageMainContent.js +75 -0
- package/dist/module/src/app/frontend/testPage/TestPageNavbar.js +26 -0
- package/dist/module/src/app/frontend/testPage/TestPageView.js +315 -0
- package/dist/module/src/app/frontend/testPage/TestPageView.test/implementation.js +122 -0
- package/dist/module/src/app/frontend/testPage/TestPageView.test/index.js +10 -0
- package/dist/module/src/app/frontend/testPage/TestPageView.test/specification.js +23 -0
- package/dist/module/src/app/frontend/testPage/TestPageView_utils.js +120 -0
- package/dist/module/src/app/frontend/useFileSystemSync.js +108 -0
- package/dist/module/src/app/frontend/useFs.js +11 -0
- package/dist/module/src/app/frontend/useGitMode.js +16 -0
- package/dist/module/src/app/frontend/useTerminalWebSocket.js +40 -0
- package/dist/module/src/app/frontend/useWebSocket.js +12 -0
- package/dist/module/src/app/types.js +1 -0
- package/dist/module/src/builders/golang.js +28 -0
- package/dist/module/src/builders/node.js +33 -0
- package/dist/module/src/builders/python.js +26 -0
- package/dist/module/src/builders/web.js +33 -0
- package/dist/module/src/esbuildConfigs/node.js +3 -1
- package/dist/module/src/lib/BaseGiven.js +95 -18
- package/dist/module/src/lib/BaseSuite.js +55 -8
- package/dist/module/src/lib/BaseSuite.test/test.js +58 -103
- package/dist/module/src/lib/BaseThen.js +28 -29
- package/dist/module/src/lib/BaseWhen.js +7 -5
- package/dist/module/src/lib/Tiposkripto.js +26 -11
- package/dist/module/src/lib/Tiposkripto.test/MockTiposkripto.js +35 -45
- package/dist/module/src/lib/Tiposkripto.test/Tiposkripto.implementation.js +15 -13
- package/dist/module/src/lib/Tiposkripto.test/Tiposkripto.specification.js +8 -5
- package/dist/module/src/lib/pmProxy.js +0 -33
- package/dist/module/src/lib/pmProxy.test/implementation.js +83 -90
- package/dist/module/src/lib/pmProxy.test/index.js +1 -3
- package/dist/module/src/lib/pmProxy.test/mockPM.js +1 -0
- package/dist/module/src/lib/pmProxy.test/specification.js +0 -1
- package/dist/module/src/mothership/index.js +164 -2
- package/dist/module/src/mothership/test.js +4 -2
- package/dist/module/src/testeranto.js +94 -95
- package/dist/module/src/utils/generateGolingvuMetafile.js +151 -0
- package/dist/module/src/utils/golingvuMetafile/fileDiscovery.js +136 -0
- package/dist/module/src/utils/golingvuMetafile/goList.js +97 -0
- package/dist/module/src/utils/golingvuMetafile/helpers.js +59 -0
- package/dist/module/src/utils/golingvuMetafile/importParser.js +83 -0
- package/dist/module/src/utils/golingvuMetafile/types.js +2 -0
- package/dist/module/src/utils/golingvuMetafile.js +6 -109
- package/dist/module/src/utils/golingvuWatcher.js +226 -0
- package/dist/module/src/utils/logFiles.js +9 -1
- package/dist/module/src/utils/pitonoMetafile.js +224 -44
- package/dist/module/src/utils/pitonoWatcher.js +123 -0
- package/dist/module/src/utils/writeGolingvuMetafile.js +318 -0
- package/dist/module/testeranto.config.js +28 -39
- package/dist/module/tsconfig.module.tsbuildinfo +1 -1
- package/dist/prebuild/App.css +251 -173
- package/dist/prebuild/App.js +20096 -43669
- package/dist/prebuild/init-docs.mjs +9 -1
- package/dist/prebuild/testeranto.mjs +3635 -2389
- package/dist/types/src/Helpo.d.ts +1 -0
- package/dist/types/src/PM/golingvuBuild.d.ts +11 -0
- package/dist/types/src/PM/pitonoBuild.d.ts +11 -0
- package/dist/types/src/PM/web.d.ts +4 -4
- package/dist/types/src/Pure.d.ts +1 -1
- package/dist/types/src/Pure.test.d.ts +60 -1
- package/dist/types/src/Types.d.ts +1 -0
- package/dist/types/src/Web.d.ts +1 -1
- package/dist/types/src/app/FileService.d.ts +37 -0
- package/dist/types/src/app/api.d.ts +37 -0
- package/dist/types/src/app/backend/PM_0.d.ts +38 -0
- package/dist/types/src/app/backend/PM_1_WithProcesses.d.ts +149 -0
- package/dist/types/src/app/backend/PM_2_WithTCP.d.ts +29 -0
- package/dist/types/src/app/backend/PM_WithBuild.d.ts +8 -0
- package/dist/types/src/app/backend/PM_WithEslintAndTsc.d.ts +22 -0
- package/dist/types/src/app/backend/PM_WithGit.d.ts +24 -0
- package/dist/types/src/app/backend/PM_WithHelpo.d.ts +43 -0
- package/dist/types/src/app/backend/PM_WithTCP.d.ts +41 -0
- package/dist/types/src/app/backend/getAllFilesRecursively.d.ts +1 -0
- package/dist/types/src/app/backend/main.d.ts +15 -0
- package/dist/types/src/app/backend/makePrompt.d.ts +2 -0
- package/dist/types/src/app/backend/utils.d.ts +20 -0
- package/dist/types/src/app/frontend/App.d.ts +14 -0
- package/dist/types/src/app/frontend/DevelopmentFileService.d.ts +25 -0
- package/dist/types/src/app/frontend/GitFileService.d.ts +27 -0
- package/dist/types/src/app/frontend/api.d.ts +10 -0
- package/dist/types/src/app/frontend/components/SunriseAnimation.test/interface.d.ts +11 -0
- package/dist/types/src/app/frontend/components/SunriseAnimation.test/types.d.ts +39 -0
- package/dist/types/src/app/frontend/components/pure/AppFrame.d.ts +11 -0
- package/dist/types/src/app/frontend/components/pure/AppFrame.test/index.d.ts +3 -0
- package/dist/types/src/app/frontend/components/pure/FeaturesReporterView.d.ts +7 -0
- package/dist/types/src/app/frontend/components/pure/FeaturesReporterView.test/index.d.ts +2 -0
- package/dist/types/src/app/frontend/components/pure/GitIntegrationView.d.ts +27 -0
- package/dist/types/src/app/frontend/components/pure/HelpoChatDrawer.d.ts +7 -0
- package/dist/types/src/app/frontend/components/pure/MagicRobotModal.d.ts +16 -0
- package/dist/types/src/app/frontend/components/pure/ModalContent.test/index.d.ts +14 -0
- package/dist/types/src/app/frontend/components/pure/ProcessDetails.d.ts +8 -0
- package/dist/types/src/app/frontend/components/pure/ProcessInput.d.ts +10 -0
- package/dist/types/src/app/frontend/components/pure/ProcessList.d.ts +10 -0
- package/dist/types/src/app/frontend/components/pure/ProcessLogs.d.ts +6 -0
- package/dist/types/src/app/frontend/components/pure/ProcessManagerView.d.ts +10 -0
- package/dist/types/src/app/frontend/components/pure/ProcessManagerViewTypes.d.ts +10 -0
- package/dist/types/src/app/frontend/components/pure/ProcessSidebar.d.ts +8 -0
- package/dist/types/src/app/frontend/components/pure/ProcessTerminal.d.ts +8 -0
- package/dist/types/src/app/frontend/components/pure/ProjectPageView.d.ts +14 -0
- package/dist/types/src/app/frontend/components/pure/ProjectPageView.test/implementation.d.ts +3 -0
- package/dist/types/src/app/frontend/components/pure/ProjectPageView.test/index.d.ts +17 -0
- package/dist/types/src/app/frontend/components/pure/TerminalInput.d.ts +6 -0
- package/dist/types/src/app/frontend/components/pure/TerminalLogs.d.ts +6 -0
- package/dist/types/src/app/frontend/components/stateful/DratoPage.d.ts +8 -0
- package/dist/types/src/app/frontend/components/stateful/GenericXMLEditor/AttributeEditor.d.ts +9 -0
- package/dist/types/src/app/frontend/components/stateful/GenericXMLEditor/Drawer.d.ts +12 -0
- package/dist/types/src/app/frontend/components/stateful/GenericXMLEditor/GenericPreview.d.ts +11 -0
- package/dist/types/src/app/frontend/components/stateful/GenericXMLEditor/GenericTextEditor.d.ts +8 -0
- package/dist/types/src/app/frontend/components/stateful/GenericXMLEditor/GenericTree.d.ts +17 -0
- package/dist/types/src/app/frontend/components/stateful/GenericXMLEditorPage.d.ts +21 -0
- package/dist/types/src/app/frontend/components/stateful/GrafeoPage.d.ts +8 -0
- package/dist/types/src/app/frontend/components/stateful/SVGEditor/CircleForm.d.ts +8 -0
- package/dist/types/src/app/frontend/components/stateful/SVGEditor/GroupForm.d.ts +8 -0
- package/dist/types/src/app/frontend/components/stateful/SVGEditor/RectForm.d.ts +8 -0
- package/dist/types/src/app/frontend/components/stateful/SVGEditor/SVGAttributeField.d.ts +9 -0
- package/dist/types/src/app/frontend/components/stateful/SVGEditor/SVGAttributesEditor.d.ts +9 -0
- package/dist/types/src/app/frontend/components/stateful/SVGEditor/SVGEditorControls.d.ts +9 -0
- package/dist/types/src/app/frontend/components/stateful/SVGEditor/SVGElementForm.d.ts +9 -0
- package/dist/types/src/app/frontend/components/stateful/SVGEditor/SVGPreview.d.ts +12 -0
- package/dist/types/src/app/frontend/components/stateful/SVGEditor/SVGTextEditor.d.ts +8 -0
- package/dist/types/src/app/frontend/components/stateful/SVGEditor/SVGTree.d.ts +20 -0
- package/dist/types/src/app/frontend/components/stateful/SVGEditor/SVGTypes.d.ts +30 -0
- package/dist/types/src/app/frontend/components/stateful/SVGEditorPage.d.ts +7 -0
- package/dist/types/src/app/frontend/components/stateful/SkriboPage.d.ts +1 -0
- package/dist/types/src/app/frontend/flua/FluaPage.d.ts +2 -0
- package/dist/types/src/app/frontend/testPage/ITestPageViewProps.d.ts +14 -0
- package/dist/types/src/app/frontend/testPage/ProjectsTree.d.ts +17 -0
- package/dist/types/src/app/frontend/testPage/TestPageLeftContent.d.ts +14 -0
- package/dist/types/src/app/frontend/testPage/TestPageMainContent.d.ts +7 -0
- package/dist/types/src/app/frontend/testPage/TestPageNavbar.d.ts +7 -0
- package/dist/types/src/app/frontend/testPage/TestPageView.d.ts +2 -0
- package/dist/types/src/app/frontend/testPage/TestPageView.test/implementation.d.ts +13 -0
- package/dist/types/src/app/frontend/testPage/TestPageView.test/index.d.ts +13 -0
- package/dist/types/src/app/frontend/testPage/TestPageView.test/specification.d.ts +11 -0
- package/dist/types/src/app/frontend/testPage/TestPageView.test/types.d.ts +65 -0
- package/dist/types/src/app/frontend/testPage/TestPageView_utils.d.ts +23 -0
- package/dist/types/src/app/frontend/useFs.d.ts +2 -0
- package/dist/types/src/app/frontend/useTerminalWebSocket.d.ts +4 -0
- package/dist/types/src/app/frontend/useWebSocket.d.ts +8 -0
- package/dist/types/src/app/types.d.ts +1 -0
- package/dist/types/src/builders/golang.d.ts +1 -0
- package/dist/types/src/builders/node.d.ts +1 -0
- package/dist/types/src/builders/python.d.ts +1 -0
- package/dist/types/src/builders/web.d.ts +1 -0
- package/dist/types/src/lib/BaseGiven.d.ts +3 -3
- package/dist/types/src/lib/BaseSuite.d.ts +4 -3
- package/dist/types/src/lib/BaseSuite.test/pure.test.d.ts +2 -1
- package/dist/types/src/lib/BaseSuite.test/web.test.d.ts +2 -1
- package/dist/types/src/lib/BaseThen.d.ts +2 -0
- package/dist/types/src/lib/BaseWhen.d.ts +2 -0
- package/dist/types/src/lib/pmProxy.test/mockPMBase.d.ts +1 -1
- package/dist/types/src/utils/generateGolingvuMetafile.d.ts +2 -0
- package/dist/types/src/utils/golingvuMetafile/fileDiscovery.d.ts +1 -0
- package/dist/types/src/utils/golingvuMetafile/goList.d.ts +2 -0
- package/dist/types/src/utils/golingvuMetafile/helpers.d.ts +7 -0
- package/dist/types/src/utils/golingvuMetafile/importParser.d.ts +5 -0
- package/dist/types/src/utils/golingvuMetafile/types.d.ts +66 -0
- package/dist/types/src/utils/golingvuMetafile.d.ts +4 -19
- package/dist/types/src/utils/golingvuWatcher.d.ts +14 -0
- package/dist/types/src/utils/logFiles.d.ts +29 -1
- package/dist/types/src/utils/pitonoMetafile.d.ts +18 -3
- package/dist/types/src/utils/pitonoWatcher.d.ts +13 -0
- package/dist/types/src/utils/writeGolingvuMetafile.d.ts +2 -0
- package/dist/types/tsconfig.types.tsbuildinfo +1 -1
- package/docker-compose.yml +74 -0
- package/docs/testing.prompt.txt +5 -1
- package/example/Calculator.go +99 -0
- package/example/Calculator.golingvu.adapter.go +81 -0
- package/example/Calculator.golingvu.implementation.go +144 -0
- package/example/Calculator.golingvu.specification.go +68 -0
- package/example/Calculator.golingvu.test.go +216 -0
- package/example/Calculator.pitono.adapter.py +68 -0
- package/example/Calculator.pitono.implementation.py +30 -0
- package/example/Calculator.pitono.specification.py +154 -0
- package/example/Calculator.pitono.test.py +132 -0
- package/example/Calculator.py +93 -0
- package/example/Calculator.test.adapter.ts +46 -0
- package/example/Calculator.test.implementation.ts +55 -0
- package/example/Calculator.test.specification.ts +213 -0
- package/example/Calculator.test.ts +13 -0
- package/example/Calculator.test.types.ts +50 -0
- package/example/Calculator.ts +114 -0
- package/example/README.md +1 -0
- package/example/__pycache__/Calculator.cpython-313.pyc +0 -0
- package/example/go.mod +7 -0
- package/example/go.sum +2 -0
- package/example/requirements.txt +9 -0
- package/example/single-kanban-process.xml +9 -0
- package/example/test_example.py +143 -74
- package/example/vendor/github.com/adamwong246/testeranto/src/golingvu/LICENSE +21 -0
- package/example/vendor/github.com/adamwong246/testeranto/src/golingvu/golingvu.go +398 -63
- package/example/vendor/modules.txt +1 -2
- package/go.mod +6 -1
- package/go.sum +2 -0
- package/golingvu.tmp.txt +68 -0
- package/log.txt +39 -0
- package/package.json +61 -44
- package/scripts/build-example.ts +106 -0
- package/src/Helpo.tsx +89 -0
- package/src/Init.ts +9 -1
- package/src/Node.ts +0 -1
- package/src/NodeSidecar.ts +0 -8
- package/src/PM/__tests__/nodeSidecar.testeranto.ts +4 -1
- package/src/PM/golingvuBuild.ts +56 -0
- package/src/PM/pitonoBuild.ts +56 -0
- package/src/PM/types.ts +1 -0
- package/src/PM/utils.ts +7 -1
- package/src/PM/web.ts +8 -24
- package/src/Pure.test.ts +18 -9
- package/src/Pure.ts +1 -16
- package/src/Types.ts +1 -0
- package/src/Web.ts +2 -38
- package/src/WebSidecar.ts +1 -1
- package/src/app/FileService.ts +91 -0
- package/src/app/api.ts +75 -0
- package/src/app/backend/PM_0.ts +392 -0
- package/src/app/backend/PM_1_WithProcesses.ts +1186 -0
- package/src/app/backend/PM_2_WithTCP.ts +283 -0
- package/src/app/backend/PM_WithBuild.ts +148 -0
- package/src/app/backend/PM_WithEslintAndTsc.ts +194 -0
- package/src/app/backend/PM_WithGit.ts +662 -0
- package/src/app/backend/PM_WithHelpo.ts +340 -0
- package/src/app/backend/PM_WithProcesses.ts +1247 -0
- package/src/app/backend/PM_WithTCP.ts +777 -0
- package/src/app/backend/getAllFilesRecursively.ts +17 -0
- package/src/app/backend/main.ts +1011 -0
- package/src/app/backend/makePrompt.ts +92 -0
- package/src/app/backend/utils.ts +202 -0
- package/src/app/frontend/App.tsx +242 -0
- package/src/app/frontend/DevelopmentFileService.ts +117 -0
- package/src/app/frontend/GitFileService.ts +285 -0
- package/src/app/frontend/GitHubAuthService.ts +241 -0
- package/src/app/frontend/api.ts +108 -0
- package/src/app/frontend/app.scss +119 -0
- package/src/app/frontend/components/DesignEditorPage.tsx +210 -0
- package/src/app/frontend/components/SunriseAnimation.test/interface.ts +50 -0
- package/src/app/frontend/components/SunriseAnimation.test/types.ts +53 -0
- package/src/app/frontend/components/SunriseAnimation.tsx +350 -0
- package/src/app/frontend/components/pure/AppFrame.tsx +445 -0
- package/src/app/frontend/components/pure/FeaturesReporterView.tsx +38 -0
- package/src/app/frontend/components/pure/GitHubLoginButton.tsx +32 -0
- package/src/app/frontend/components/pure/GitIntegrationView.tsx +727 -0
- package/src/app/frontend/components/pure/HelpoChatDrawer.tsx +223 -0
- package/src/app/frontend/components/pure/MagicRobotModal.tsx +135 -0
- package/src/app/frontend/components/pure/ModalContent.test/index.tsx +68 -0
- package/src/app/frontend/components/pure/NavBar.tsx +119 -0
- package/src/app/frontend/components/pure/ProcessDetails.tsx +99 -0
- package/src/app/frontend/components/pure/ProcessInput.tsx +67 -0
- package/src/app/frontend/components/pure/ProcessList.tsx +89 -0
- package/src/app/frontend/components/pure/ProcessLogs.tsx +54 -0
- package/src/app/frontend/components/pure/ProcessManager.tsx +109 -0
- package/src/app/frontend/components/pure/ProcessManagerView.tsx +89 -0
- package/src/app/frontend/components/pure/ProcessManagerViewTypes.ts +10 -0
- package/src/app/frontend/components/pure/ProcessSidebar.tsx +88 -0
- package/src/app/frontend/components/pure/ProcessTerminal.tsx +55 -0
- package/src/app/frontend/components/pure/ProjectPageView.test/implementation.tsx +216 -0
- package/src/app/frontend/components/pure/ProjectPageView.tsx +165 -0
- package/src/app/frontend/components/pure/Settings.test.tsx +34 -0
- package/src/app/frontend/components/pure/Settings.tsx +171 -0
- package/src/app/frontend/components/pure/SignIn.tsx +33 -0
- package/src/app/frontend/components/pure/SingleProcessView.tsx +140 -0
- package/src/app/frontend/components/pure/TerminalInput.tsx +73 -0
- package/src/app/frontend/components/pure/TerminalLogs.tsx +80 -0
- package/src/app/frontend/components/stateful/DratoPage.tsx +457 -0
- package/src/app/frontend/components/stateful/FeaturesReporter.tsx +27 -0
- package/src/app/frontend/components/stateful/GenericXMLEditor/AttributeEditor.tsx +105 -0
- package/src/app/frontend/components/stateful/GenericXMLEditor/Drawer.tsx +174 -0
- package/src/app/frontend/components/stateful/GenericXMLEditor/GenericPreview.tsx +234 -0
- package/src/app/frontend/components/stateful/GenericXMLEditor/GenericTextEditor.tsx +173 -0
- package/src/app/frontend/components/stateful/GenericXMLEditor/GenericTree.tsx +105 -0
- package/src/app/frontend/components/stateful/GenericXMLEditorPage.tsx +455 -0
- package/src/app/frontend/components/stateful/GitIntegrationPage.tsx +256 -0
- package/src/app/frontend/components/stateful/GrafeoPage.tsx +563 -0
- package/src/app/frontend/components/stateful/ProcessManagerPage.tsx +110 -0
- package/src/app/frontend/components/stateful/ProjectPage.tsx +94 -0
- package/src/app/frontend/components/stateful/ProjectsPage.tsx +129 -0
- package/src/app/frontend/components/stateful/SVGEditor/SVGAttributesEditor.tsx +91 -0
- package/src/app/frontend/components/stateful/SVGEditor/SVGPreview.tsx +227 -0
- package/src/app/frontend/components/stateful/SVGEditorPage.tsx +517 -0
- package/src/app/frontend/components/stateful/SingleProcessPage.tsx +144 -0
- package/src/app/frontend/components/stateful/SkriboPage.tsx +577 -0
- package/src/app/frontend/fetchDataUtil.ts +206 -0
- package/src/app/frontend/flua/FluaPage.tsx +458 -0
- package/src/app/frontend/flua/agile.xsd +32 -0
- package/src/app/frontend/flua/core.xsd +42 -0
- package/src/app/frontend/flua/kanban.xsd +21 -0
- package/src/app/frontend/flua/scrum.xsd +35 -0
- package/src/app/frontend/testPage/ITestPageViewProps.ts +14 -0
- package/src/app/frontend/testPage/ProjectsTree.tsx +329 -0
- package/src/app/frontend/testPage/TestPage.tsx +75 -0
- package/src/app/frontend/testPage/TestPageLeftContent.tsx +54 -0
- package/src/app/frontend/testPage/TestPageMainContent.tsx +181 -0
- package/src/app/frontend/testPage/TestPageNavbar.tsx +52 -0
- package/src/app/frontend/testPage/TestPageView.test/implementation.ts +209 -0
- package/src/app/frontend/testPage/TestPageView.test/index.tsx +22 -0
- package/src/app/frontend/testPage/TestPageView.test/specification.ts +60 -0
- package/src/app/frontend/testPage/TestPageView.test/types.ts +92 -0
- package/src/app/frontend/testPage/TestPageView.tsx +481 -0
- package/src/app/frontend/testPage/TestPageView_utils.tsx +301 -0
- package/src/app/frontend/testPage/index.md +14 -0
- package/src/app/frontend/useFileSystemSync.ts +117 -0
- package/src/app/frontend/useFs.ts +16 -0
- package/src/app/frontend/useGitMode.ts +21 -0
- package/src/app/frontend/useTerminalWebSocket.ts +56 -0
- package/src/app/frontend/useWebSocket.ts +20 -0
- package/src/app/trash +1697 -0
- package/src/app/types.ts +1 -0
- package/src/builders/golang.ts +29 -0
- package/src/builders/node.ts +34 -0
- package/src/builders/python.ts +28 -0
- package/src/builders/web.ts +34 -0
- package/src/cjs-shim.js +2 -0
- package/src/esbuildConfigs/node.ts +1 -1
- package/src/golingvu/PM/golang_test.go +103 -0
- package/src/golingvu/README.md +186 -2
- package/src/golingvu/base_given.go +110 -24
- package/src/golingvu/base_suite.go +54 -8
- package/src/golingvu/base_then.go +2 -2
- package/src/golingvu/base_when.go +2 -2
- package/src/golingvu/go.mod +6 -0
- package/src/golingvu/golingvu.go +683 -32
- package/src/golingvu/types.go +0 -14
- package/src/graphml.xsd +345 -0
- package/src/helpo/directives.md +5 -0
- package/src/helpo/prompt.txt +38 -0
- package/src/lib/BaseGiven.ts +106 -32
- package/src/lib/BaseSuite.test/test.ts +92 -180
- package/src/lib/BaseSuite.ts +60 -10
- package/src/lib/BaseThen.ts +36 -37
- package/src/lib/BaseWhen.ts +12 -13
- package/src/lib/Tiposkripto.test/MockTiposkripto.ts +59 -63
- package/src/lib/Tiposkripto.test/Tiposkripto.implementation.ts +33 -20
- package/src/lib/Tiposkripto.test/Tiposkripto.specification.ts +9 -8
- package/src/lib/Tiposkripto.ts +27 -15
- package/src/lib/pmProxy.test/implementation.ts +112 -117
- package/src/lib/pmProxy.test/index.ts +2 -2
- package/src/lib/pmProxy.test/mockPM.ts +1 -0
- package/src/lib/pmProxy.test/mockPMBase.ts +1 -1
- package/src/lib/pmProxy.test/specification.ts +0 -2
- package/src/lib/pmProxy.test/types.ts +1 -0
- package/src/lib/pmProxy.ts +0 -37
- package/src/mothership/index.ts +197 -2
- package/src/mothership/test.ts +5 -5
- package/src/pitono/PM/__pycache__/python.cpython-313.pyc +0 -0
- package/src/pitono/PM/python.py +168 -0
- package/src/pitono/Pitono.py +444 -0
- package/src/pitono/PitonoTest.py +25 -0
- package/src/pitono/README.md +21 -0
- package/src/pitono/__init__.py +6 -0
- package/src/pitono/__pycache__/Pitono.cpython-313.pyc +0 -0
- package/src/pitono/__pycache__/__init__.cpython-313.pyc +0 -0
- package/src/pitono/__pycache__/base_given.cpython-313.pyc +0 -0
- package/src/pitono/__pycache__/base_suite.cpython-313.pyc +0 -0
- package/src/pitono/__pycache__/base_then.cpython-313.pyc +0 -0
- package/src/pitono/__pycache__/base_when.cpython-313.pyc +0 -0
- package/src/pitono/__pycache__/core_generator.cpython-313.pyc +0 -0
- package/src/pitono/__pycache__/simple_adapter.cpython-313.pyc +0 -0
- package/src/pitono/__pycache__/types.cpython-313.pyc +0 -0
- package/src/pitono/base_given.py +178 -0
- package/src/pitono/base_suite.py +149 -0
- package/src/pitono/base_then.py +65 -0
- package/src/pitono/base_when.py +67 -0
- package/src/pitono/pitono.egg-info/PKG-INFO +42 -0
- package/src/pitono/pitono.egg-info/SOURCES.txt +8 -0
- package/src/pitono/types.py +87 -0
- package/src/style.scss +261 -2
- package/src/testeranto.ts +120 -153
- package/src/utils/generateGolingvuMetafile.ts +196 -0
- package/src/utils/golingvuMetafile/fileDiscovery.ts +157 -0
- package/src/utils/golingvuMetafile/goList.ts +106 -0
- package/src/utils/golingvuMetafile/helpers.ts +65 -0
- package/src/utils/golingvuMetafile/importParser.ts +97 -0
- package/src/utils/golingvuMetafile/types.ts +78 -0
- package/src/utils/golingvuMetafile.ts +6 -163
- package/src/utils/golingvuWatcher.ts +280 -0
- package/src/utils/logFiles.ts +10 -2
- package/src/utils/pitonoMetafile.ts +328 -58
- package/src/utils/pitonoWatcher.ts +150 -0
- package/src/utils/writeGolingvuMetafile.ts +386 -0
- package/testeranto/App.css +251 -173
- package/testeranto/App.js +20080 -43664
- package/testeranto/bundles/golang/core/example/Calculator.golingvu.test +58 -0
- package/testeranto/bundles/node/core/example/Calculator.test.mjs +5481 -122
- package/testeranto/bundles/python/core/Calculator.pitono.test.py +1 -1
- package/testeranto/helpo_chat_history.json +1 -0
- package/testeranto/metafiles/golang/core.json +144 -49
- package/testeranto/metafiles/node/core.json +92 -583
- package/testeranto/metafiles/python/core.json +50 -9
- package/testeranto/reports/core/config.json +5 -61
- package/testeranto/reports/core/example/Calculator.golingvu.test/golang/exit.log +1 -0
- package/testeranto/reports/core/example/Calculator.golingvu.test/golang/stderr.log +7 -0
- package/testeranto/reports/core/example/Calculator.pitono.test/python/message.txt +16 -0
- package/testeranto/reports/core/example/Calculator.pitono.test/python/prompt.txt +13 -0
- package/testeranto/reports/core/example/Calculator.pitono.test/python/stdout.log +26 -0
- package/testeranto/reports/core/example/Calculator.pitono.test/python/tests.json +255 -0
- package/testeranto/reports/core/example/Calculator.test/node/lint_errors.txt +2 -0
- package/testeranto/reports/core/example/Calculator.test/node/message.txt +16 -0
- package/testeranto/reports/core/example/Calculator.test/node/prompt.txt +13 -0
- package/testeranto/reports/core/example/Calculator.test/node/stderr.log +566 -0
- package/testeranto/reports/core/example/Calculator.test/node/tests.json +1163 -0
- package/testeranto/reports/core/example/Calculator.test/node/type_errors.txt +26 -0
- package/testeranto/reports/core/summary.json +7 -47
- package/testeranto.config.ts +33 -43
- package/tsc.log +305 -370
- package/dist/common/src/App.js +0 -219
- package/dist/common/src/PM/PM_WithBuild.js +0 -135
- package/dist/common/src/PM/PM_WithEslintAndTsc.js +0 -204
- package/dist/common/src/PM/PM_WithGit.js +0 -517
- package/dist/common/src/PM/PM_WithProcesses.js +0 -519
- package/dist/common/src/PM/PM_WithWebSocket.js +0 -535
- package/dist/common/src/PM/base.js +0 -319
- package/dist/common/src/PM/main.js +0 -672
- package/dist/common/src/PM/metafileOutputs.js +0 -78
- package/dist/common/src/ReportServer.js +0 -1
- package/dist/common/src/ReportServer.test.ts/index.js +0 -78
- package/dist/common/src/ReportServerLib.js +0 -1
- package/dist/common/src/components/DesignEditorPage.js +0 -205
- package/dist/common/src/components/SunriseAnimation.js +0 -291
- package/dist/common/src/components/SunriseAnimation.test/interface.js +0 -68
- package/dist/common/src/components/pure/AppFrame.js +0 -81
- package/dist/common/src/components/pure/GitHubLoginButton.js +0 -18
- package/dist/common/src/components/pure/GitIntegrationView.js +0 -342
- package/dist/common/src/components/pure/ModalContent.test/index.js +0 -58
- package/dist/common/src/components/pure/NavBar.js +0 -44
- package/dist/common/src/components/pure/ProcessManager.js +0 -113
- package/dist/common/src/components/pure/ProcessManagerView.js +0 -236
- package/dist/common/src/components/pure/ProjectPageView.js +0 -68
- package/dist/common/src/components/pure/ProjectPageView.test/implementation.js +0 -184
- package/dist/common/src/components/pure/Settings.js +0 -121
- package/dist/common/src/components/pure/Settings.test.js +0 -34
- package/dist/common/src/components/pure/SignIn.js +0 -22
- package/dist/common/src/components/pure/SingleProcessView.js +0 -167
- package/dist/common/src/components/pure/TestPageView.js +0 -373
- package/dist/common/src/components/pure/TestPageView.test/implementation.js +0 -157
- package/dist/common/src/components/pure/TestPageView.test/index.js +0 -15
- package/dist/common/src/components/pure/TestPageView.test/specification.js +0 -26
- package/dist/common/src/components/pure/TestPageView_utils.js +0 -117
- package/dist/common/src/components/stateful/FeaturesReporter.js +0 -60
- package/dist/common/src/components/stateful/GitIntegrationPage.js +0 -12
- package/dist/common/src/components/stateful/ProcessManagerPage.js +0 -110
- package/dist/common/src/components/stateful/ProjectPage.js +0 -102
- package/dist/common/src/components/stateful/ProjectsPage.js +0 -116
- package/dist/common/src/components/stateful/SingleProcessPage.js +0 -137
- package/dist/common/src/components/stateful/TestPage.js +0 -270
- package/dist/common/src/hooks/useGitMode.js +0 -21
- package/dist/common/src/services/FileService.js +0 -505
- package/dist/common/src/services/GitHubAuthService.js +0 -184
- package/dist/common/src/types/features.js +0 -34
- package/dist/common/src/utils/api.js +0 -93
- package/dist/common/src/utils/featureUtils.js +0 -29
- package/dist/common/src/utils/gitTest.js +0 -27
- package/dist/common/src/utils/makePrompt.js +0 -116
- package/dist/common/src/utils.js +0 -143
- package/dist/module/src/App.js +0 -176
- package/dist/module/src/PM/PM_WithBuild.js +0 -128
- package/dist/module/src/PM/PM_WithEslintAndTsc.js +0 -197
- package/dist/module/src/PM/PM_WithGit.js +0 -477
- package/dist/module/src/PM/PM_WithProcesses.js +0 -479
- package/dist/module/src/PM/PM_WithWebSocket.js +0 -528
- package/dist/module/src/PM/base.js +0 -312
- package/dist/module/src/PM/main.js +0 -632
- package/dist/module/src/PM/metafileOutputs.js +0 -78
- package/dist/module/src/ReportServer.js +0 -1
- package/dist/module/src/ReportServer.test.ts/index.js +0 -73
- package/dist/module/src/ReportServerLib.js +0 -1
- package/dist/module/src/components/DesignEditorPage.js +0 -168
- package/dist/module/src/components/SunriseAnimation.js +0 -256
- package/dist/module/src/components/SunriseAnimation.test/interface.js +0 -32
- package/dist/module/src/components/pure/AppFrame.js +0 -74
- package/dist/module/src/components/pure/GitHubLoginButton.js +0 -11
- package/dist/module/src/components/pure/GitIntegrationView.js +0 -305
- package/dist/module/src/components/pure/ModalContent.test/index.js +0 -53
- package/dist/module/src/components/pure/NavBar.js +0 -37
- package/dist/module/src/components/pure/ProcessManager.js +0 -76
- package/dist/module/src/components/pure/ProcessManagerView.js +0 -199
- package/dist/module/src/components/pure/ProjectPageView.js +0 -61
- package/dist/module/src/components/pure/ProjectPageView.test/implementation.js +0 -181
- package/dist/module/src/components/pure/Settings.js +0 -84
- package/dist/module/src/components/pure/Settings.test.js +0 -29
- package/dist/module/src/components/pure/SignIn.js +0 -15
- package/dist/module/src/components/pure/SingleProcessView.js +0 -130
- package/dist/module/src/components/pure/TestPageView.js +0 -336
- package/dist/module/src/components/pure/TestPageView.test/implementation.js +0 -121
- package/dist/module/src/components/pure/TestPageView.test/index.js +0 -10
- package/dist/module/src/components/pure/TestPageView.test/specification.js +0 -22
- package/dist/module/src/components/pure/TestPageView_utils.js +0 -109
- package/dist/module/src/components/stateful/FeaturesReporter.js +0 -23
- package/dist/module/src/components/stateful/GitIntegrationPage.js +0 -5
- package/dist/module/src/components/stateful/ProcessManagerPage.js +0 -73
- package/dist/module/src/components/stateful/ProjectPage.js +0 -65
- package/dist/module/src/components/stateful/ProjectsPage.js +0 -79
- package/dist/module/src/components/stateful/SingleProcessPage.js +0 -100
- package/dist/module/src/components/stateful/TestPage.js +0 -233
- package/dist/module/src/hooks/useGitMode.js +0 -17
- package/dist/module/src/services/FileService.js +0 -468
- package/dist/module/src/services/GitHubAuthService.js +0 -180
- package/dist/module/src/types/features.js +0 -31
- package/dist/module/src/utils/api.js +0 -87
- package/dist/module/src/utils/featureUtils.js +0 -24
- package/dist/module/src/utils/gitTest.js +0 -23
- package/dist/module/src/utils/makePrompt.js +0 -109
- package/dist/module/src/utils.js +0 -130
- package/dist/types/src/App.d.ts +0 -19
- package/dist/types/src/PM/PM_WithBuild.d.ts +0 -13
- package/dist/types/src/PM/PM_WithEslintAndTsc.d.ts +0 -22
- package/dist/types/src/PM/PM_WithGit.d.ts +0 -27
- package/dist/types/src/PM/PM_WithProcesses.d.ts +0 -29
- package/dist/types/src/PM/PM_WithWebSocket.d.ts +0 -108
- package/dist/types/src/PM/base.d.ts +0 -35
- package/dist/types/src/PM/main.d.ts +0 -8
- package/dist/types/src/ReportServer.test.ts/index.d.ts +0 -2
- package/dist/types/src/components/SunriseAnimation.test/interface.d.ts +0 -11
- package/dist/types/src/components/SunriseAnimation.test/types.d.ts +0 -39
- package/dist/types/src/components/pure/AppFrame.d.ts +0 -11
- package/dist/types/src/components/pure/AppFrame.test/index.d.ts +0 -3
- package/dist/types/src/components/pure/FeaturesReporterView.d.ts +0 -7
- package/dist/types/src/components/pure/FeaturesReporterView.test/index.d.ts +0 -2
- package/dist/types/src/components/pure/GitIntegrationView.d.ts +0 -1
- package/dist/types/src/components/pure/ModalContent.test/index.d.ts +0 -2
- package/dist/types/src/components/pure/ProcessManagerView.d.ts +0 -20
- package/dist/types/src/components/pure/ProjectPageView.d.ts +0 -14
- package/dist/types/src/components/pure/ProjectPageView.test/implementation.d.ts +0 -3
- package/dist/types/src/components/pure/ProjectPageView.test/index.d.ts +0 -2
- package/dist/types/src/components/pure/SingleProcessView.d.ts +0 -10
- package/dist/types/src/components/pure/TestPageView.d.ts +0 -16
- package/dist/types/src/components/pure/TestPageView.test/implementation.d.ts +0 -12
- package/dist/types/src/components/pure/TestPageView.test/index.d.ts +0 -3
- package/dist/types/src/components/pure/TestPageView.test/specification.d.ts +0 -11
- package/dist/types/src/components/pure/TestPageView.test/types.d.ts +0 -65
- package/dist/types/src/components/pure/TestPageView_utils.d.ts +0 -23
- package/dist/types/src/components/stateful/FeaturesReporter.d.ts +0 -2
- package/dist/types/src/components/stateful/SingleProcessPage.d.ts +0 -2
- package/dist/types/src/services/FileService.d.ts +0 -34
- package/dist/types/src/types/features.d.ts +0 -7
- package/dist/types/src/utils/api.d.ts +0 -10
- package/dist/types/src/utils/featureUtils.d.ts +0 -6
- package/dist/types/src/utils/gitTest.d.ts +0 -11
- package/dist/types/src/utils/makePrompt.d.ts +0 -2
- package/dist/types/src/utils.d.ts +0 -20
- package/pitono/__init__.py +0 -54
- package/pitono/base_given.py +0 -131
- package/pitono/base_suite.py +0 -95
- package/pitono/base_then.py +0 -50
- package/pitono/base_when.py +0 -52
- package/pitono/pitono.egg-info/PKG-INFO +0 -17
- package/pitono/pitono.egg-info/SOURCES.txt +0 -7
- package/pitono/types.py +0 -78
- package/src/App.tsx +0 -228
- package/src/PM/PM_WithBuild.ts +0 -171
- package/src/PM/PM_WithEslintAndTsc.ts +0 -279
- package/src/PM/PM_WithGit.ts +0 -585
- package/src/PM/PM_WithProcesses.ts +0 -639
- package/src/PM/PM_WithWebSocket.ts +0 -631
- package/src/PM/base.ts +0 -390
- package/src/PM/main.ts +0 -849
- package/src/PM/metafileOutputs.ts +0 -90
- package/src/ReportServer.test.ts/index.ts +0 -194
- package/src/app.scss +0 -19
- package/src/components/DesignEditorPage.tsx +0 -202
- package/src/components/SunriseAnimation.test/interface.ts +0 -49
- package/src/components/SunriseAnimation.test/types.ts +0 -53
- package/src/components/SunriseAnimation.tsx +0 -350
- package/src/components/pure/AppFrame.tsx +0 -300
- package/src/components/pure/FeaturesReporterView.tsx +0 -37
- package/src/components/pure/GitHubLoginButton.tsx +0 -31
- package/src/components/pure/GitIntegrationView.tsx +0 -443
- package/src/components/pure/ModalContent.test/index.tsx +0 -67
- package/src/components/pure/NavBar.tsx +0 -118
- package/src/components/pure/ProcessManager.tsx +0 -118
- package/src/components/pure/ProcessManagerView.tsx +0 -410
- package/src/components/pure/ProjectPageView.test/implementation.tsx +0 -213
- package/src/components/pure/ProjectPageView.tsx +0 -148
- package/src/components/pure/Settings.test.tsx +0 -34
- package/src/components/pure/Settings.tsx +0 -163
- package/src/components/pure/SignIn.tsx +0 -33
- package/src/components/pure/SingleProcessView.tsx +0 -231
- package/src/components/pure/TestPageView.test/implementation.ts +0 -162
- package/src/components/pure/TestPageView.test/index.tsx +0 -20
- package/src/components/pure/TestPageView.test/specification.ts +0 -59
- package/src/components/pure/TestPageView.test/types.ts +0 -92
- package/src/components/pure/TestPageView.tsx +0 -706
- package/src/components/pure/TestPageView_utils.tsx +0 -285
- package/src/components/stateful/FeaturesReporter.tsx +0 -26
- package/src/components/stateful/GitIntegrationPage.tsx +0 -8
- package/src/components/stateful/ProcessManagerPage.tsx +0 -104
- package/src/components/stateful/ProjectPage.tsx +0 -86
- package/src/components/stateful/ProjectsPage.tsx +0 -100
- package/src/components/stateful/SVGEditor/SVGAttributesEditor.tsx +0 -73
- package/src/components/stateful/SVGEditor/SVGPreview.tsx +0 -225
- package/src/components/stateful/SVGEditorPage.tsx +0 -503
- package/src/components/stateful/SingleProcessPage.tsx +0 -142
- package/src/components/stateful/TestPage.tsx +0 -268
- package/src/golingvu/base_suite_test.go +0 -197
- package/src/hooks/useGitMode.ts +0 -20
- package/src/services/FileService.ts +0 -542
- package/src/services/GitHubAuthService.ts +0 -240
- package/src/templates/frontpage.html +0 -340
- package/src/templates/frontpage.md +0 -79
- package/src/types/features.ts +0 -38
- package/src/utils/api.ts +0 -108
- package/src/utils/featureUtils.tsx +0 -42
- package/src/utils/gitTest.ts +0 -29
- package/src/utils/makePrompt.ts +0 -149
- package/src/utils.ts +0 -202
- package/stargazers.txt +0 -15
- package/testeranto/bundles/golang/core/Calculator.golingvu.go +0 -53
- package/testeranto/bundles/golang/core/Calculator.golingvu.golingvu.go +0 -53
- package/testeranto/bundles/node/core/chunk-RIM6RECA.mjs +0 -1170
- package/testeranto/bundles/node/core/chunk-VXVF7WFO.mjs +0 -4321
- package/testeranto/bundles/node/core/src/lib/BaseSuite.test/node.test.mjs +0 -270
- package/testeranto/bundles/node/core/src/lib/TipoSkripto.test/TipoSkripto.mjs +0 -574
- package/testeranto/bundles/node/core/src/lib/pmProxy.test/index.mjs +0 -482
- package/testeranto/bundles/pure/core/chunk-XYOCRDEQ.mjs +0 -1080
- package/testeranto/bundles/pure/core/src/Pure.test.mjs +0 -410
- package/testeranto/bundles/pure/core/src/lib/BaseSuite.test/pure.test.mjs +0 -270
- package/testeranto/bundles/python/core/test_example.py +0 -24
- 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-DFRN4SYZ.mjs +0 -2297
- package/testeranto/bundles/web/core/chunk-JMDLMADH.mjs +0 -27996
- package/testeranto/bundles/web/core/chunk-LQMU5NCG.mjs +0 -3082
- package/testeranto/bundles/web/core/chunk-Q5TONB2Z.mjs +0 -6874
- package/testeranto/bundles/web/core/src/components/pure/FeaturesReporterView.test/index.mjs +0 -164
- package/testeranto/bundles/web/core/src/components/pure/ModalContent.test/index.css +0 -11697
- package/testeranto/bundles/web/core/src/components/pure/ModalContent.test/index.mjs +0 -336
- package/testeranto/bundles/web/core/src/components/pure/ProjectPageView.test/index.css +0 -11697
- package/testeranto/bundles/web/core/src/components/pure/ProjectPageView.test/index.mjs +0 -517
- package/testeranto/bundles/web/core/src/lib/BaseSuite.test/web.test.mjs +0 -285
- package/testeranto/metafiles/pure/core.json +0 -734
- package/testeranto/metafiles/web/core.json +0 -16501
- package/testeranto/reports/core/src/Pure.test/pure/message.txt +0 -17
- package/testeranto/reports/core/src/Pure.test/pure/prompt.txt +0 -14
- package/testeranto/reports/core/src/Pure.test/pure/type_errors.txt +0 -73
- package/testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/error.log +0 -91
- package/testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/info.log +0 -2
- package/testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/tests.json +0 -68
- package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/error.log +0 -30
- package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/info.log +0 -2
- package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/tests.json +0 -88
- package/testeranto/reports/core/src/lib/BaseSuite.test/node.test/node/exit.log +0 -1
- package/testeranto/reports/core/src/lib/BaseSuite.test/node.test/node/message.txt +0 -17
- package/testeranto/reports/core/src/lib/BaseSuite.test/node.test/node/prompt.txt +0 -15
- package/testeranto/reports/core/src/lib/BaseSuite.test/node.test/node/stdout.log +0 -1
- package/testeranto/reports/core/src/lib/BaseSuite.test/node.test/node/tests.json +0 -29
- package/testeranto/reports/core/src/lib/BaseSuite.test/node.test/node/type_errors.txt +0 -53
- package/testeranto/reports/core/src/lib/BaseSuite.test/pure.test/pure/exit.log +0 -0
- package/testeranto/reports/core/src/lib/BaseSuite.test/pure.test/pure/lint_errors.txt +0 -0
- package/testeranto/reports/core/src/lib/BaseSuite.test/pure.test/pure/message.txt +0 -17
- package/testeranto/reports/core/src/lib/BaseSuite.test/pure.test/pure/prompt.txt +0 -15
- package/testeranto/reports/core/src/lib/BaseSuite.test/pure.test/pure/type_errors.txt +0 -58
- package/testeranto/reports/core/src/lib/BaseSuite.test/web.test/web/debug.log +0 -0
- package/testeranto/reports/core/src/lib/BaseSuite.test/web.test/web/error.log +0 -1
- package/testeranto/reports/core/src/lib/BaseSuite.test/web.test/web/exit.log +0 -1
- package/testeranto/reports/core/src/lib/BaseSuite.test/web.test/web/info.log +0 -0
- package/testeranto/reports/core/src/lib/BaseSuite.test/web.test/web/tests.json +0 -29
- package/testeranto/reports/core/src/lib/BaseSuite.test/web.test/web/warn.log +0 -0
- package/testeranto/reports/core/src/lib/TipoSkripto.test/TipoSkripto/node/exit.log +0 -1
- package/testeranto/reports/core/src/lib/TipoSkripto.test/TipoSkripto/node/lint_errors.txt +0 -0
- package/testeranto/reports/core/src/lib/TipoSkripto.test/TipoSkripto/node/message.txt +0 -17
- package/testeranto/reports/core/src/lib/TipoSkripto.test/TipoSkripto/node/prompt.txt +0 -17
- package/testeranto/reports/core/src/lib/TipoSkripto.test/TipoSkripto/node/stderr.log +0 -55
- package/testeranto/reports/core/src/lib/TipoSkripto.test/TipoSkripto/node/stdout.log +0 -191
- package/testeranto/reports/core/src/lib/TipoSkripto.test/TipoSkripto/node/type_errors.txt +0 -71
- package/testeranto/reports/core/src/lib/pmProxy.test/index/node/exit.log +0 -1
- package/testeranto/reports/core/src/lib/pmProxy.test/index/node/lint_errors.txt +0 -15
- package/testeranto/reports/core/src/lib/pmProxy.test/index/node/message.txt +0 -17
- package/testeranto/reports/core/src/lib/pmProxy.test/index/node/prompt.txt +0 -17
- package/testeranto/reports/core/src/lib/pmProxy.test/index/node/stderr.log +0 -20
- package/testeranto/reports/core/src/lib/pmProxy.test/index/node/stdout.log +0 -4
- package/testeranto/reports/core/src/lib/pmProxy.test/index/node/type_errors.txt +0 -49
- package/testeranto.ts-0.0.1.tgz +0 -0
- package/type-fix.txt +0 -2
- /package/{dist/types/src/PM/metafileOutputs.d.ts → build-go.sh} +0 -0
- /package/dist/common/src/{components → app/frontend/components}/SunriseAnimation.test/implementation.js +0 -0
- /package/dist/common/src/{components → app/frontend/components}/SunriseAnimation.test/index.js +0 -0
- /package/dist/common/src/{components → app/frontend/components}/SunriseAnimation.test/specification.js +0 -0
- /package/dist/common/src/{components → app/frontend/components}/SunriseAnimation.test/types.js +0 -0
- /package/dist/common/src/{components → app/frontend/components}/TestStatusBadge.js +0 -0
- /package/dist/common/src/{components → app/frontend/components}/pure/AppFrame.test/implementation.js +0 -0
- /package/dist/common/src/{components → app/frontend/components}/pure/AppFrame.test/index.js +0 -0
- /package/dist/common/src/{components → app/frontend/components}/pure/AppFrame.test/specification.js +0 -0
- /package/dist/common/src/{components → app/frontend/components}/pure/AppFrame.test/types.js +0 -0
- /package/dist/common/src/{components → app/frontend/components}/pure/ArtifactTree.js +0 -0
- /package/dist/common/src/{components → app/frontend/components}/pure/BuildLogViewer.js +0 -0
- /package/dist/common/src/{components → app/frontend/components}/pure/DebugEnv.js +0 -0
- /package/dist/common/src/{components → app/frontend/components}/pure/FeaturesReporterView.js +0 -0
- /package/dist/common/src/{components → app/frontend/components}/pure/FeaturesReporterView.test/implementation.js +0 -0
- /package/dist/common/src/{components → app/frontend/components}/pure/FeaturesReporterView.test/index.js +0 -0
- /package/dist/common/src/{components → app/frontend/components}/pure/FeaturesReporterView.test/specification.js +0 -0
- /package/dist/common/src/{components → app/frontend/components}/pure/FeaturesReporterView.test/types.js +0 -0
- /package/dist/common/src/{components → app/frontend/components}/pure/FileTree.js +0 -0
- /package/dist/common/src/{components → app/frontend/components}/pure/FileTreeItem.js +0 -0
- /package/dist/common/src/{components → app/frontend/components}/pure/ModalContent.js +0 -0
- /package/dist/common/src/{components → app/frontend/components}/pure/ModalContent.test/implementation.js +0 -0
- /package/dist/common/src/{components → app/frontend/components}/pure/ModalContent.test/specification.js +0 -0
- /package/dist/common/src/{components → app/frontend/components}/pure/ModalContent.test/types.js +0 -0
- /package/dist/common/src/{components → app/frontend/components}/pure/ProjectPageView.test/index.js +0 -0
- /package/dist/common/src/{components → app/frontend/components}/pure/ProjectPageView.test/specification.js +0 -0
- /package/dist/common/src/{components → app/frontend/components}/pure/ProjectPageView.test/types.js +0 -0
- /package/dist/common/src/{components → app/frontend/components}/pure/ProjectsPageView.js +0 -0
- /package/dist/common/src/{components → app/frontend/components}/pure/SettingsButton.js +0 -0
- /package/dist/common/src/{components → app/frontend/components}/pure/TestTable.js +0 -0
- /package/dist/common/src/{components → app/frontend/components}/pure/ThemeCard.js +0 -0
- /package/dist/common/src/{components → app/frontend/components}/pure/ToastNotification.js +0 -0
- /package/dist/common/src/{components → app/frontend/components}/pure/UserProfile.js +0 -0
- /package/dist/common/src/{components → app/frontend/components}/stateful/AuthCallbackPage.js +0 -0
- /package/dist/common/src/{components → app/frontend/components}/stateful/FileTree.js +0 -0
- /package/dist/common/src/{components → app/frontend/components}/stateful/SettingsPage.js +0 -0
- /package/dist/common/src/{components → app/frontend/components}/stateful/TextEditorPage.js +0 -0
- /package/dist/common/src/{components/pure → app/frontend/testPage}/TestPageView.test/types.js +0 -0
- /package/dist/module/src/{components → app/frontend/components}/SunriseAnimation.test/implementation.js +0 -0
- /package/dist/module/src/{components → app/frontend/components}/SunriseAnimation.test/index.js +0 -0
- /package/dist/module/src/{components → app/frontend/components}/SunriseAnimation.test/specification.js +0 -0
- /package/dist/module/src/{components → app/frontend/components}/SunriseAnimation.test/types.js +0 -0
- /package/dist/module/src/{components → app/frontend/components}/TestStatusBadge.js +0 -0
- /package/dist/module/src/{components → app/frontend/components}/pure/AppFrame.test/implementation.js +0 -0
- /package/dist/module/src/{components → app/frontend/components}/pure/AppFrame.test/index.js +0 -0
- /package/dist/module/src/{components → app/frontend/components}/pure/AppFrame.test/specification.js +0 -0
- /package/dist/module/src/{components → app/frontend/components}/pure/AppFrame.test/types.js +0 -0
- /package/dist/module/src/{components → app/frontend/components}/pure/ArtifactTree.js +0 -0
- /package/dist/module/src/{components → app/frontend/components}/pure/BuildLogViewer.js +0 -0
- /package/dist/module/src/{components → app/frontend/components}/pure/DebugEnv.js +0 -0
- /package/dist/module/src/{components → app/frontend/components}/pure/FeaturesReporterView.js +0 -0
- /package/dist/module/src/{components → app/frontend/components}/pure/FeaturesReporterView.test/implementation.js +0 -0
- /package/dist/module/src/{components → app/frontend/components}/pure/FeaturesReporterView.test/index.js +0 -0
- /package/dist/module/src/{components → app/frontend/components}/pure/FeaturesReporterView.test/specification.js +0 -0
- /package/dist/module/src/{components → app/frontend/components}/pure/FeaturesReporterView.test/types.js +0 -0
- /package/dist/module/src/{components → app/frontend/components}/pure/FileTree.js +0 -0
- /package/dist/module/src/{components → app/frontend/components}/pure/FileTreeItem.js +0 -0
- /package/dist/module/src/{components → app/frontend/components}/pure/ModalContent.js +0 -0
- /package/dist/module/src/{components → app/frontend/components}/pure/ModalContent.test/implementation.js +0 -0
- /package/dist/module/src/{components → app/frontend/components}/pure/ModalContent.test/specification.js +0 -0
- /package/dist/module/src/{components → app/frontend/components}/pure/ModalContent.test/types.js +0 -0
- /package/dist/{types/src/components/pure/Settings.test.d.ts → module/src/app/frontend/components/pure/ProcessManagerViewTypes.js} +0 -0
- /package/dist/module/src/{components → app/frontend/components}/pure/ProjectPageView.test/index.js +0 -0
- /package/dist/module/src/{components → app/frontend/components}/pure/ProjectPageView.test/specification.js +0 -0
- /package/dist/module/src/{components → app/frontend/components}/pure/ProjectPageView.test/types.js +0 -0
- /package/dist/module/src/{components → app/frontend/components}/pure/ProjectsPageView.js +0 -0
- /package/dist/module/src/{components → app/frontend/components}/pure/SettingsButton.js +0 -0
- /package/dist/module/src/{components → app/frontend/components}/pure/TestTable.js +0 -0
- /package/dist/module/src/{components → app/frontend/components}/pure/ThemeCard.js +0 -0
- /package/dist/module/src/{components → app/frontend/components}/pure/ToastNotification.js +0 -0
- /package/dist/module/src/{components → app/frontend/components}/pure/UserProfile.js +0 -0
- /package/dist/module/src/{components → app/frontend/components}/stateful/AuthCallbackPage.js +0 -0
- /package/dist/module/src/{components → app/frontend/components}/stateful/FileTree.js +0 -0
- /package/dist/module/src/{components → app/frontend/components}/stateful/SettingsPage.js +0 -0
- /package/dist/module/src/{components → app/frontend/components}/stateful/TextEditorPage.js +0 -0
- /package/dist/module/src/{components/pure → app/frontend/testPage}/TestPageView.test/types.js +0 -0
- /package/dist/types/src/{ReportServer.d.ts → app/backend/PM_WithProcesses.d.ts} +0 -0
- /package/dist/types/src/{services → app/frontend}/GitHubAuthService.d.ts +0 -0
- /package/dist/types/src/{components → app/frontend/components}/DesignEditorPage.d.ts +0 -0
- /package/dist/types/src/{components → app/frontend/components}/SunriseAnimation.d.ts +0 -0
- /package/dist/types/src/{components → app/frontend/components}/SunriseAnimation.test/implementation.d.ts +0 -0
- /package/dist/types/src/{components → app/frontend/components}/SunriseAnimation.test/index.d.ts +0 -0
- /package/dist/types/src/{components → app/frontend/components}/SunriseAnimation.test/specification.d.ts +0 -0
- /package/dist/types/src/{components → app/frontend/components}/TestStatusBadge.d.ts +0 -0
- /package/dist/types/src/{components → app/frontend/components}/pure/AppFrame.test/implementation.d.ts +0 -0
- /package/dist/types/src/{components → app/frontend/components}/pure/AppFrame.test/specification.d.ts +0 -0
- /package/dist/types/src/{components → app/frontend/components}/pure/AppFrame.test/types.d.ts +0 -0
- /package/dist/types/src/{components → app/frontend/components}/pure/ArtifactTree.d.ts +0 -0
- /package/dist/types/src/{components → app/frontend/components}/pure/BuildLogViewer.d.ts +0 -0
- /package/dist/types/src/{components → app/frontend/components}/pure/DebugEnv.d.ts +0 -0
- /package/dist/types/src/{components → app/frontend/components}/pure/FeaturesReporterView.test/implementation.d.ts +0 -0
- /package/dist/types/src/{components → app/frontend/components}/pure/FeaturesReporterView.test/specification.d.ts +0 -0
- /package/dist/types/src/{components → app/frontend/components}/pure/FeaturesReporterView.test/types.d.ts +0 -0
- /package/dist/types/src/{components → app/frontend/components}/pure/FileTree.d.ts +0 -0
- /package/dist/types/src/{components → app/frontend/components}/pure/FileTreeItem.d.ts +0 -0
- /package/dist/types/src/{components → app/frontend/components}/pure/GitHubLoginButton.d.ts +0 -0
- /package/dist/types/src/{components → app/frontend/components}/pure/ModalContent.d.ts +0 -0
- /package/dist/types/src/{components → app/frontend/components}/pure/ModalContent.test/implementation.d.ts +0 -0
- /package/dist/types/src/{components → app/frontend/components}/pure/ModalContent.test/specification.d.ts +0 -0
- /package/dist/types/src/{components → app/frontend/components}/pure/ModalContent.test/types.d.ts +0 -0
- /package/dist/types/src/{components → app/frontend/components}/pure/NavBar.d.ts +0 -0
- /package/dist/types/src/{components → app/frontend/components}/pure/ProcessManager.d.ts +0 -0
- /package/dist/types/src/{components → app/frontend/components}/pure/ProjectPageView.test/specification.d.ts +0 -0
- /package/dist/types/src/{components → app/frontend/components}/pure/ProjectPageView.test/types.d.ts +0 -0
- /package/dist/types/src/{components → app/frontend/components}/pure/ProjectsPageView.d.ts +0 -0
- /package/dist/types/src/{components → app/frontend/components}/pure/Settings.d.ts +0 -0
- /package/dist/types/src/{ReportServerLib.d.ts → app/frontend/components/pure/Settings.test.d.ts} +0 -0
- /package/dist/types/src/{components → app/frontend/components}/pure/SettingsButton.d.ts +0 -0
- /package/dist/types/src/{components → app/frontend/components}/pure/SignIn.d.ts +0 -0
- /package/dist/types/src/{components/stateful/FileTree.d.ts → app/frontend/components/pure/SingleProcessView.d.ts} +0 -0
- /package/dist/types/src/{components → app/frontend/components}/pure/TestTable.d.ts +0 -0
- /package/dist/types/src/{components → app/frontend/components}/pure/ThemeCard.d.ts +0 -0
- /package/dist/types/src/{components → app/frontend/components}/pure/ToastNotification.d.ts +0 -0
- /package/dist/types/src/{components → app/frontend/components}/pure/UserProfile.d.ts +0 -0
- /package/dist/types/src/{components → app/frontend/components}/stateful/AuthCallbackPage.d.ts +0 -0
- /package/{src/ReportServer.ts → dist/types/src/app/frontend/components/stateful/FeaturesReporter.d.ts} +0 -0
- /package/{src/ReportServerLib.ts → dist/types/src/app/frontend/components/stateful/FileTree.d.ts} +0 -0
- /package/dist/types/src/{components → app/frontend/components}/stateful/GitIntegrationPage.d.ts +0 -0
- /package/dist/types/src/{components → app/frontend/components}/stateful/ProcessManagerPage.d.ts +0 -0
- /package/dist/types/src/{components → app/frontend/components}/stateful/ProjectPage.d.ts +0 -0
- /package/dist/types/src/{components → app/frontend/components}/stateful/ProjectsPage.d.ts +0 -0
- /package/dist/types/src/{components → app/frontend/components}/stateful/SettingsPage.d.ts +0 -0
- /package/{src/components/SunriseAnimation.test/implementation.ts → dist/types/src/app/frontend/components/stateful/SingleProcessPage.d.ts} +0 -0
- /package/dist/types/src/{components → app/frontend/components}/stateful/TextEditorPage.d.ts +0 -0
- /package/{src/components/SunriseAnimation.test/index.ts → dist/types/src/app/frontend/fetchDataUtil.d.ts} +0 -0
- /package/dist/types/src/{components/stateful → app/frontend/testPage}/TestPage.d.ts +0 -0
- /package/{src/components/SunriseAnimation.test/specification.ts → dist/types/src/app/frontend/useFileSystemSync.d.ts} +0 -0
- /package/dist/types/src/{hooks → app/frontend}/useGitMode.d.ts +0 -0
- /package/{testeranto/reports/core/src/Pure.test/pure/exit.log → docker.md} +0 -0
- /package/{testeranto/reports/core/src/Pure.test/pure/lint_errors.txt → src/app/frontend/components/SunriseAnimation.test/implementation.ts} +0 -0
- /package/{testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/debug.log → src/app/frontend/components/SunriseAnimation.test/index.ts} +0 -0
- /package/src/{components → app/frontend/components}/SunriseAnimation.test/index.tsx +0 -0
- /package/{testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/warn.log → src/app/frontend/components/SunriseAnimation.test/specification.ts} +0 -0
- /package/src/{components → app/frontend/components}/TestStatusBadge.tsx +0 -0
- /package/src/{components → app/frontend/components}/pure/AppFrame.test/implementation.tsx +0 -0
- /package/src/{components → app/frontend/components}/pure/AppFrame.test/index.tsx +0 -0
- /package/src/{components → app/frontend/components}/pure/AppFrame.test/specification.ts +0 -0
- /package/src/{components → app/frontend/components}/pure/AppFrame.test/types.ts +0 -0
- /package/src/{components → app/frontend/components}/pure/ArtifactTree.tsx +0 -0
- /package/src/{components → app/frontend/components}/pure/BuildLogViewer.tsx +0 -0
- /package/src/{components → app/frontend/components}/pure/DebugEnv.tsx +0 -0
- /package/src/{components → app/frontend/components}/pure/FeaturesReporterView.test/implementation.tsx +0 -0
- /package/src/{components → app/frontend/components}/pure/FeaturesReporterView.test/index.tsx +0 -0
- /package/src/{components → app/frontend/components}/pure/FeaturesReporterView.test/specification.ts +0 -0
- /package/src/{components → app/frontend/components}/pure/FeaturesReporterView.test/types.ts +0 -0
- /package/src/{components → app/frontend/components}/pure/FileTree.tsx +0 -0
- /package/src/{components → app/frontend/components}/pure/FileTreeItem.tsx +0 -0
- /package/src/{components → app/frontend/components}/pure/ModalContent.test/implementation.tsx +0 -0
- /package/src/{components → app/frontend/components}/pure/ModalContent.test/specification.ts +0 -0
- /package/src/{components → app/frontend/components}/pure/ModalContent.test/types.ts +0 -0
- /package/src/{components → app/frontend/components}/pure/ModalContent.tsx +0 -0
- /package/src/{components → app/frontend/components}/pure/ProjectPageView.test/index.tsx +0 -0
- /package/src/{components → app/frontend/components}/pure/ProjectPageView.test/specification.ts +0 -0
- /package/src/{components → app/frontend/components}/pure/ProjectPageView.test/types.ts +0 -0
- /package/src/{components → app/frontend/components}/pure/ProjectsPageView.tsx +0 -0
- /package/src/{components → app/frontend/components}/pure/SettingsButton.md +0 -0
- /package/src/{components → app/frontend/components}/pure/SettingsButton.tsx +0 -0
- /package/src/{components → app/frontend/components}/pure/TestTable.tsx +0 -0
- /package/src/{components → app/frontend/components}/pure/ThemeCard.tsx +0 -0
- /package/src/{components → app/frontend/components}/pure/ToastNotification.tsx +0 -0
- /package/src/{components → app/frontend/components}/pure/UserProfile.tsx +0 -0
- /package/src/{components → app/frontend/components}/stateful/AuthCallbackPage.tsx +0 -0
- /package/src/{components → app/frontend/components}/stateful/FileTree.tsx +0 -0
- /package/src/{components → app/frontend/components}/stateful/SVGEditor/CircleForm.tsx +0 -0
- /package/src/{components → app/frontend/components}/stateful/SVGEditor/GroupForm.tsx +0 -0
- /package/src/{components → app/frontend/components}/stateful/SVGEditor/RectForm.tsx +0 -0
- /package/src/{components → app/frontend/components}/stateful/SVGEditor/SVGAttributeField.tsx +0 -0
- /package/src/{components → app/frontend/components}/stateful/SVGEditor/SVGEditorControls.tsx +0 -0
- /package/src/{components → app/frontend/components}/stateful/SVGEditor/SVGElementForm.tsx +0 -0
- /package/src/{components → app/frontend/components}/stateful/SVGEditor/SVGTextEditor.tsx +0 -0
- /package/src/{components → app/frontend/components}/stateful/SVGEditor/SVGTree.tsx +0 -0
- /package/src/{components → app/frontend/components}/stateful/SVGEditor/SVGTypes.ts +0 -0
- /package/src/{components → app/frontend/components}/stateful/SVGEditor/svg.xsd.xml +0 -0
- /package/src/{components → app/frontend/components}/stateful/SettingsPage.tsx +0 -0
- /package/src/{components → app/frontend/components}/stateful/TextEditorPage.tsx +0 -0
- /package/{pitono → src/pitono}/core_generator.py +0 -0
- /package/{pitono → src/pitono}/pitono.egg-info/dependency_links.txt +0 -0
- /package/{pitono → src/pitono}/pitono.egg-info/entry_points.txt +0 -0
- /package/{pitono → src/pitono}/pitono.egg-info/top_level.txt +0 -0
- /package/{pitono → src/pitono}/pyproject.toml +0 -0
- /package/{pitono → src/pitono}/setup.py +0 -0
- /package/{pitono → src/pitono}/simple_adapter.py +0 -0
- /package/testeranto/{reports/core/src/components/pure/ProjectPageView.test/index/web/debug.log → helpo_chat_message.txt} +0 -0
- /package/testeranto/{projects.html → index.html} +0 -0
- /package/testeranto/reports/core/{src/components/pure/ProjectPageView.test/index/web/warn.log → example/Calculator.golingvu.test/golang/stdout.log} +0 -0
- /package/testeranto/reports/core/{src/components/pure/FeaturesReporterView.test/index/web → example/Calculator.pitono.test/python}/exit.log +0 -0
- /package/testeranto/reports/core/{src/lib/BaseSuite.test/node.test/node → example/Calculator.pitono.test/python}/stderr.log +0 -0
- /package/testeranto/reports/core/{src/components/pure/ProjectPageView.test/index/web → example/Calculator.test/node}/exit.log +0 -0
- /package/testeranto/reports/core/{src/lib/BaseSuite.test/node.test/node/lint_errors.txt → example/Calculator.test/node/stdout.log} +0 -0
|
@@ -32,7 +32,19 @@ class Tiposkripto {
|
|
|
32
32
|
return a;
|
|
33
33
|
}, {});
|
|
34
34
|
const classyGivens = Object.entries(testImplementation.givens).reduce((a, [key, g]) => {
|
|
35
|
-
a[key] = (
|
|
35
|
+
a[key] = (
|
|
36
|
+
// name: string,
|
|
37
|
+
features, whens, thens, gcb, initialValues) => {
|
|
38
|
+
// Debug the parameters being passed - check if features contains when-like objects
|
|
39
|
+
// console.log(`[Tiposkripto] Creating Given ${key} with:`);
|
|
40
|
+
// console.log(` name: ${name}`);
|
|
41
|
+
// console.log(` features:`, features);
|
|
42
|
+
// console.log(` whens:`, whens);
|
|
43
|
+
// console.log(` thens:`, thens);
|
|
44
|
+
// Ensure parameters are arrays and create copies to avoid reference issues
|
|
45
|
+
const safeFeatures = Array.isArray(features) ? [...features] : [];
|
|
46
|
+
const safeWhens = Array.isArray(whens) ? [...whens] : [];
|
|
47
|
+
const safeThens = Array.isArray(thens) ? [...thens] : [];
|
|
36
48
|
return new (class extends BaseGiven_1.BaseGiven {
|
|
37
49
|
constructor() {
|
|
38
50
|
super(...arguments);
|
|
@@ -44,27 +56,33 @@ class Tiposkripto {
|
|
|
44
56
|
afterEach(store, key, artifactory, pm) {
|
|
45
57
|
return Promise.resolve(fullAdapter.afterEach(store, key, pm));
|
|
46
58
|
}
|
|
47
|
-
})(
|
|
59
|
+
})(
|
|
60
|
+
// name,
|
|
61
|
+
safeFeatures, safeWhens, safeThens, testImplementation.givens[key], initialValues);
|
|
48
62
|
};
|
|
49
63
|
return a;
|
|
50
64
|
}, {});
|
|
51
65
|
const classyWhens = Object.entries(testImplementation.whens).reduce((a, [key, whEn]) => {
|
|
52
66
|
a[key] = (...payload) => {
|
|
53
|
-
|
|
67
|
+
const whenInstance = new (class extends BaseWhen_js_1.BaseWhen {
|
|
54
68
|
async andWhen(store, whenCB, testResource, pm) {
|
|
55
69
|
return await fullAdapter.andWhen(store, whenCB, testResource, pm);
|
|
56
70
|
}
|
|
57
71
|
})(`${key}: ${payload && payload.toString()}`, whEn(...payload));
|
|
72
|
+
// console.log(`[Tiposkripto] Created When ${key}:`, whenInstance.name);
|
|
73
|
+
return whenInstance;
|
|
58
74
|
};
|
|
59
75
|
return a;
|
|
60
76
|
}, {});
|
|
61
77
|
const classyThens = Object.entries(testImplementation.thens).reduce((a, [key, thEn]) => {
|
|
62
78
|
a[key] = (...args) => {
|
|
63
|
-
|
|
79
|
+
const thenInstance = new (class extends BaseThen_js_1.BaseThen {
|
|
64
80
|
async butThen(store, thenCB, testResource, pm) {
|
|
65
81
|
return await fullAdapter.butThen(store, thenCB, testResource, pm);
|
|
66
82
|
}
|
|
67
83
|
})(`${key}: ${args && args.toString()}`, thEn(...args));
|
|
84
|
+
// console.log(`[Tiposkripto] Created Then ${key}:`, thenInstance.name);
|
|
85
|
+
return thenInstance;
|
|
68
86
|
};
|
|
69
87
|
return a;
|
|
70
88
|
}, {});
|
|
@@ -77,11 +95,7 @@ class Tiposkripto {
|
|
|
77
95
|
this.testSpecification = testSpecification;
|
|
78
96
|
// Generate specs
|
|
79
97
|
this.specs = testSpecification(this.Suites(), this.Given(), this.When(), this.Then());
|
|
80
|
-
// Calculate total number of tests (sum of all Givens across all Suites)
|
|
81
|
-
// Each suite should have a 'givens' property that's a record of test names to BaseGiven instances
|
|
82
98
|
this.totalTests = this.calculateTotalTests();
|
|
83
|
-
console.log(`Total tests calculated: ${this.totalTests}`);
|
|
84
|
-
// Create test jobs
|
|
85
99
|
this.testJobs = this.specs.map((suite) => {
|
|
86
100
|
const suiteRunner = (suite) => async (puppetMaster, tLog) => {
|
|
87
101
|
try {
|
|
@@ -109,6 +123,7 @@ class Tiposkripto {
|
|
|
109
123
|
try {
|
|
110
124
|
const suiteDone = await runner(puppetMaster, tLog);
|
|
111
125
|
const fails = suiteDone.fails;
|
|
126
|
+
// Always use PM.writeFileSync to write tests.json, not direct filesystem access
|
|
112
127
|
await puppetMaster.writeFileSync(`tests.json`, JSON.stringify(this.toObj(), null, 2), "test");
|
|
113
128
|
return {
|
|
114
129
|
failed: fails > 0,
|
|
@@ -156,12 +171,12 @@ class Tiposkripto {
|
|
|
156
171
|
calculateTotalTests() {
|
|
157
172
|
let total = 0;
|
|
158
173
|
for (const suite of this.specs) {
|
|
159
|
-
if (suite && typeof suite ===
|
|
174
|
+
if (suite && typeof suite === "object") {
|
|
160
175
|
// Access the givens property which should be a record of test names to BaseGiven instances
|
|
161
176
|
// The givens property is typically on the suite instance
|
|
162
|
-
if (
|
|
177
|
+
if ("givens" in suite) {
|
|
163
178
|
const givens = suite.givens;
|
|
164
|
-
if (givens && typeof givens ===
|
|
179
|
+
if (givens && typeof givens === "object") {
|
|
165
180
|
total += Object.keys(givens).length;
|
|
166
181
|
}
|
|
167
182
|
}
|
|
@@ -11,24 +11,13 @@ const Tiposkripto_1 = __importDefault(require("../Tiposkripto"));
|
|
|
11
11
|
* Concrete implementation of Tiposkripto for testing purposes
|
|
12
12
|
*/
|
|
13
13
|
class MockTiposkripto extends Tiposkripto_1.default {
|
|
14
|
-
constructor(input, testSpecification, testImplementation, testResourceRequirement = { ports:
|
|
15
|
-
// Call super first
|
|
14
|
+
constructor(input, testSpecification, testImplementation, testResourceRequirement = { ports: 0 }, testAdapter, uberCatcher = (cb) => cb()) {
|
|
16
15
|
super(input, testSpecification, testImplementation, testResourceRequirement, testAdapter, uberCatcher);
|
|
17
16
|
this.specs = [];
|
|
18
17
|
this.testJobs = [];
|
|
19
18
|
this.artifacts = [];
|
|
20
19
|
this.features = [];
|
|
21
20
|
this.testImplementation = testImplementation;
|
|
22
|
-
// Add debug logging for features
|
|
23
|
-
console.log('MockTiposkripto constructor called with input:', JSON.stringify(input));
|
|
24
|
-
// Validate required implementation methods
|
|
25
|
-
const requiredMethods = ["suites", "givens", "whens", "thens"];
|
|
26
|
-
requiredMethods.forEach((method) => {
|
|
27
|
-
if (!testImplementation[method]) {
|
|
28
|
-
throw new Error(`Missing required implementation method: ${method}`);
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
// Store the test adapter
|
|
32
21
|
this.testAdapter = testAdapter;
|
|
33
22
|
// Store implementation methods as overrides
|
|
34
23
|
this.suitesOverrides = testImplementation.suites;
|
|
@@ -40,9 +29,9 @@ class MockTiposkripto extends Tiposkripto_1.default {
|
|
|
40
29
|
// Each Given corresponds to one test
|
|
41
30
|
let totalTests = Object.keys(testImplementation.givens).length;
|
|
42
31
|
// Override with specific values for test cases
|
|
43
|
-
if (input && typeof input ===
|
|
32
|
+
if (input && typeof input === "object") {
|
|
44
33
|
const inputObj = input;
|
|
45
|
-
if (
|
|
34
|
+
if ("testCount" in inputObj) {
|
|
46
35
|
totalTests = Number(inputObj.testCount);
|
|
47
36
|
}
|
|
48
37
|
}
|
|
@@ -51,27 +40,27 @@ class MockTiposkripto extends Tiposkripto_1.default {
|
|
|
51
40
|
this.features = this.extractFeaturesFromSpecification(testSpecification);
|
|
52
41
|
}
|
|
53
42
|
catch (error) {
|
|
54
|
-
console.error(
|
|
43
|
+
console.error("Failed to extract features, using fallback:", error);
|
|
55
44
|
// Fallback to basic features
|
|
56
45
|
this.features = [
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
46
|
+
"Tiposkripto should initialize with default values",
|
|
47
|
+
"Custom input test",
|
|
48
|
+
"Resource requirements test",
|
|
49
|
+
"Should generate specs from test specification",
|
|
50
|
+
"Should create test jobs from specs",
|
|
51
|
+
"Should track artifacts",
|
|
52
|
+
"Should properly configure all overrides",
|
|
53
|
+
"Interface configuration test",
|
|
54
|
+
"Custom implementation test",
|
|
55
|
+
"Custom specification test",
|
|
56
|
+
"Should allow modifying specs",
|
|
57
|
+
"Should allow modifying jobs",
|
|
58
|
+
"Should properly handle errors",
|
|
59
|
+
"Should complete a full test run successfully",
|
|
60
|
+
"Should correctly count the number of tests",
|
|
61
|
+
"Should set runTimeTests to -1 on hard errors",
|
|
62
|
+
"Given a config that has 1 suite containing 5 GivenWhenThens",
|
|
63
|
+
"Given a config that has 1 suite containing 3 GivenWhenThens and 1 suite containing 3 GivenWhenThens",
|
|
75
64
|
];
|
|
76
65
|
}
|
|
77
66
|
}
|
|
@@ -82,14 +71,16 @@ class MockTiposkripto extends Tiposkripto_1.default {
|
|
|
82
71
|
const mockSuite = (name, tests, features) => ({
|
|
83
72
|
name,
|
|
84
73
|
tests,
|
|
85
|
-
features
|
|
74
|
+
features,
|
|
86
75
|
});
|
|
87
76
|
// The Given function should take features, whens, thens
|
|
88
77
|
const mockGiven = (features, whens, thens) => {
|
|
89
78
|
return {
|
|
90
|
-
features: Array.isArray(features)
|
|
79
|
+
features: Array.isArray(features)
|
|
80
|
+
? features.filter((f) => typeof f === "string")
|
|
81
|
+
: [],
|
|
91
82
|
whens,
|
|
92
|
-
thens
|
|
83
|
+
thens,
|
|
93
84
|
};
|
|
94
85
|
};
|
|
95
86
|
// Create mock When and Then objects that have all the methods from the implementation
|
|
@@ -98,13 +89,13 @@ class MockTiposkripto extends Tiposkripto_1.default {
|
|
|
98
89
|
const mockThen = {};
|
|
99
90
|
// Add all when methods
|
|
100
91
|
if (this.testImplementation.whens) {
|
|
101
|
-
Object.keys(this.testImplementation.whens).forEach(key => {
|
|
92
|
+
Object.keys(this.testImplementation.whens).forEach((key) => {
|
|
102
93
|
mockWhen[key] = (...args) => ({ name: key, args });
|
|
103
94
|
});
|
|
104
95
|
}
|
|
105
96
|
// Add all then methods
|
|
106
97
|
if (this.testImplementation.thens) {
|
|
107
|
-
Object.keys(this.testImplementation.thens).forEach(key => {
|
|
98
|
+
Object.keys(this.testImplementation.thens).forEach((key) => {
|
|
108
99
|
mockThen[key] = (...args) => ({ name: key, args });
|
|
109
100
|
});
|
|
110
101
|
}
|
|
@@ -113,13 +104,13 @@ class MockTiposkripto extends Tiposkripto_1.default {
|
|
|
113
104
|
// Extract all features from all tests in all suites
|
|
114
105
|
const features = [];
|
|
115
106
|
for (const suite of suites) {
|
|
116
|
-
if (suite && suite.tests && typeof suite.tests ===
|
|
107
|
+
if (suite && suite.tests && typeof suite.tests === "object") {
|
|
117
108
|
for (const testKey of Object.keys(suite.tests)) {
|
|
118
109
|
const test = suite.tests[testKey];
|
|
119
110
|
if (test && test.features && Array.isArray(test.features)) {
|
|
120
111
|
// Ensure all features are strings
|
|
121
112
|
for (const feature of test.features) {
|
|
122
|
-
if (typeof feature ===
|
|
113
|
+
if (typeof feature === "string") {
|
|
123
114
|
features.push(feature);
|
|
124
115
|
}
|
|
125
116
|
}
|
|
@@ -129,11 +120,10 @@ class MockTiposkripto extends Tiposkripto_1.default {
|
|
|
129
120
|
}
|
|
130
121
|
// Remove duplicates
|
|
131
122
|
const uniqueFeatures = [...new Set(features)];
|
|
132
|
-
console.log('Extracted features:', JSON.stringify(uniqueFeatures));
|
|
133
123
|
return uniqueFeatures;
|
|
134
124
|
}
|
|
135
125
|
catch (error) {
|
|
136
|
-
console.error(
|
|
126
|
+
console.error("Error extracting features from specification:", error);
|
|
137
127
|
return [];
|
|
138
128
|
}
|
|
139
129
|
}
|
|
@@ -144,13 +134,13 @@ class MockTiposkripto extends Tiposkripto_1.default {
|
|
|
144
134
|
throw new Error("Test adapter not configured");
|
|
145
135
|
}
|
|
146
136
|
// Ensure features are always strings
|
|
147
|
-
const stringFeatures = this.features.filter(f => typeof f ===
|
|
137
|
+
const stringFeatures = this.features.filter((f) => typeof f === "string");
|
|
148
138
|
// Calculate totalTests based on input
|
|
149
139
|
let totalTests = Object.keys(this.givenOverides).length;
|
|
150
140
|
const input = this.input;
|
|
151
141
|
// Override with specific values for test cases
|
|
152
|
-
if (input && typeof input ===
|
|
153
|
-
if (
|
|
142
|
+
if (input && typeof input === "object") {
|
|
143
|
+
if ("testCount" in input) {
|
|
154
144
|
totalTests = input.testCount;
|
|
155
145
|
}
|
|
156
146
|
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
3
|
+
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
2
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
5
|
exports.implementation = void 0;
|
|
4
6
|
const MockTiposkripto_1 = require("./MockTiposkripto");
|
|
@@ -15,7 +17,7 @@ exports.implementation = {
|
|
|
15
17
|
const builder = new MockTiposkripto_1.MockTiposkripto({}, // input
|
|
16
18
|
Tiposkripto_specification_1.specification, // Use the current specification
|
|
17
19
|
exports.implementation, // Use the current implementation
|
|
18
|
-
{ ports:
|
|
20
|
+
{ ports: 0 }, // Default resource requirements
|
|
19
21
|
Tiposkripto_adapter_1.testAdapter, // Default adapter
|
|
20
22
|
(cb) => cb() // Default uberCatcher
|
|
21
23
|
);
|
|
@@ -27,19 +29,19 @@ exports.implementation = {
|
|
|
27
29
|
return builder;
|
|
28
30
|
},
|
|
29
31
|
WithCustomInput: (input = {}) => {
|
|
30
|
-
return new MockTiposkripto_1.MockTiposkripto(input, Tiposkripto_specification_1.specification, exports.implementation, { ports:
|
|
32
|
+
return new MockTiposkripto_1.MockTiposkripto(input, Tiposkripto_specification_1.specification, exports.implementation, { ports: 0 }, Tiposkripto_adapter_1.testAdapter, (cb) => cb());
|
|
31
33
|
},
|
|
32
34
|
WithResourceRequirements: (requirements = { ports: 0 }) => {
|
|
33
35
|
return new MockTiposkripto_1.MockTiposkripto({}, Tiposkripto_specification_1.specification, exports.implementation, requirements, Tiposkripto_adapter_1.testAdapter, (cb) => cb());
|
|
34
36
|
},
|
|
35
37
|
WithCustomImplementation: (impl = exports.implementation) => {
|
|
36
|
-
return new MockTiposkripto_1.MockTiposkripto({}, Tiposkripto_specification_1.specification, impl, { ports:
|
|
38
|
+
return new MockTiposkripto_1.MockTiposkripto({}, Tiposkripto_specification_1.specification, impl, { ports: 0 }, Tiposkripto_adapter_1.testAdapter, (cb) => cb());
|
|
37
39
|
},
|
|
38
40
|
WithCustomSpecification: (spec = Tiposkripto_specification_1.specification) => {
|
|
39
|
-
return new MockTiposkripto_1.MockTiposkripto({}, spec, exports.implementation, { ports:
|
|
41
|
+
return new MockTiposkripto_1.MockTiposkripto({}, spec, exports.implementation, { ports: 0 }, Tiposkripto_adapter_1.testAdapter, (cb) => cb());
|
|
40
42
|
},
|
|
41
43
|
WithCustomAdapter: (customAdapter = {}) => {
|
|
42
|
-
return new MockTiposkripto_1.MockTiposkripto({}, Tiposkripto_specification_1.specification, exports.implementation, { ports:
|
|
44
|
+
return new MockTiposkripto_1.MockTiposkripto({}, Tiposkripto_specification_1.specification, exports.implementation, { ports: 0 }, Object.assign(Object.assign({}, Tiposkripto_adapter_1.testAdapter), customAdapter), (cb) => cb());
|
|
43
45
|
},
|
|
44
46
|
},
|
|
45
47
|
whens: {
|
|
@@ -147,16 +149,16 @@ exports.implementation = {
|
|
|
147
149
|
}
|
|
148
150
|
// Check if the test adapter has the required methods
|
|
149
151
|
const requiredMethods = [
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
152
|
+
"beforeAll",
|
|
153
|
+
"beforeEach",
|
|
154
|
+
"andWhen",
|
|
155
|
+
"butThen",
|
|
156
|
+
"afterEach",
|
|
157
|
+
"afterAll",
|
|
158
|
+
"assertThis",
|
|
157
159
|
];
|
|
158
160
|
for (const method of requiredMethods) {
|
|
159
|
-
if (typeof builder.testAdapter[method] !==
|
|
161
|
+
if (typeof builder.testAdapter[method] !== "function") {
|
|
160
162
|
throw new Error(`Test adapter missing required method: ${method}`);
|
|
161
163
|
}
|
|
162
164
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.specification = void 0;
|
|
4
|
-
const Tiposkripto_implementation_1 = require("./Tiposkripto.implementation");
|
|
5
4
|
const specification = (Suite, Given, When, Then) => {
|
|
6
5
|
return [
|
|
7
6
|
Suite.Default("Tiposkripto Core Functionality", {
|
|
@@ -27,8 +26,8 @@ const specification = (Suite, Given, When, Then) => {
|
|
|
27
26
|
}),
|
|
28
27
|
Suite.ExtendedSuite("Tiposkripto Advanced Features", {
|
|
29
28
|
// Custom implementations
|
|
30
|
-
customImplementation: Given.WithCustomImplementation(["Custom implementation test"], [], [Then.specsGenerated(), Then.jobsCreated()]
|
|
31
|
-
customSpecification: Given.WithCustomSpecification(["Custom specification test"], [], [Then.specsGenerated(), Then.jobsCreated()]
|
|
29
|
+
customImplementation: Given.WithCustomImplementation(["Custom implementation test"], [], [Then.specsGenerated(), Then.jobsCreated()]),
|
|
30
|
+
customSpecification: Given.WithCustomSpecification(["Custom specification test"], [], [Then.specsGenerated(), Then.jobsCreated()]),
|
|
32
31
|
// Dynamic modification tests
|
|
33
32
|
specModification: Given.Default(["Should allow modifying specs"], [When.modifySpecs((specs) => [...specs, "extra"])], [Then.specsModified(1)]),
|
|
34
33
|
jobModification: Given.Default(["Should allow modifying jobs"], [When.modifyJobs((jobs) => [...jobs, {}])], [Then.jobsModified(1)]),
|
|
@@ -42,8 +41,12 @@ const specification = (Suite, Given, When, Then) => {
|
|
|
42
41
|
// Specific test cases for runTimeTests behavior
|
|
43
42
|
runTimeTestsSingleSuiteFiveTests: Given.WithCustomInput(["Given a config that has 1 suite containing 5 GivenWhenThens"], [], [Then.runTimeTestsCountIs(5)], { testCount: 5 }),
|
|
44
43
|
runTimeTestsSingleSuiteFiveTestsError: Given.WithCustomInput(["Given a config that has 1 suite containing 5 GivenWhenThens"], [When.triggerError("hard error")], [Then.runTimeTestsIsNegativeOne()], { testCount: 5 }),
|
|
45
|
-
runTimeTestsTwoSuitesThreeTestsEach: Given.WithCustomInput([
|
|
46
|
-
|
|
44
|
+
runTimeTestsTwoSuitesThreeTestsEach: Given.WithCustomInput([
|
|
45
|
+
"Given a config that has 1 suite containing 3 GivenWhenThens and 1 suite containing 3 GivenWhenThens",
|
|
46
|
+
], [], [Then.runTimeTestsCountIs(6)], { testCount: 6 }),
|
|
47
|
+
runTimeTestsTwoSuitesThreeTestsEachError: Given.WithCustomInput([
|
|
48
|
+
"Given a config that has 1 suite containing 3 GivenWhenThens and 1 suite containing 3 GivenWhenThens",
|
|
49
|
+
], [When.triggerError("hard error")], [Then.runTimeTestsIsNegativeOne()], { testCount: 6 }),
|
|
47
50
|
}),
|
|
48
51
|
];
|
|
49
52
|
};
|
|
@@ -11,7 +11,6 @@ const baseProxy = function (pm, mappings) {
|
|
|
11
11
|
const arger = mapping[1];
|
|
12
12
|
if (prop === method) {
|
|
13
13
|
return (...x) => {
|
|
14
|
-
// Add debug logging
|
|
15
14
|
const modifiedArgs = arger(...x);
|
|
16
15
|
return target[prop](...modifiedArgs);
|
|
17
16
|
};
|
|
@@ -30,19 +29,6 @@ const butThenProxy = (pm, filepath, addArtifact) => {
|
|
|
30
29
|
(opts, p) => {
|
|
31
30
|
const path = `${filepath}/butThen/${opts.path}`;
|
|
32
31
|
addArtifact(path);
|
|
33
|
-
// console.log(
|
|
34
|
-
// `[ARTIFACT] Preparing to add to ${step.constructor.name}:`,
|
|
35
|
-
// path
|
|
36
|
-
// );
|
|
37
|
-
// try {
|
|
38
|
-
// console.log(
|
|
39
|
-
// `[ARTIFACT] Successfully added to ${step.constructor.name}`
|
|
40
|
-
// );
|
|
41
|
-
// console.log(`[ARTIFACT] Current artifacts:`, JSON.stringify(step.artifacts));
|
|
42
|
-
// } catch (e) {
|
|
43
|
-
// console.error(`[ARTIFACT] Failed to add ${path}:`, e);
|
|
44
|
-
// throw e;
|
|
45
|
-
// }
|
|
46
32
|
return [
|
|
47
33
|
Object.assign(Object.assign({}, opts), { path }),
|
|
48
34
|
p,
|
|
@@ -60,24 +46,7 @@ const butThenProxy = (pm, filepath, addArtifact) => {
|
|
|
60
46
|
[
|
|
61
47
|
"writeFileSync",
|
|
62
48
|
(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
|
-
}
|
|
79
49
|
const path = `${filepath}/butThen/${fp}`;
|
|
80
|
-
console.log(`[DEBUG] Generated path: "${path}"`);
|
|
81
50
|
addArtifact(path);
|
|
82
51
|
return [path, contents, testName];
|
|
83
52
|
},
|
|
@@ -129,7 +98,6 @@ const andWhenProxy = (pm, filepath, addArtifact) => {
|
|
|
129
98
|
"customScreenShot",
|
|
130
99
|
(opts, p) => {
|
|
131
100
|
const path = `${filepath}/andWhen/${opts.path}`;
|
|
132
|
-
// console.log("STEP2", JSON.stringify(step));
|
|
133
101
|
addArtifact(path);
|
|
134
102
|
return [
|
|
135
103
|
Object.assign(Object.assign({}, opts), { path }),
|
|
@@ -174,7 +142,6 @@ const afterEachProxy = (pm, suite, given, addArtifact) => {
|
|
|
174
142
|
(opts, p) => {
|
|
175
143
|
const path = `suite-${suite}/given-${given}/afterEach/${opts.path}`;
|
|
176
144
|
addArtifact(path);
|
|
177
|
-
// console.log("STEP3", JSON.stringify(step));
|
|
178
145
|
return [
|
|
179
146
|
Object.assign(Object.assign({}, opts), { path }),
|
|
180
147
|
p,
|
|
@@ -3,34 +3,32 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.implementation = void 0;
|
|
4
4
|
const mockPMBase_1 = require("./mockPMBase");
|
|
5
5
|
const pmProxy_1 = require("../pmProxy");
|
|
6
|
-
function createPathRewriter(basePath) {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
};
|
|
33
|
-
}
|
|
6
|
+
// function createPathRewriter(basePath: string): PathRewriter {
|
|
7
|
+
// return (path: string) => {
|
|
8
|
+
// if (!path) return path;
|
|
9
|
+
// // Normalize paths and handle edge cases
|
|
10
|
+
// const normalizedPath = path.replace(/\\/g, "/");
|
|
11
|
+
// const normalizedBase = basePath.replace(/\\/g, "/");
|
|
12
|
+
// // Handle absolute paths
|
|
13
|
+
// if (normalizedPath.startsWith("/")) {
|
|
14
|
+
// return `${normalizedBase}${normalizedPath}`;
|
|
15
|
+
// }
|
|
16
|
+
// // Handle parent directory references
|
|
17
|
+
// if (normalizedPath.includes("../")) {
|
|
18
|
+
// const parts = normalizedPath.split("/");
|
|
19
|
+
// const baseParts = normalizedBase.split("/");
|
|
20
|
+
// for (const part of parts) {
|
|
21
|
+
// if (part === "..") {
|
|
22
|
+
// baseParts.pop();
|
|
23
|
+
// } else if (part !== ".") {
|
|
24
|
+
// baseParts.push(part);
|
|
25
|
+
// }
|
|
26
|
+
// }
|
|
27
|
+
// return baseParts.join("/");
|
|
28
|
+
// }
|
|
29
|
+
// return `${normalizedBase}/${normalizedPath}`;
|
|
30
|
+
// };
|
|
31
|
+
// }
|
|
34
32
|
exports.implementation = {
|
|
35
33
|
suites: {
|
|
36
34
|
Default: "PM Proxy Tests",
|
|
@@ -68,70 +66,65 @@ exports.implementation = {
|
|
|
68
66
|
actualPath = opts.path;
|
|
69
67
|
return originalCustomScreenShot.call(mockPm, opts, testName, pageUid);
|
|
70
68
|
};
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
throw new Error(`Unknown method: ${method}`);
|
|
87
|
-
}
|
|
88
|
-
// For now, just return the actual path to be asserted against expectedPath
|
|
89
|
-
// The testAdapter.assertThis will handle the comparison
|
|
90
|
-
return actualPath;
|
|
91
|
-
}
|
|
92
|
-
catch (error) {
|
|
93
|
-
throw error;
|
|
69
|
+
switch (method) {
|
|
70
|
+
case "writeFileSync":
|
|
71
|
+
await (0, pmProxy_1.butThenProxy)(mockPm, filepath, {}).writeFileSync("test.txt", "content", "test");
|
|
72
|
+
break;
|
|
73
|
+
case "createWriteStream":
|
|
74
|
+
await (0, pmProxy_1.butThenProxy)(mockPm, filepath, {}).createWriteStream("stream.txt", "test");
|
|
75
|
+
break;
|
|
76
|
+
case "screencast":
|
|
77
|
+
await (0, pmProxy_1.butThenProxy)(mockPm, filepath, {}).screencast({ path: "screen.png" }, "test");
|
|
78
|
+
break;
|
|
79
|
+
case "customScreenShot":
|
|
80
|
+
await (0, pmProxy_1.butThenProxy)(mockPm, filepath, {}).customScreenShot({ path: "shot.png" }, "test");
|
|
81
|
+
break;
|
|
82
|
+
default:
|
|
83
|
+
throw new Error(`Unknown method: ${method}`);
|
|
94
84
|
}
|
|
85
|
+
// For now, just return the actual path to be asserted against expectedPath
|
|
86
|
+
// The testAdapter.assertThis will handle the comparison
|
|
87
|
+
return actualPath;
|
|
95
88
|
},
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
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)}`;
|
|
89
|
+
},
|
|
90
|
+
verifyContent: (expectedContent) => (result) => {
|
|
91
|
+
const actualContent = result[2];
|
|
92
|
+
if (JSON.stringify(actualContent) !== JSON.stringify(expectedContent)) {
|
|
93
|
+
throw new Error(`Content mismatch. Expected: ${JSON.stringify(expectedContent)}, Got: ${JSON.stringify(actualContent)}`);
|
|
94
|
+
}
|
|
95
|
+
return result;
|
|
96
|
+
},
|
|
97
|
+
// Test to verify tests.json is written correctly
|
|
98
|
+
verifyTestsJsonWrite: () => async (store) => {
|
|
99
|
+
const mockPm = new mockPMBase_1.MockPMBase();
|
|
100
|
+
// Track the actual parameters passed to writeFileSync
|
|
101
|
+
let actualArgs;
|
|
102
|
+
const originalWriteFileSync = mockPm.writeFileSync;
|
|
103
|
+
mockPm.writeFileSync = async (...args) => {
|
|
104
|
+
actualArgs = args;
|
|
105
|
+
// Check if the first argument is being split
|
|
106
|
+
if (args[0] && typeof args[0] === "string") {
|
|
107
|
+
console.log(`[TESTS.JSON DEBUG] First argument length: ${args[0].length}, value: "${args[0]}"`);
|
|
134
108
|
}
|
|
135
|
-
|
|
109
|
+
return originalWriteFileSync.apply(mockPm, args);
|
|
110
|
+
};
|
|
111
|
+
// Simulate writing tests.json through the proxy
|
|
112
|
+
// This should mimic the call in BaseBuilder: puppetMaster.writeFileSync(`tests.json`, JSON.stringify(this.toObj(), null, 2))
|
|
113
|
+
const testData = { test: "data" };
|
|
114
|
+
// const result = await butThenProxy(mockPm, "test/path", {}).writeFileSync(
|
|
115
|
+
// "tests.json",
|
|
116
|
+
// JSON.stringify(testData, null, 2),
|
|
117
|
+
// "test"
|
|
118
|
+
// );
|
|
119
|
+
// Check if both path and content are correct
|
|
120
|
+
if (actualArgs &&
|
|
121
|
+
actualArgs[0] === "test/path/butThen/tests.json" &&
|
|
122
|
+
actualArgs[1] === JSON.stringify(testData, null, 2) &&
|
|
123
|
+
actualArgs[2] === "test") {
|
|
124
|
+
return "PASS";
|
|
125
|
+
}
|
|
126
|
+
else {
|
|
127
|
+
return `FAIL: args=${JSON.stringify(actualArgs)}`;
|
|
128
|
+
}
|
|
136
129
|
},
|
|
137
130
|
};
|
|
@@ -8,8 +8,6 @@ const implementation_1 = require("./implementation");
|
|
|
8
8
|
const specification_1 = require("./specification");
|
|
9
9
|
const adapter_1 = require("./adapter");
|
|
10
10
|
const pmProxy_1 = require("../pmProxy");
|
|
11
|
-
exports.default = (0, Node_1.default)(
|
|
12
|
-
// because of the nature of testeranto, we must add all the testable items here
|
|
13
|
-
{
|
|
11
|
+
exports.default = (0, Node_1.default)({
|
|
14
12
|
butThenProxy: pmProxy_1.butThenProxy,
|
|
15
13
|
}, specification_1.specification, implementation_1.implementation, adapter_1.testAdapter);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.MockPM = void 0;
|
|
4
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
4
5
|
const mockPMBase_1 = require("./mockPMBase");
|
|
5
6
|
class MockPM extends mockPMBase_1.MockPMBase {
|
|
6
7
|
constructor(configs) {
|