testeranto 0.177.0 → 0.197.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ALL_LICENSES.txt +11246 -0
- package/LICENSE +21 -0
- package/README.md +24 -4
- package/default-project.json +44 -0
- package/design-editor/DesignEditor.tsx +247 -0
- package/design-editor/index.ts +2 -0
- package/design-editor/server.ts +121 -0
- package/design-editor/types.ts +16 -0
- package/designs/default-project.json +210 -0
- package/dist/common/design-editor/DesignEditor.js +239 -0
- package/dist/common/design-editor/index.js +18 -0
- package/dist/common/design-editor/server.js +98 -0
- package/dist/common/design-editor/types.js +2 -0
- package/dist/common/src/App.js +53 -0
- package/dist/common/src/Node.js +4 -8
- package/dist/common/src/PM/PM_WithEslintAndTsc.js +10 -34
- package/dist/common/src/PM/base.js +1 -1
- package/dist/common/src/PM/main.js +581 -113
- package/dist/common/src/PM/node.js +4 -2
- package/dist/common/src/PM/nodeSidecar.js +1 -0
- package/dist/common/src/PM/pure.js +20 -57
- package/dist/common/src/PM/pureSidecar.js +1 -1
- package/dist/common/src/PM/types.js +1 -0
- package/dist/common/src/PM/web.js +7 -4
- package/dist/common/src/Pure.js +1 -1
- package/dist/common/src/Pure.test.js +49 -79
- package/dist/common/src/ReportServer.js +8 -2
- package/dist/common/src/build.js +31 -40
- package/dist/common/src/components/DesignEditorPage.js +169 -0
- package/dist/common/src/components/SunriseAnimation.js +291 -0
- package/dist/common/src/components/SunriseAnimation.test/interface.js +67 -0
- package/dist/common/src/components/SunriseAnimation.test/types.js +2 -0
- package/dist/common/src/components/TestStatusBadge.js +1 -21
- package/dist/common/src/components/pure/AppFrame.js +69 -0
- package/dist/common/src/components/pure/AppFrame.test/implementation.js +63 -0
- package/dist/common/src/components/pure/AppFrame.test/index.js +14 -0
- package/dist/common/src/components/pure/AppFrame.test/specification.js +25 -0
- package/dist/common/src/components/pure/AppFrame.test/types.js +3 -0
- package/dist/common/src/components/pure/FeaturesReporterView.js +23 -0
- package/dist/common/src/components/pure/FeaturesReporterView.test/implementation.js +84 -0
- package/dist/common/src/components/pure/FeaturesReporterView.test/index.js +14 -0
- package/dist/common/src/components/pure/FeaturesReporterView.test/specification.js +27 -0
- package/dist/common/src/components/pure/FeaturesReporterView.test/types.js +2 -0
- package/dist/common/src/components/pure/ModalContent.js +86 -0
- package/dist/common/src/components/pure/ModalContent.test/implementation.js +35 -0
- package/dist/common/src/components/pure/ModalContent.test/index.js +58 -0
- package/dist/common/src/components/pure/ModalContent.test/specification.js +19 -0
- package/dist/common/src/components/pure/ModalContent.test/types.js +4 -0
- package/dist/common/src/{NavBar.js → components/pure/NavBar.js} +9 -10
- package/dist/common/src/components/pure/ProcessManager.js +112 -0
- package/dist/common/src/components/pure/ProcessManagerView.js +237 -0
- package/dist/common/src/components/pure/ProjectPageView.js +53 -76
- package/dist/common/src/components/pure/ProjectPageView.test/implementation.js +167 -54
- package/dist/common/src/components/pure/ProjectPageView.test/index.js +5 -1
- package/dist/common/src/components/pure/ProjectPageView.test/specification.js +15 -2
- package/dist/common/src/components/pure/ProjectPageView.test/types.js +2 -0
- package/dist/common/src/components/pure/ProjectsPageView.js +72 -0
- package/dist/common/src/components/pure/SettingsButton.js +13 -0
- package/dist/common/src/components/pure/SingleProcessView.js +214 -0
- package/dist/common/src/components/pure/TestPageView.js +513 -0
- package/dist/common/src/components/pure/TestPageView.test/implementation.js +157 -0
- package/dist/common/src/components/pure/TestPageView.test/index.js +15 -0
- package/dist/common/src/components/pure/TestPageView.test/specification.js +26 -0
- package/dist/common/src/components/pure/TestPageView.test/types.js +4 -0
- package/dist/common/src/components/pure/ThemeCard.js +15 -0
- package/dist/common/src/components/stateful/FeaturesReporter.js +59 -0
- package/dist/common/src/components/stateful/FileTree.js +40 -0
- package/dist/common/src/components/stateful/ProcessManagerPage.js +112 -0
- package/dist/common/src/components/stateful/ProjectPage.js +101 -0
- package/dist/common/src/components/stateful/ProjectsPage.js +118 -0
- package/dist/common/src/components/stateful/SettingsPage.js +72 -0
- package/dist/common/src/components/stateful/SingleProcessPage.js +147 -0
- package/dist/common/src/components/stateful/TestPage.js +229 -0
- package/dist/common/src/components/stateful/TextEditorPage.js +154 -0
- package/dist/common/src/defaultConfig.js +1 -0
- package/dist/common/src/esbuildConfigs/inputFilesPlugin.js +3 -4
- package/dist/common/src/esbuildConfigs/web.js +1 -1
- package/dist/common/src/lib/BaseSuite.js +7 -3
- package/dist/common/src/lib/BaseSuite.test/mock.js +17 -41
- package/dist/common/src/lib/BaseSuite.test/test.js +33 -42
- package/dist/common/src/lib/Sidecar.js +1 -0
- package/dist/common/src/lib/abstractBase.js +40 -13
- package/dist/common/src/lib/baseBuilder.test/baseBuilder.test.adapter.js +12 -12
- package/dist/common/src/lib/baseBuilder.test/baseBuilder.test.implementation.js +15 -13
- package/dist/common/src/lib/baseBuilder.test/baseBuilder.test.mock.js +28 -17
- package/dist/common/src/lib/baseBuilder.test/baseBuilder.test.pure.js +2 -2
- package/dist/common/src/lib/basebuilder.js +29 -35
- package/dist/common/src/lib/classBuilder.js +5 -3
- package/dist/common/src/lib/core.js +3 -6
- package/dist/common/src/lib/core.test/MockCore.js +0 -14
- package/dist/common/src/lib/core.test/core.test.adapter.js +2 -9
- package/dist/common/src/lib/core.test/core.test.implementation.js +3 -7
- package/dist/common/src/lib/index.js +13 -14
- package/dist/common/src/lib/pmProxy.js +37 -16
- package/dist/common/src/lib/pmProxy.test/adapter.js +20 -4
- package/dist/common/src/lib/pmProxy.test/implementation.js +93 -34
- package/dist/common/src/lib/pmProxy.test/mockPMBase.js +9 -0
- package/dist/common/src/lib/pmProxy.test/specification.js +3 -0
- package/dist/common/src/mothership/index.js +5 -0
- package/dist/common/src/mothership/test.js +44 -25
- package/dist/common/src/types/features.js +34 -0
- package/dist/common/src/utils/api.js +57 -27
- package/dist/common/src/utils/featureUtils.js +29 -0
- package/dist/common/src/utils/logFiles.js +51 -0
- package/dist/common/src/utils/makePrompt.js +116 -0
- package/dist/common/src/web.html.js +2 -6
- package/dist/common/testeranto.config.js +54 -24
- package/dist/common/tsconfig.common.tsbuildinfo +1 -1
- package/dist/module/design-editor/DesignEditor.js +203 -0
- package/dist/module/design-editor/index.js +2 -0
- package/dist/module/design-editor/server.js +92 -0
- package/dist/module/design-editor/types.js +1 -0
- package/dist/module/src/App.js +19 -17
- package/dist/module/src/Node.js +4 -8
- package/dist/module/src/PM/PM_WithEslintAndTsc.js +11 -35
- package/dist/module/src/PM/base.js +1 -1
- package/dist/module/src/PM/main.js +577 -109
- package/dist/module/src/PM/node.js +4 -2
- package/dist/module/src/PM/nodeSidecar.js +1 -0
- package/dist/module/src/PM/pure.js +20 -57
- package/dist/module/src/PM/pureSidecar.js +1 -1
- package/dist/module/src/PM/types.js +1 -0
- package/dist/module/src/PM/web.js +7 -4
- package/dist/module/src/Pure.js +1 -1
- package/dist/module/src/Pure.test.js +49 -79
- package/dist/module/src/ReportServer.js +8 -2
- package/dist/module/src/build.js +26 -38
- package/dist/module/src/components/DesignEditorPage.js +132 -0
- package/dist/module/src/components/SunriseAnimation.test/interface.js +32 -1
- package/dist/module/src/components/SunriseAnimation.test/types.js +1 -0
- package/dist/module/src/components/TestStatusBadge.js +1 -21
- package/dist/module/src/components/pure/AppFrame.js +32 -0
- package/dist/module/src/components/pure/AppFrame.test/implementation.js +57 -0
- package/dist/module/src/components/pure/AppFrame.test/index.js +9 -0
- package/dist/module/src/components/pure/AppFrame.test/specification.js +21 -0
- package/dist/module/src/components/pure/AppFrame.test/types.js +2 -0
- package/dist/module/src/components/pure/FeaturesReporterView.js +16 -0
- package/dist/module/src/components/pure/FeaturesReporterView.test/implementation.js +81 -0
- package/dist/module/src/components/pure/FeaturesReporterView.test/index.js +9 -0
- package/dist/module/src/components/pure/FeaturesReporterView.test/specification.js +23 -0
- package/dist/module/src/components/pure/FeaturesReporterView.test/types.js +1 -0
- package/dist/module/src/components/pure/ModalContent.js +79 -0
- package/dist/module/src/components/pure/ModalContent.test/implementation.js +32 -0
- package/dist/module/src/components/pure/ModalContent.test/index.js +53 -0
- package/dist/module/src/components/pure/ModalContent.test/specification.js +15 -0
- package/dist/module/src/components/pure/ModalContent.test/types.js +3 -0
- package/dist/module/src/{NavBar.js → components/pure/NavBar.js} +10 -11
- package/dist/module/src/components/pure/ProcessManager.js +75 -0
- package/dist/module/src/components/pure/ProcessManagerView.js +200 -0
- package/dist/module/src/components/pure/ProjectPageView.js +54 -77
- package/dist/module/src/components/pure/ProjectPageView.test/implementation.js +167 -54
- package/dist/module/src/components/pure/ProjectPageView.test/index.js +5 -1
- package/dist/module/src/components/pure/ProjectPageView.test/specification.js +15 -2
- package/dist/module/src/components/pure/ProjectPageView.test/types.js +2 -0
- package/dist/module/src/components/pure/ProjectsPageView.js +21 -14
- package/dist/module/src/components/pure/SettingsButton.js +6 -0
- package/dist/module/src/components/pure/SingleProcessView.js +214 -0
- package/dist/module/src/components/pure/TestPageView.js +470 -142
- package/dist/module/src/components/pure/TestPageView.test/implementation.js +121 -0
- package/dist/module/src/components/pure/TestPageView.test/index.js +10 -0
- package/dist/module/src/components/pure/TestPageView.test/specification.js +22 -0
- package/dist/module/src/components/pure/TestPageView.test/types.js +3 -0
- package/dist/module/src/components/pure/ThemeCard.js +8 -0
- package/dist/module/src/components/stateful/FeaturesReporter.js +22 -0
- package/dist/module/src/components/stateful/FileTree.js +33 -0
- package/dist/module/src/components/stateful/ProcessManagerPage.js +75 -0
- package/dist/module/src/components/stateful/ProjectPage.js +7 -6
- package/dist/module/src/components/stateful/ProjectsPage.js +32 -6
- package/dist/module/src/components/stateful/SettingsPage.js +35 -0
- package/dist/module/src/components/stateful/SingleProcessPage.js +110 -0
- package/dist/module/src/components/stateful/TestPage.js +123 -13
- package/dist/module/src/components/stateful/TextEditorPage.js +117 -0
- package/dist/module/src/defaultConfig.js +1 -0
- package/dist/module/src/esbuildConfigs/inputFilesPlugin.js +3 -4
- package/dist/module/src/esbuildConfigs/web.js +1 -1
- package/dist/module/src/lib/BaseSuite.js +7 -3
- package/dist/module/src/lib/BaseSuite.test/mock.js +17 -41
- package/dist/module/src/lib/BaseSuite.test/test.js +33 -42
- package/dist/module/src/lib/Sidecar.js +1 -0
- package/dist/module/src/lib/abstractBase.js +40 -13
- package/dist/module/src/lib/baseBuilder.test/baseBuilder.test.adapter.js +12 -12
- package/dist/module/src/lib/baseBuilder.test/baseBuilder.test.implementation.js +15 -13
- package/dist/module/src/lib/baseBuilder.test/baseBuilder.test.mock.js +28 -17
- package/dist/module/src/lib/baseBuilder.test/baseBuilder.test.pure.js +1 -1
- package/dist/module/src/lib/basebuilder.js +29 -35
- package/dist/module/src/lib/classBuilder.js +5 -3
- package/dist/module/src/lib/core.js +3 -6
- package/dist/module/src/lib/core.test/MockCore.js +0 -14
- package/dist/module/src/lib/core.test/core.test.adapter.js +2 -9
- package/dist/module/src/lib/core.test/core.test.implementation.js +3 -7
- package/dist/module/src/lib/index.js +13 -14
- package/dist/module/src/lib/pmProxy.js +37 -16
- package/dist/module/src/lib/pmProxy.test/adapter.js +20 -4
- package/dist/module/src/lib/pmProxy.test/implementation.js +93 -34
- package/dist/module/src/lib/pmProxy.test/mockPMBase.js +9 -0
- package/dist/module/src/lib/pmProxy.test/specification.js +3 -0
- package/dist/module/src/mothership/index.js +5 -0
- package/dist/module/src/mothership/test.js +44 -25
- package/dist/module/src/types/features.js +31 -0
- package/dist/module/src/utils/api.js +56 -25
- package/dist/module/src/utils/featureUtils.js +24 -0
- package/dist/module/src/utils/logFiles.js +46 -0
- package/dist/module/src/utils/makePrompt.js +109 -0
- package/dist/module/src/web.html.js +2 -6
- package/dist/module/testeranto.config.js +54 -24
- package/dist/module/tsconfig.module.tsbuildinfo +1 -1
- package/dist/prebuild/App.css +53 -80
- package/dist/prebuild/App.js +15520 -4397
- package/dist/prebuild/ReportServer.mjs +104 -6
- package/dist/prebuild/build.mjs +95 -108
- package/dist/prebuild/mothership/index.mjs +5 -0
- package/dist/prebuild/run.mjs +704 -221
- package/dist/types/design-editor/DesignEditor.d.ts +18 -0
- package/dist/types/design-editor/server.d.ts +1 -0
- package/dist/types/src/App.d.ts +1 -0
- package/dist/types/src/PM/index.d.ts +1 -1
- package/dist/types/src/PM/main.d.ts +37 -3
- package/dist/types/src/PM/pure.d.ts +10 -7
- package/dist/types/src/PM/web.d.ts +1 -1
- package/dist/types/src/Pure.test.d.ts +13 -1
- package/dist/types/src/Types.d.ts +1 -0
- package/dist/types/src/components/DesignEditorPage.d.ts +1 -0
- package/dist/types/src/components/SunriseAnimation.d.ts +5 -0
- package/dist/types/src/components/SunriseAnimation.test/interface.d.ts +11 -0
- package/dist/types/src/components/SunriseAnimation.test/types.d.ts +39 -0
- package/dist/types/src/components/pure/AppFrame.d.ts +11 -0
- package/dist/types/src/components/pure/AppFrame.test/implementation.d.ts +3 -0
- package/dist/types/src/components/pure/AppFrame.test/index.d.ts +5 -0
- package/dist/types/src/components/pure/AppFrame.test/specification.d.ts +3 -0
- package/dist/types/src/components/pure/AppFrame.test/types.d.ts +33 -0
- package/dist/types/src/components/pure/FeaturesReporterView.d.ts +7 -0
- package/dist/types/src/components/pure/FeaturesReporterView.test/implementation.d.ts +3 -0
- package/dist/types/src/components/pure/FeaturesReporterView.test/index.d.ts +2 -0
- package/dist/types/src/components/pure/FeaturesReporterView.test/specification.d.ts +3 -0
- package/dist/types/src/components/pure/FeaturesReporterView.test/types.d.ts +54 -0
- package/dist/types/src/components/pure/ModalContent.d.ts +7 -0
- package/dist/types/src/components/pure/ModalContent.test/implementation.d.ts +3 -0
- package/dist/types/src/components/pure/ModalContent.test/index.d.ts +3 -0
- package/dist/types/src/components/pure/ModalContent.test/specification.d.ts +3 -0
- package/dist/types/src/components/pure/ModalContent.test/types.d.ts +45 -0
- package/dist/types/src/{NavBar.d.ts → components/pure/NavBar.d.ts} +4 -0
- package/dist/types/src/components/pure/ProcessManager.d.ts +8 -0
- package/dist/types/src/components/pure/ProcessManagerView.d.ts +20 -0
- package/dist/types/src/components/pure/ProjectPageView.d.ts +7 -7
- package/dist/types/src/components/pure/ProjectPageView.test/index.d.ts +1 -2
- package/dist/types/src/components/pure/ProjectPageView.test/types.d.ts +29 -11
- package/dist/types/src/components/pure/ProjectsPageView.d.ts +29 -0
- package/dist/types/src/components/pure/SettingsButton.d.ts +2 -0
- package/dist/types/src/components/pure/SingleProcessView.d.ts +0 -0
- package/dist/types/src/components/pure/TestPageView.d.ts +15 -0
- package/dist/types/src/components/pure/TestPageView.test/implementation.d.ts +12 -0
- package/dist/types/src/components/pure/TestPageView.test/index.d.ts +3 -0
- package/dist/types/src/components/pure/TestPageView.test/specification.d.ts +11 -0
- package/dist/types/src/components/pure/TestPageView.test/types.d.ts +65 -0
- package/dist/types/src/components/pure/ThemeCard.d.ts +9 -0
- package/dist/types/src/components/stateful/FeaturesReporter.d.ts +2 -0
- package/dist/types/src/components/stateful/FileTree.d.ts +8 -0
- package/dist/types/src/components/stateful/ProcessManagerPage.d.ts +2 -0
- package/dist/types/src/components/stateful/ProjectPage.d.ts +1 -0
- package/dist/types/src/components/stateful/ProjectsPage.d.ts +1 -0
- package/dist/types/src/components/stateful/SettingsPage.d.ts +2 -0
- package/dist/types/src/components/stateful/SingleProcessPage.d.ts +2 -0
- package/dist/types/src/components/stateful/TestPage.d.ts +1 -0
- package/dist/types/src/components/stateful/TextEditorPage.d.ts +1 -0
- package/dist/types/src/lib/BaseSuite.test/mock.d.ts +3 -3
- package/dist/types/src/lib/abstractBase.d.ts +1 -1
- package/dist/types/src/lib/abstractBase.test/MockGiven.d.ts +1 -1
- package/dist/types/src/lib/baseBuilder.test/baseBuilder.test.pure.d.ts +1 -1
- package/dist/types/src/lib/basebuilder.d.ts +1 -1
- package/dist/types/src/lib/index.d.ts +8 -8
- package/dist/types/src/lib/pmProxy.test/mockPMBase.d.ts +1 -1
- package/dist/types/src/types/features.d.ts +7 -0
- package/dist/types/src/utils/api.d.ts +1 -5
- package/dist/types/src/utils/featureUtils.d.ts +6 -0
- package/dist/types/src/utils/logFiles.d.ts +71 -0
- package/dist/types/src/utils/makePrompt.d.ts +2 -0
- package/dist/types/src/web.html.d.ts +1 -1
- package/dist/types/tsconfig.types.tsbuildinfo +1 -1
- package/docs/index.md +17 -0
- package/docs/test-page-components.md +91 -0
- package/docs/testing.prompt.txt +1 -3
- package/index.d.ts +38 -13
- package/marketing.md +166 -0
- package/package.json +38 -11
- package/src/App.tsx +22 -25
- package/src/Node.ts +6 -9
- package/src/PM/PM_WithEslintAndTsc.ts +16 -97
- package/src/PM/__tests__/nodeSidecar.testeranto.ts +2 -0
- package/src/PM/base.ts +1 -3
- package/src/PM/index.ts +1 -1
- package/src/PM/main.ts +673 -128
- package/src/PM/node.ts +5 -2
- package/src/PM/nodeSidecar.ts +1 -0
- package/src/PM/pure.ts +28 -72
- package/src/PM/pureSidecar.ts +1 -1
- package/src/PM/types.ts +0 -0
- package/src/PM/web.ts +9 -4
- package/src/Pure.test.ts +66 -101
- package/src/Pure.ts +1 -1
- package/src/README.md +85 -0
- package/src/ReportServer.ts +10 -3
- package/src/Types.ts +1 -0
- package/src/app.scss +169 -0
- package/src/build.ts +33 -55
- package/src/components/DesignEditorPage.tsx +169 -0
- package/src/components/{pure/ProjectPageView.test/index.ts → SunriseAnimation.test/index.tsx} +7 -4
- package/src/components/SunriseAnimation.test/interface.ts +49 -0
- package/src/components/SunriseAnimation.test/types.ts +53 -0
- package/src/components/TestStatusBadge.tsx +2 -23
- package/src/components/pure/AppFrame.test/implementation.tsx +72 -0
- package/src/components/pure/AppFrame.test/index.tsx +22 -0
- package/src/components/pure/AppFrame.test/specification.ts +35 -0
- package/src/components/pure/AppFrame.test/types.ts +65 -0
- package/src/components/pure/AppFrame.tsx +134 -0
- package/src/components/pure/FeaturesReporterView.test/implementation.tsx +106 -0
- package/src/components/pure/FeaturesReporterView.test/index.tsx +18 -0
- package/src/components/pure/FeaturesReporterView.test/specification.ts +39 -0
- package/src/components/pure/FeaturesReporterView.test/types.ts +77 -0
- package/src/components/pure/FeaturesReporterView.tsx +37 -0
- package/src/components/pure/ModalContent.test/implementation.tsx +45 -0
- package/src/components/pure/ModalContent.test/index.tsx +67 -0
- package/src/components/pure/ModalContent.test/specification.ts +27 -0
- package/src/components/pure/ModalContent.test/types.ts +72 -0
- package/src/components/pure/ModalContent.tsx +182 -0
- package/src/{NavBar.tsx → components/pure/NavBar.tsx} +31 -15
- package/src/components/pure/ProcessManager.tsx +117 -0
- package/src/components/pure/ProcessManagerView.tsx +414 -0
- package/src/components/pure/ProjectPageView.test/implementation.tsx +186 -57
- package/src/components/pure/ProjectPageView.test/index.tsx +18 -0
- package/src/components/pure/ProjectPageView.test/specification.ts +15 -2
- package/src/components/pure/ProjectPageView.test/types.ts +57 -13
- package/src/components/pure/ProjectPageView.tsx +155 -121
- package/src/components/pure/ProjectsPageView.tsx +73 -32
- package/src/components/pure/SettingsButton.md +1 -0
- package/src/components/pure/SettingsButton.tsx +11 -0
- package/src/components/pure/SingleProcessView.tsx +235 -0
- package/src/components/pure/TestPageView.test/implementation.ts +162 -0
- package/src/components/pure/TestPageView.test/index.tsx +20 -0
- package/src/components/pure/TestPageView.test/specification.ts +58 -0
- package/src/components/pure/TestPageView.test/types.ts +92 -0
- package/src/components/pure/TestPageView.tsx +1009 -299
- package/src/components/pure/ThemeCard.tsx +34 -0
- package/src/components/stateful/FeaturesReporter.tsx +24 -0
- package/src/components/stateful/FileTree.tsx +66 -0
- package/src/components/stateful/ProcessManagerPage.tsx +108 -0
- package/src/components/stateful/ProjectPage.tsx +10 -8
- package/src/components/stateful/ProjectsPage.tsx +36 -7
- package/src/components/stateful/SettingsPage.tsx +82 -0
- package/src/components/stateful/SingleProcessPage.tsx +155 -0
- package/src/components/stateful/TestPage.tsx +147 -30
- package/src/components/stateful/TextEditorPage.tsx +170 -0
- package/src/defaultConfig.ts +1 -0
- package/src/esbuildConfigs/inputFilesPlugin.ts +3 -4
- package/src/esbuildConfigs/web.ts +2 -1
- package/src/lib/BaseSuite.test/mock.ts +21 -68
- package/src/lib/BaseSuite.test/test.ts +39 -65
- package/src/lib/BaseSuite.ts +9 -3
- package/src/lib/Sidecar.ts +2 -0
- package/src/lib/abstractBase.test/MockGiven.ts +1 -1
- package/src/lib/abstractBase.ts +47 -20
- package/src/lib/baseBuilder.test/baseBuilder.test.adapter.ts +14 -13
- package/src/lib/baseBuilder.test/baseBuilder.test.implementation.ts +17 -14
- package/src/lib/baseBuilder.test/baseBuilder.test.mock.ts +27 -17
- package/src/lib/baseBuilder.test/baseBuilder.test.pure.ts +1 -1
- package/src/lib/basebuilder.ts +48 -54
- package/src/lib/classBuilder.ts +11 -10
- package/src/lib/core.test/MockCore.ts +0 -23
- package/src/lib/core.test/core.test.adapter.ts +6 -12
- package/src/lib/core.test/core.test.implementation.ts +7 -10
- package/src/lib/core.ts +5 -20
- package/src/lib/index.ts +28 -27
- package/src/lib/pmProxy.test/adapter.ts +18 -4
- package/src/lib/pmProxy.test/implementation.ts +130 -46
- package/src/lib/pmProxy.test/mockPMBase.ts +12 -1
- package/src/lib/pmProxy.test/specification.ts +11 -0
- package/src/lib/pmProxy.ts +42 -17
- package/src/lib/types.ts +2 -0
- package/src/mothership/index.ts +6 -0
- package/src/mothership/test.ts +53 -26
- package/src/style.md +2 -0
- package/src/style.scss +3 -486
- package/src/templates/frontpage.html +331 -0
- package/src/templates/frontpage.md +79 -0
- package/src/themes.scss +48 -16
- package/src/types/features.ts +38 -0
- package/src/utils/api.ts +66 -33
- package/src/utils/featureUtils.tsx +42 -0
- package/src/utils/logFiles.ts +60 -0
- package/src/utils/makePrompt.ts +149 -0
- package/src/web.html.ts +6 -6
- package/stargazers.txt +15 -0
- package/stargzers.js +68 -0
- package/testeranto/App.css +53 -80
- package/testeranto/App.js +15520 -4397
- package/testeranto/bundles/node/core/chunk-4CSH4UJE.mjs +872 -0
- package/testeranto/bundles/node/core/chunk-4JTDLQVA.mjs +253 -0
- package/testeranto/bundles/node/core/chunk-C3APFDUV.mjs +70 -0
- package/testeranto/bundles/node/core/src/lib/BaseSuite.test/node.test.mjs +295 -0
- package/testeranto/bundles/node/core/src/lib/baseBuilder.test/baseBuilder.test.node.mjs +243 -0
- package/testeranto/bundles/node/core/src/lib/classBuilder.test/classBuilder.test.mjs +411 -0
- package/testeranto/bundles/node/core/src/lib/core.test/core.test.mjs +494 -0
- package/testeranto/bundles/node/core/src/lib/pmProxy.test/index.mjs +4755 -0
- package/testeranto/bundles/pure/core/chunk-62UVCSQC.mjs +1022 -0
- package/testeranto/bundles/pure/core/src/Pure.test.mjs +410 -0
- package/testeranto/bundles/pure/core/src/lib/BaseSuite.test/pure.test.mjs +352 -0
- package/testeranto/bundles/pure/core/src/lib/baseBuilder.test/baseBuilder.test.pure.mjs +241 -0
- package/testeranto/bundles/web/core/src/components/pure/FeaturesReporterView.test/index.html +15 -0
- package/testeranto/bundles/web/core/src/components/pure/ProjectPageView.test/index.html +1 -5
- package/testeranto/bundles/web/core/src/components/pure/TestPageView.test/index.html +15 -0
- package/testeranto/bundles/web/core/src/lib/BaseSuite.test/web.test.html +15 -0
- package/testeranto/bundles/web/core/src/lib/baseBuilder.test/baseBuilder.test.web.html +15 -0
- package/testeranto/metafiles/node/core.json +2906 -0
- package/testeranto/metafiles/pure/core.json +860 -0
- package/testeranto/metafiles/web/core.json +546 -0
- package/testeranto/reports/core/config.json +103 -2
- package/testeranto/reports/core/src/Pure.test/pure/exit.log +0 -0
- package/testeranto/reports/core/src/Pure.test/pure/lint_errors.txt +0 -0
- package/testeranto/reports/core/src/Pure.test/pure/message.txt +17 -0
- package/testeranto/reports/core/src/Pure.test/pure/prompt.txt +14 -0
- package/testeranto/reports/core/src/Pure.test/pure/type_errors.txt +71 -0
- package/testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/debug.log +0 -0
- package/testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/error.log +3 -0
- package/testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/exit.log +1 -0
- package/testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/info.log +0 -0
- package/testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/warn.log +0 -0
- package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/debug.log +0 -0
- package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/error.log +3 -0
- package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/exit.log +1 -0
- package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/info.log +0 -0
- package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/warn.log +0 -0
- package/testeranto/reports/core/src/components/pure/TestPageView.test/index/web/debug.log +0 -0
- package/testeranto/reports/core/src/components/pure/TestPageView.test/index/web/error.log +3 -0
- package/testeranto/reports/core/src/components/pure/TestPageView.test/index/web/exit.log +1 -0
- package/testeranto/reports/core/src/components/pure/TestPageView.test/index/web/info.log +0 -0
- package/testeranto/reports/core/src/components/pure/TestPageView.test/index/web/warn.log +0 -0
- package/testeranto/reports/core/src/lib/BaseSuite.test/node.test/node/exit.log +1 -0
- package/testeranto/reports/core/src/lib/BaseSuite.test/node.test/node/lint_errors.txt +0 -0
- package/testeranto/reports/core/src/lib/BaseSuite.test/node.test/node/message.txt +17 -0
- package/testeranto/reports/core/src/lib/BaseSuite.test/node.test/node/prompt.txt +14 -0
- package/testeranto/reports/core/src/lib/BaseSuite.test/node.test/node/stderr.log +0 -0
- package/testeranto/reports/core/src/lib/BaseSuite.test/node.test/node/stdout.log +0 -0
- package/testeranto/reports/core/src/lib/BaseSuite.test/node.test/node/tests.json +31 -0
- package/testeranto/reports/core/src/lib/BaseSuite.test/node.test/node/type_errors.txt +61 -0
- 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 +17 -0
- package/testeranto/reports/core/src/lib/BaseSuite.test/pure.test/pure/prompt.txt +15 -0
- package/testeranto/reports/core/src/lib/BaseSuite.test/pure.test/pure/type_errors.txt +61 -0
- 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 +3 -0
- package/testeranto/reports/core/src/lib/BaseSuite.test/web.test/web/exit.log +1 -0
- 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/warn.log +0 -0
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.node/node/exit.log +1 -0
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.node/node/lint_errors.txt +10 -0
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.node/node/message.txt +17 -0
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.node/node/prompt.txt +17 -0
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.node/node/stderr.log +0 -0
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.node/node/stdout.log +6 -0
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.node/node/suite-0/given-testInitialization/then-0/butThen/hello.txt +1 -0
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.node/node/suite-0/given-testInitialization/then-1/butThen/artifact_test.txt +1 -0
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.node/node/tests.json +71 -0
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.node/node/type_errors.txt +42 -0
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.pure/pure/exit.log +0 -0
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.pure/pure/lint_errors.txt +10 -0
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.pure/pure/message.txt +17 -0
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.pure/pure/prompt.txt +17 -0
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.pure/pure/type_errors.txt +42 -0
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.web/web/debug.log +0 -0
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.web/web/error.log +3 -0
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.web/web/exit.log +1 -0
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.web/web/info.log +0 -0
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.web/web/warn.log +0 -0
- package/testeranto/reports/core/src/lib/classBuilder.test/classBuilder.test/node/exit.log +1 -0
- package/testeranto/reports/core/src/lib/classBuilder.test/classBuilder.test/node/lint_errors.txt +0 -0
- package/testeranto/reports/core/src/lib/classBuilder.test/classBuilder.test/node/message.txt +17 -0
- package/testeranto/reports/core/src/lib/classBuilder.test/classBuilder.test/node/prompt.txt +17 -0
- package/testeranto/reports/core/src/lib/classBuilder.test/classBuilder.test/node/stderr.log +0 -0
- package/testeranto/reports/core/src/lib/classBuilder.test/classBuilder.test/node/stdout.log +619 -0
- package/testeranto/reports/core/src/lib/classBuilder.test/classBuilder.test/node/tests.json +165 -0
- package/testeranto/reports/core/src/lib/classBuilder.test/classBuilder.test/node/type_errors.txt +88 -0
- package/testeranto/reports/core/src/lib/core.test/core.test/node/exit.log +1 -0
- package/testeranto/reports/core/src/lib/core.test/core.test/node/lint_errors.txt +21 -0
- package/testeranto/reports/core/src/lib/core.test/core.test/node/message.txt +17 -0
- package/testeranto/reports/core/src/lib/core.test/core.test/node/prompt.txt +19 -0
- package/testeranto/reports/core/src/lib/core.test/core.test/node/stderr.log +0 -0
- package/testeranto/reports/core/src/lib/core.test/core.test/node/stdout.log +0 -0
- package/testeranto/reports/core/src/lib/core.test/core.test/node/type_errors.txt +45 -0
- package/testeranto/reports/core/src/lib/pmProxy.test/index/node/exit.log +1 -0
- package/testeranto/reports/core/src/lib/pmProxy.test/index/node/lint_errors.txt +15 -0
- package/testeranto/reports/core/src/lib/pmProxy.test/index/node/message.txt +17 -0
- package/testeranto/reports/core/src/lib/pmProxy.test/index/node/prompt.txt +17 -0
- package/testeranto/reports/core/src/lib/pmProxy.test/index/node/stderr.log +88 -0
- package/testeranto/reports/core/src/lib/pmProxy.test/index/node/stdout.log +10 -0
- package/testeranto/reports/core/src/lib/pmProxy.test/index/node/tests.json +152 -0
- package/testeranto/reports/core/src/lib/pmProxy.test/index/node/type_errors.txt +52 -0
- package/testeranto/reports/core/summary.json +74 -5
- package/testeranto/reportsweb_build_errors +546 -0
- package/testeranto.config.ts +58 -25
- package/tsc.log +378 -211
- package/tsconfig.common.json +4 -2
- package/tsconfig.json +9 -6
- package/tsconfig.module.json +3 -2
- package/tsconfig.types.json +3 -1
- package/dist/common/src/components/pure/ProjectPageView.test/adapter.js +0 -20
- package/dist/common/src/lib/dailyAnimation.js +0 -130
- package/dist/module/src/Footer.js +0 -5
- package/dist/module/src/ProjectPage.js +0 -319
- package/dist/module/src/ProjectsPage.js +0 -1
- package/dist/module/src/SettingsButton.js +0 -157
- package/dist/module/src/TestPage.js +0 -271
- package/dist/module/src/TestReport.js +0 -368
- package/dist/module/src/components/pure/ProjectPageView.test/adapter.js +0 -17
- package/dist/module/src/lib/dailyAnimation.js +0 -130
- package/dist/types/src/components/pure/ProjectPageView.test/adapter.d.ts +0 -3
- package/dist/types/testeranto.config.d.ts +0 -3
- package/docs/testing.ai.txt +0 -106
- package/docs.html +0 -572
- package/example.css +0 -351
- package/index.html +0 -284
- package/scripts/compile-docs.js +0 -140
- package/src/App.scss +0 -132
- package/src/Footer.tsx +0 -8
- package/src/Project.scss +0 -1
- package/src/ProjectPage.tsx +0 -459
- package/src/ProjectsPage.tsx +0 -1
- package/src/ReportApp.scss +0 -1
- package/src/SettingsButton.tsx +0 -268
- package/src/TestPage.tsx +0 -476
- package/src/TestReport.scss +0 -24
- package/src/TestReport.tsx +0 -411
- package/src/components/pure/ProjectPageView.test/adapter.ts +0 -21
- package/src/fonts.scss +0 -55
- package/src/lib/dailyAnimation.ts +0 -147
- package/style.css +0 -12156
- package/testeranto/bundles/node/core/metafile.json +0 -8
- package/testeranto/bundles/pure/core/metafile.json +0 -8
- package/testeranto/bundles/web/core/metafile.json +0 -15086
- package/testeranto/bundles/web/core/src/components/pure/ProjectPageView.test/index.mjs +0 -39991
- package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/lint_errors.txt +0 -18
- package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/logs.txt +0 -59
- package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/message.txt +0 -2
- package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/prompt.txt +0 -27
- package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/suite-0/given-basicRender/then-0/butThen/happyPath.png +0 -0
- package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/type_errors.txt +0 -50
- /package/dist/types/src/{lib/dailyAnimation.d.ts → PM/types.d.ts} +0 -0
package/tsconfig.common.json
CHANGED
package/tsconfig.json
CHANGED
|
@@ -10,6 +10,12 @@
|
|
|
10
10
|
},
|
|
11
11
|
"declaration": true,
|
|
12
12
|
"compilerOptions": {
|
|
13
|
+
"resolveJsonModule": true,
|
|
14
|
+
"paths": {
|
|
15
|
+
"react": [
|
|
16
|
+
"./node_modules/@types/react"
|
|
17
|
+
]
|
|
18
|
+
},
|
|
13
19
|
"useDefineForClassFields": false,
|
|
14
20
|
"experimentalDecorators": true,
|
|
15
21
|
"emitDecoratorMetadata": true,
|
|
@@ -20,7 +26,6 @@
|
|
|
20
26
|
"target": "ES2022",
|
|
21
27
|
"allowJs": true,
|
|
22
28
|
"jsx": "react",
|
|
23
|
-
"resolveJsonModule": true,
|
|
24
29
|
"strictNullChecks": true,
|
|
25
30
|
"lib": [
|
|
26
31
|
"dom",
|
|
@@ -40,12 +45,10 @@
|
|
|
40
45
|
},
|
|
41
46
|
"include": [
|
|
42
47
|
"./node_modules/testeranto/src/**/*.*ts",
|
|
43
|
-
"./**/*.*ts",
|
|
44
|
-
"./**/*.*tsx",
|
|
45
48
|
"index.d.ts",
|
|
46
|
-
"src
|
|
47
|
-
"
|
|
48
|
-
"testeranto.ts",
|
|
49
|
+
"./src/**/*.*ts",
|
|
50
|
+
"./src/**/*.*tsx",
|
|
51
|
+
"testeranto.config.ts",
|
|
49
52
|
],
|
|
50
53
|
"exclude": [
|
|
51
54
|
"node_modules",
|
package/tsconfig.module.json
CHANGED
package/tsconfig.types.json
CHANGED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.adapter = void 0;
|
|
4
|
-
exports.adapter = {
|
|
5
|
-
beforeEach: async (subject, initializer, testResource, initialValues, pm) => {
|
|
6
|
-
return initializer();
|
|
7
|
-
},
|
|
8
|
-
andWhen: async (store, whenCB, testResource, pm) => {
|
|
9
|
-
return whenCB(store, pm);
|
|
10
|
-
},
|
|
11
|
-
butThen: async (store, thenCB, testResource, pm) => {
|
|
12
|
-
return thenCB(store, pm);
|
|
13
|
-
},
|
|
14
|
-
afterEach: async (store, key, pm) => {
|
|
15
|
-
if (store === null || store === void 0 ? void 0 : store.container) {
|
|
16
|
-
store.container.remove();
|
|
17
|
-
}
|
|
18
|
-
return store;
|
|
19
|
-
},
|
|
20
|
-
};
|
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// type AnimationElement = 'sun' | 'sunDay' | 'sunSet' | 'waterReflectionMiddle';
|
|
3
|
-
// let animationInterval: NodeJS.Timeout | null = null;
|
|
4
|
-
// const ANIMATION_DURATION = 60000; // 60 seconds
|
|
5
|
-
// let animationStartTime: number;
|
|
6
|
-
// export function startDailyAnimation(): void {
|
|
7
|
-
// stopDailyAnimation(); // Clear any existing animation
|
|
8
|
-
// animationStartTime = Date.now();
|
|
9
|
-
// animationInterval = setInterval(() => {
|
|
10
|
-
// updateDailyAnimation();
|
|
11
|
-
// }, 1000); // Update every second
|
|
12
|
-
// // Initialize sun at bottom position
|
|
13
|
-
// updateSunPosition(0);
|
|
14
|
-
// }
|
|
15
|
-
// export function stopDailyAnimation(): void {
|
|
16
|
-
// if (animationInterval) {
|
|
17
|
-
// clearInterval(animationInterval);
|
|
18
|
-
// animationInterval = null;
|
|
19
|
-
// }
|
|
20
|
-
// }
|
|
21
|
-
// function updateDailyAnimation(): void {
|
|
22
|
-
// const elapsed = Date.now() - animationStartTime;
|
|
23
|
-
// const progress = (elapsed % ANIMATION_DURATION) / ANIMATION_DURATION;
|
|
24
|
-
// // Use sine wave for smooth up-down movement
|
|
25
|
-
// const position = 0.5 - Math.cos(progress * Math.PI * 2) * 0.5;
|
|
26
|
-
// // Calculate target position for smooth interpolation
|
|
27
|
-
// const targetYPos = document.body.clientHeight * (1 - position);
|
|
28
|
-
// // Update all elements at once
|
|
29
|
-
// updateSunPosition(position);
|
|
30
|
-
// }
|
|
31
|
-
// function updateSunPosition(normalizedPosition: number): void {
|
|
32
|
-
// // normalizedPosition is 0-1 where 0=bottom, 1=top
|
|
33
|
-
// const body = document.body;
|
|
34
|
-
// const height = body.clientHeight;
|
|
35
|
-
// const yPos = height * (1 - normalizedPosition); // Invert since y=0 is top
|
|
36
|
-
// const width = body.clientWidth;
|
|
37
|
-
// // Update all sun-related elements
|
|
38
|
-
// const elements: AnimationElement[] = [
|
|
39
|
-
// 'sun', 'sunDay', 'sunSet', 'waterReflectionMiddle'
|
|
40
|
-
// ];
|
|
41
|
-
// elements.forEach(id => {
|
|
42
|
-
// const el = document.getElementById(id);
|
|
43
|
-
// if (el) {
|
|
44
|
-
// el.style.background = el.style.background.replace(
|
|
45
|
-
// /radial-gradient\([^)]+\)/,
|
|
46
|
-
// `radial-gradient(${width/2}px ${yPos}px, circle, ${getGradientColors(id, normalizedPosition)})`
|
|
47
|
-
// );
|
|
48
|
-
// }
|
|
49
|
-
// });
|
|
50
|
-
// // Update water reflection position
|
|
51
|
-
// const reflectionContainer = document.getElementById('waterReflectionContainer');
|
|
52
|
-
// const reflectionMiddle = document.getElementById('waterReflectionMiddle');
|
|
53
|
-
// if (reflectionContainer && reflectionMiddle) {
|
|
54
|
-
// reflectionContainer.style.perspectiveOrigin = `${(width/2)/width * 100}% ${-15 + (normalizedPosition * 30)}%`;
|
|
55
|
-
// reflectionMiddle.style.left = `${(width/2) - width - (width * 0.03)}px`;
|
|
56
|
-
// }
|
|
57
|
-
// // Update opacity of various elements based on sun position
|
|
58
|
-
// const darknessOverlay = document.getElementById('darknessOverlay');
|
|
59
|
-
// const darknessOverlaySky = document.getElementById('darknessOverlaySky');
|
|
60
|
-
// const moon = document.getElementById('moon');
|
|
61
|
-
// const horizonNight = document.getElementById('horizonNight');
|
|
62
|
-
// const starsContainer = document.getElementById('starsContainer');
|
|
63
|
-
// const waterDistance = document.getElementById('waterDistance');
|
|
64
|
-
// const sunDay = document.getElementById('sunDay');
|
|
65
|
-
// const sky = document.getElementById('sky');
|
|
66
|
-
// const sunSet = document.getElementById('sunSet');
|
|
67
|
-
// const sun = document.getElementById('sun');
|
|
68
|
-
// const horizon = document.getElementById('horizon');
|
|
69
|
-
// if (darknessOverlay) {
|
|
70
|
-
// darknessOverlay.style.opacity = Math.min((yPos - (height / 2)) / (height / 2), 1).toString();
|
|
71
|
-
// }
|
|
72
|
-
// if (darknessOverlaySky) {
|
|
73
|
-
// darknessOverlaySky.style.opacity = Math.min((yPos - (height * 7 / 10)) / (height - (height * 7 / 10)), 1).toString();
|
|
74
|
-
// }
|
|
75
|
-
// if (moon) {
|
|
76
|
-
// moon.style.opacity = Math.min((yPos - (height * 9 / 10)) / (height - (height * 9 / 10)), 0.65).toString();
|
|
77
|
-
// }
|
|
78
|
-
// if (horizonNight) {
|
|
79
|
-
// horizonNight.style.opacity = ((yPos - (height * 4 / 5)) / (height - (height * 4 / 5))).toString();
|
|
80
|
-
// }
|
|
81
|
-
// if (starsContainer) {
|
|
82
|
-
// starsContainer.style.opacity = (yPos / height - 0.6).toString();
|
|
83
|
-
// }
|
|
84
|
-
// if (waterDistance) {
|
|
85
|
-
// waterDistance.style.opacity = (yPos / height + 0.6).toString();
|
|
86
|
-
// }
|
|
87
|
-
// if (sunDay) {
|
|
88
|
-
// sunDay.style.opacity = (1 - yPos / height).toString();
|
|
89
|
-
// }
|
|
90
|
-
// if (sky) {
|
|
91
|
-
// sky.style.opacity = Math.min((1 - yPos / height), 0.99).toString();
|
|
92
|
-
// }
|
|
93
|
-
// if (sunSet) {
|
|
94
|
-
// sunSet.style.opacity = (yPos / height - 0.2).toString();
|
|
95
|
-
// }
|
|
96
|
-
// // Update stars opacity
|
|
97
|
-
// const stars = document.getElementsByClassName('star');
|
|
98
|
-
// for (let i = 0; i < stars.length; i++) {
|
|
99
|
-
// (stars[i] as HTMLElement).style.opacity = (yPos / height - 0.6).toString();
|
|
100
|
-
// }
|
|
101
|
-
// // Update sun and horizon based on position
|
|
102
|
-
// if (yPos > height / 2) {
|
|
103
|
-
// if (sun) sun.style.opacity = Math.min((height - yPos) / (height / 2) + 0.2, 0.5).toString();
|
|
104
|
-
// if (horizon) horizon.style.opacity = ((height - yPos) / (height / 2) + 0.2).toString();
|
|
105
|
-
// if (reflectionMiddle) reflectionMiddle.style.opacity = ((height - yPos) / (height / 2) - 0.1).toString();
|
|
106
|
-
// } else {
|
|
107
|
-
// if (horizon) horizon.style.opacity = Math.min(yPos / (height / 2), 0.99).toString();
|
|
108
|
-
// if (sun) sun.style.opacity = Math.min(yPos / (height / 2), 0.5).toString();
|
|
109
|
-
// if (reflectionMiddle) reflectionMiddle.style.opacity = (yPos / (height / 2) - 0.1).toString();
|
|
110
|
-
// }
|
|
111
|
-
// }
|
|
112
|
-
// function getGradientColors(elementId: AnimationElement, position: number): string {
|
|
113
|
-
// // Simplified gradient colors that change based on sun position
|
|
114
|
-
// switch(elementId) {
|
|
115
|
-
// case 'sun':
|
|
116
|
-
// return `rgba(242,248,247,1) 0%,rgba(249,249,28,1) 3%,rgba(247,214,46,1) 8%,rgba(248,200,95,1) 12%,rgba(201,165,132,1) 30%,rgba(115,130,133,1) 51%,rgba(46,97,122,1) 85%,rgba(24,75,106,1) 100%`;
|
|
117
|
-
// case 'sunDay':
|
|
118
|
-
// return `rgba(252,255,251,0.9) 0%,rgba(253,250,219,0.4) 30%,rgba(226,219,197,0.01) 70%,rgba(226,219,197,0.0) 70%,rgba(201,165,132,0) 100%`;
|
|
119
|
-
// case 'sunSet':
|
|
120
|
-
// return position > 0.5
|
|
121
|
-
// ? `rgba(254,255,255,0.8) 5%,rgba(236,255,0,1) 10%,rgba(253,50,41,1) 25%,rgba(243,0,0,1) 40%,rgba(93,0,0,1) 100%`
|
|
122
|
-
// : `rgba(254,255,255,0.0) 5%,rgba(236,255,0,0) 10%,rgba(253,50,41,0) 25%,rgba(243,0,0,0) 40%,rgba(93,0,0,0) 100%`;
|
|
123
|
-
// case 'waterReflectionMiddle':
|
|
124
|
-
// return position > 0.5
|
|
125
|
-
// ? `rgba(247,177,72,1) 3%,rgba(248,175,65,1) 6%,rgba(207,62,30,0.4) 35%,rgba(176,91,48,0.1) 45%,rgba(141,88,47,0.0) 60%,rgba(116,82,63,0.0) 70%,rgba(44,65,68,0.0) 80%,rgba(7,19,31,0.0) 100%`
|
|
126
|
-
// : `rgba(247,177,72,0) 3%,rgba(248,175,65,0) 6%,rgba(207,62,30,0) 35%,rgba(176,91,48,0) 45%,rgba(141,88,47,0.0) 60%,rgba(116,82,63,0.0) 70%,rgba(44,65,68,0.0) 80%,rgba(7,19,31,0.0) 100%`;
|
|
127
|
-
// default:
|
|
128
|
-
// return '';
|
|
129
|
-
// }
|
|
130
|
-
// }
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
// import "./TestReport.scss";
|
|
3
|
-
export const Footer = () => (React.createElement("div", { className: "footer" },
|
|
4
|
-
"made with \u2764\uFE0F and ",
|
|
5
|
-
React.createElement("a", { href: "https://www.npmjs.com/package/testeranto" }, "testeranto")));
|
|
@@ -1,319 +0,0 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
|
-
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
3
|
-
import React, { useEffect, useState } from 'react';
|
|
4
|
-
import { Card, ListGroup, Nav, Tab, Container, Alert, Badge, Table } from 'react-bootstrap';
|
|
5
|
-
import { useParams, useNavigate, useLocation } from 'react-router-dom';
|
|
6
|
-
// import "./TestReport.scss";
|
|
7
|
-
import { NavBar } from './NavBar';
|
|
8
|
-
import { TestStatusBadge } from './components/TestStatusBadge';
|
|
9
|
-
const BuildLogViewer = ({ logs, runtime }) => {
|
|
10
|
-
var _a, _b, _c, _d, _e, _f;
|
|
11
|
-
if (!logs)
|
|
12
|
-
return React.createElement(Alert, { variant: "info" },
|
|
13
|
-
"Loading ",
|
|
14
|
-
runtime.toLowerCase(),
|
|
15
|
-
" build logs...");
|
|
16
|
-
const hasErrors = ((_a = logs.errors) === null || _a === void 0 ? void 0 : _a.length) > 0;
|
|
17
|
-
const hasWarnings = ((_b = logs.warnings) === null || _b === void 0 ? void 0 : _b.length) > 0;
|
|
18
|
-
const [activeTab, setActiveTab] = useState('summary');
|
|
19
|
-
return (React.createElement("div", null,
|
|
20
|
-
React.createElement(Tab.Container, { activeKey: activeTab, onSelect: (k) => setActiveTab(k || 'summary') },
|
|
21
|
-
React.createElement(Nav, { variant: "tabs", className: "mb-3" },
|
|
22
|
-
React.createElement(Nav.Item, null,
|
|
23
|
-
React.createElement(Nav.Link, { eventKey: "summary" }, "Build Summary")),
|
|
24
|
-
React.createElement(Nav.Item, null,
|
|
25
|
-
React.createElement(Nav.Link, { eventKey: "warnings" }, hasWarnings ? `⚠️ Warnings (${logs.warnings.length})` : 'Warnings')),
|
|
26
|
-
React.createElement(Nav.Item, null,
|
|
27
|
-
React.createElement(Nav.Link, { eventKey: "errors" }, hasErrors ? `❌ Errors (${logs.errors.length})` : 'Errors'))),
|
|
28
|
-
React.createElement(Tab.Content, null,
|
|
29
|
-
React.createElement(Tab.Pane, { eventKey: "summary" },
|
|
30
|
-
React.createElement(Card, null,
|
|
31
|
-
React.createElement(Card.Header, { className: "d-flex justify-content-between align-items-center" },
|
|
32
|
-
React.createElement("h5", null, "Build Summary"),
|
|
33
|
-
React.createElement("div", null,
|
|
34
|
-
hasErrors && (React.createElement(Badge, { bg: "danger", className: "me-2" },
|
|
35
|
-
logs.errors.length,
|
|
36
|
-
" Error",
|
|
37
|
-
logs.errors.length !== 1 ? 's' : '')),
|
|
38
|
-
hasWarnings && (React.createElement(Badge, { bg: "warning", text: "dark" },
|
|
39
|
-
logs.warnings.length,
|
|
40
|
-
" Warning",
|
|
41
|
-
logs.warnings.length !== 1 ? 's' : '')),
|
|
42
|
-
!hasErrors && !hasWarnings && (React.createElement("div", { className: "d-flex align-items-center gap-2" },
|
|
43
|
-
React.createElement(Badge, { bg: "success" }, "Build Successful"),
|
|
44
|
-
logs.testsExist && (React.createElement(Badge, { bg: "info" }, "tests.json \u2713")))))),
|
|
45
|
-
React.createElement(Card.Body, null,
|
|
46
|
-
React.createElement("div", { className: "mb-3" },
|
|
47
|
-
React.createElement("h6", null,
|
|
48
|
-
"Input Files (",
|
|
49
|
-
Object.keys(((_c = logs.metafile) === null || _c === void 0 ? void 0 : _c.inputs) || {}).length,
|
|
50
|
-
")"),
|
|
51
|
-
React.createElement(ListGroup, { className: "max-h-200 overflow-auto" }, Object.keys(((_d = logs.metafile) === null || _d === void 0 ? void 0 : _d.inputs) || {}).map((file) => (React.createElement(ListGroup.Item, { key: file, className: "py-2" },
|
|
52
|
-
React.createElement("code", null, file),
|
|
53
|
-
React.createElement("div", { className: "text-muted small" },
|
|
54
|
-
logs.metafile.inputs[file].bytes,
|
|
55
|
-
" bytes")))))),
|
|
56
|
-
React.createElement("div", null,
|
|
57
|
-
React.createElement("h6", null,
|
|
58
|
-
"Output Files (",
|
|
59
|
-
Object.keys(((_e = logs.metafile) === null || _e === void 0 ? void 0 : _e.outputs) || {}).length,
|
|
60
|
-
")"),
|
|
61
|
-
React.createElement(ListGroup, { className: "max-h-200 overflow-auto" }, Object.keys(((_f = logs.metafile) === null || _f === void 0 ? void 0 : _f.outputs) || {}).map((file) => (React.createElement(ListGroup.Item, { key: file, className: "py-2" },
|
|
62
|
-
React.createElement("code", null, file),
|
|
63
|
-
React.createElement("div", { className: "text-muted small" },
|
|
64
|
-
logs.metafile.outputs[file].bytes,
|
|
65
|
-
" bytes",
|
|
66
|
-
logs.metafile.outputs[file].entryPoint && (React.createElement("span", { className: "ms-2 badge bg-info" }, "Entry Point"))))))))))),
|
|
67
|
-
React.createElement(Tab.Pane, { eventKey: "warnings" }, hasWarnings ? (React.createElement(Card, { className: "border-warning" },
|
|
68
|
-
React.createElement(Card.Header, { className: "bg-warning text-white d-flex justify-content-between align-items-center" },
|
|
69
|
-
React.createElement("span", null,
|
|
70
|
-
"Build Warnings (",
|
|
71
|
-
logs.warnings.length,
|
|
72
|
-
")"),
|
|
73
|
-
React.createElement(Badge, { bg: "light", text: "dark" }, new Date().toLocaleString())),
|
|
74
|
-
React.createElement(Card.Body, { className: "p-0" },
|
|
75
|
-
React.createElement(ListGroup, { variant: "flush" }, logs.warnings.map((warn, i) => {
|
|
76
|
-
var _a, _b;
|
|
77
|
-
return (React.createElement(ListGroup.Item, { key: i, className: "text-warning" },
|
|
78
|
-
React.createElement("div", { className: "d-flex justify-content-between" },
|
|
79
|
-
React.createElement("strong", null,
|
|
80
|
-
((_a = warn.location) === null || _a === void 0 ? void 0 : _a.file) || 'Unknown file',
|
|
81
|
-
((_b = warn.location) === null || _b === void 0 ? void 0 : _b.line) && `:${warn.location.line}`),
|
|
82
|
-
React.createElement("small", { className: "text-muted" }, warn.pluginName ? `[${warn.pluginName}]` : '')),
|
|
83
|
-
React.createElement("div", { className: "mt-1" },
|
|
84
|
-
React.createElement("pre", { className: "mb-0 p-2 bg-light rounded" }, warn.text || warn.message || JSON.stringify(warn))),
|
|
85
|
-
warn.detail && (React.createElement("div", { className: "mt-1 small text-muted" },
|
|
86
|
-
React.createElement("pre", { className: "mb-0 p-2 bg-light rounded" }, warn.detail)))));
|
|
87
|
-
}))))) : (React.createElement(Alert, { variant: "info" }, "No warnings found"))),
|
|
88
|
-
React.createElement(Tab.Pane, { eventKey: "errors" }, hasErrors ? (React.createElement(Card, { className: "border-danger" },
|
|
89
|
-
React.createElement(Card.Header, { className: "bg-danger text-white d-flex justify-content-between align-items-center" },
|
|
90
|
-
React.createElement("span", null,
|
|
91
|
-
"Build Errors (",
|
|
92
|
-
logs.errors.length,
|
|
93
|
-
")"),
|
|
94
|
-
React.createElement(Badge, { bg: "light", text: "dark" }, new Date().toLocaleString())),
|
|
95
|
-
React.createElement(Card.Body, { className: "p-0" },
|
|
96
|
-
React.createElement(ListGroup, { variant: "flush" }, logs.errors.map((err, i) => {
|
|
97
|
-
var _a, _b;
|
|
98
|
-
return (React.createElement(ListGroup.Item, { key: i, className: "text-danger" },
|
|
99
|
-
React.createElement("div", { className: "d-flex justify-content-between" },
|
|
100
|
-
React.createElement("strong", null,
|
|
101
|
-
((_a = err.location) === null || _a === void 0 ? void 0 : _a.file) || 'Unknown file',
|
|
102
|
-
((_b = err.location) === null || _b === void 0 ? void 0 : _b.line) && `:${err.location.line}`),
|
|
103
|
-
React.createElement("small", { className: "text-muted" }, err.pluginName ? `[${err.pluginName}]` : '')),
|
|
104
|
-
React.createElement("div", { className: "mt-1" },
|
|
105
|
-
React.createElement("pre", { className: "mb-0 p-2 bg-light rounded" }, err.text || err.message || JSON.stringify(err))),
|
|
106
|
-
err.detail && (React.createElement("div", { className: "mt-1 small text-muted" },
|
|
107
|
-
React.createElement("pre", { className: "mb-0 p-2 bg-light rounded" }, err.detail)))));
|
|
108
|
-
}))))) : (React.createElement(Alert, { variant: "success" },
|
|
109
|
-
React.createElement("h5", null, "No Errors Found"),
|
|
110
|
-
React.createElement("p", { className: "mb-0" }, "The build completed without any errors."))))))));
|
|
111
|
-
};
|
|
112
|
-
export const ProjectPage = () => {
|
|
113
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
114
|
-
const [summary, setSummary] = useState(null);
|
|
115
|
-
const [nodeLogs, setNodeLogs] = useState(null);
|
|
116
|
-
const [webLogs, setWebLogs] = useState(null);
|
|
117
|
-
const [pureLogs, setPureLogs] = useState(null);
|
|
118
|
-
const [config, setConfig] = useState({});
|
|
119
|
-
const [loading, setLoading] = useState(true);
|
|
120
|
-
const [error, setError] = useState(null);
|
|
121
|
-
const [projectName, setProjectName] = useState('');
|
|
122
|
-
const navigate = useNavigate();
|
|
123
|
-
const location = useLocation();
|
|
124
|
-
const [route, setRoute] = useState('tests');
|
|
125
|
-
// Sync route with hash changes
|
|
126
|
-
useEffect(() => {
|
|
127
|
-
const hash = location.hash.replace('#', '');
|
|
128
|
-
if (hash && ['tests', 'node', 'web', 'pure'].includes(hash)) {
|
|
129
|
-
setRoute(hash);
|
|
130
|
-
}
|
|
131
|
-
else {
|
|
132
|
-
setRoute('tests');
|
|
133
|
-
}
|
|
134
|
-
}, [location.hash]);
|
|
135
|
-
const { projectName: name } = useParams();
|
|
136
|
-
useEffect(() => {
|
|
137
|
-
if (!name)
|
|
138
|
-
return;
|
|
139
|
-
setProjectName(name);
|
|
140
|
-
// Set initial tab from hash
|
|
141
|
-
const hash = window.location.hash.replace('#', '');
|
|
142
|
-
if (hash && ['tests', 'node', 'web', 'pure'].includes(hash)) {
|
|
143
|
-
setRoute(hash);
|
|
144
|
-
}
|
|
145
|
-
const fetchData = async () => {
|
|
146
|
-
try {
|
|
147
|
-
const [summaryRes, nodeRes, webRes, pureRes, configRes] = await Promise.all([
|
|
148
|
-
fetch(`reports/${name}/summary.json`),
|
|
149
|
-
fetch(`bundles/node/${name}/metafile.json`),
|
|
150
|
-
fetch(`bundles/web/${name}/metafile.json`),
|
|
151
|
-
fetch(`bundles/pure/${name}/metafile.json`),
|
|
152
|
-
fetch(`reports/${name}/config.json`)
|
|
153
|
-
]);
|
|
154
|
-
if (!summaryRes.ok)
|
|
155
|
-
throw new Error('Failed to fetch summary');
|
|
156
|
-
const [summaryData, nodeData, webData, pureData, configData] = await Promise.all([
|
|
157
|
-
summaryRes.json(),
|
|
158
|
-
nodeRes.ok ? nodeRes.json() : { errors: ["Failed to load node build logs"] },
|
|
159
|
-
webRes.ok ? webRes.json() : { errors: ["Failed to load web build logs"] },
|
|
160
|
-
pureRes.ok ? pureRes.json() : { errors: ["Failed to load pure build logs"] },
|
|
161
|
-
configRes.ok ? configRes.json() : { tests: [] }
|
|
162
|
-
]);
|
|
163
|
-
// Get runtime from first test in config
|
|
164
|
-
// const runtime = configData.tests.length > 0 ? configData.tests[0][1] : 'node';
|
|
165
|
-
// setRuntime(runtime);
|
|
166
|
-
// ]);
|
|
167
|
-
setSummary(summaryData);
|
|
168
|
-
setNodeLogs(nodeData);
|
|
169
|
-
setWebLogs(webData);
|
|
170
|
-
setPureLogs(pureData);
|
|
171
|
-
setConfig(configData);
|
|
172
|
-
}
|
|
173
|
-
catch (err) {
|
|
174
|
-
setError(err instanceof Error ? err.message : 'Unknown error');
|
|
175
|
-
}
|
|
176
|
-
finally {
|
|
177
|
-
setLoading(false);
|
|
178
|
-
}
|
|
179
|
-
};
|
|
180
|
-
fetchData();
|
|
181
|
-
}, []);
|
|
182
|
-
if (loading)
|
|
183
|
-
return React.createElement("div", null, "Loading project data...");
|
|
184
|
-
if (error)
|
|
185
|
-
return React.createElement(Alert, { variant: "danger" },
|
|
186
|
-
"Error: ",
|
|
187
|
-
error);
|
|
188
|
-
if (!summary)
|
|
189
|
-
return React.createElement(Alert, { variant: "warning" }, "No data found for project");
|
|
190
|
-
const testStatuses = Object.entries(summary).map(([testName, testData]) => {
|
|
191
|
-
console.groupCollapsed(`[ProjectPage] Processing test: ${testName}`);
|
|
192
|
-
console.log('Raw test data from summary.json:', testData);
|
|
193
|
-
// Check if tests.json exists by making a HEAD request
|
|
194
|
-
const checkTestsJson = async () => {
|
|
195
|
-
var _a;
|
|
196
|
-
try {
|
|
197
|
-
// Get runtime from config or fall back to test name pattern
|
|
198
|
-
let runtimeType = 'node'; // default fallback
|
|
199
|
-
const testConfig = (_a = config.tests) === null || _a === void 0 ? void 0 : _a.find((t) => t[0] === testName);
|
|
200
|
-
if (testConfig) {
|
|
201
|
-
runtimeType = testConfig[1] || runtimeType;
|
|
202
|
-
}
|
|
203
|
-
else if (testName.includes('.web.')) {
|
|
204
|
-
runtimeType = 'web';
|
|
205
|
-
}
|
|
206
|
-
else if (testName.includes('.pure.')) {
|
|
207
|
-
runtimeType = 'pure';
|
|
208
|
-
}
|
|
209
|
-
const jsonPath = `reports/${projectName}/${testName.split('.').slice(0, -1).join('.')}/${runtimeType}/tests.json`;
|
|
210
|
-
const res = await fetch(jsonPath, {
|
|
211
|
-
method: 'HEAD'
|
|
212
|
-
});
|
|
213
|
-
return res.ok;
|
|
214
|
-
}
|
|
215
|
-
catch (_b) {
|
|
216
|
-
return false;
|
|
217
|
-
}
|
|
218
|
-
};
|
|
219
|
-
const testsJsonExists = checkTestsJson();
|
|
220
|
-
const status = {
|
|
221
|
-
testName,
|
|
222
|
-
testsExist: testsJsonExists && testData.testsExist !== false, // Ensure boolean
|
|
223
|
-
runTimeErrors: Number(testData.runTimeErrors) || 0, // Ensure number
|
|
224
|
-
typeErrors: Number(testData.typeErrors) || 0,
|
|
225
|
-
staticErrors: Number(testData.staticErrors) || 0
|
|
226
|
-
};
|
|
227
|
-
console.log('Normalized status:', status);
|
|
228
|
-
console.log('tests.json exists:', testsJsonExists);
|
|
229
|
-
// Validate status consistency
|
|
230
|
-
if (status.runTimeErrors === -1 && status.testsExist) {
|
|
231
|
-
console.warn('Inconsistent state: runTimeErrors=-1 but testsExist=true');
|
|
232
|
-
}
|
|
233
|
-
if (!status.testsExist && status.runTimeErrors > 0) {
|
|
234
|
-
console.warn('Inconsistent state: testsExist=false but runTimeErrors>0');
|
|
235
|
-
}
|
|
236
|
-
console.groupEnd();
|
|
237
|
-
return status;
|
|
238
|
-
});
|
|
239
|
-
return (React.createElement(Container, { fluid: true },
|
|
240
|
-
React.createElement(NavBar, { title: projectName, backLink: "/", navItems: [
|
|
241
|
-
{
|
|
242
|
-
to: `#tests`,
|
|
243
|
-
label: testStatuses.some(t => t.runTimeErrors > 0) ? '❌ Tests' :
|
|
244
|
-
testStatuses.some(t => t.typeErrors > 0 || t.staticErrors > 0) ? '⚠️ Tests' : '✅ Tests',
|
|
245
|
-
active: route === 'tests',
|
|
246
|
-
className: testStatuses.some(t => t.runTimeErrors > 0) ? 'text-danger fw-bold' :
|
|
247
|
-
testStatuses.some(t => t.typeErrors > 0 || t.staticErrors > 0) ? 'text-warning fw-bold' : ''
|
|
248
|
-
},
|
|
249
|
-
{
|
|
250
|
-
to: `#node`,
|
|
251
|
-
label: ((_a = nodeLogs === null || nodeLogs === void 0 ? void 0 : nodeLogs.errors) === null || _a === void 0 ? void 0 : _a.length) ? '❌ Node Build' :
|
|
252
|
-
((_b = nodeLogs === null || nodeLogs === void 0 ? void 0 : nodeLogs.warnings) === null || _b === void 0 ? void 0 : _b.length) ? '⚠️ Node Build' : 'Node Build',
|
|
253
|
-
active: route === 'node',
|
|
254
|
-
className: ((_c = nodeLogs === null || nodeLogs === void 0 ? void 0 : nodeLogs.errors) === null || _c === void 0 ? void 0 : _c.length) ? 'text-danger fw-bold' :
|
|
255
|
-
((_d = nodeLogs === null || nodeLogs === void 0 ? void 0 : nodeLogs.warnings) === null || _d === void 0 ? void 0 : _d.length) ? 'text-warning fw-bold' : ''
|
|
256
|
-
},
|
|
257
|
-
{
|
|
258
|
-
to: `#web`,
|
|
259
|
-
label: ((_e = webLogs === null || webLogs === void 0 ? void 0 : webLogs.errors) === null || _e === void 0 ? void 0 : _e.length) ? '❌ Web Build' :
|
|
260
|
-
((_f = webLogs === null || webLogs === void 0 ? void 0 : webLogs.warnings) === null || _f === void 0 ? void 0 : _f.length) ? '⚠️ Web Build' : 'Web Build',
|
|
261
|
-
active: route === 'web',
|
|
262
|
-
className: ((_g = webLogs === null || webLogs === void 0 ? void 0 : webLogs.errors) === null || _g === void 0 ? void 0 : _g.length) ? 'text-danger fw-bold' :
|
|
263
|
-
((_h = webLogs === null || webLogs === void 0 ? void 0 : webLogs.warnings) === null || _h === void 0 ? void 0 : _h.length) ? 'text-warning fw-bold' : ''
|
|
264
|
-
},
|
|
265
|
-
{
|
|
266
|
-
to: `#pure`,
|
|
267
|
-
label: ((_j = pureLogs === null || pureLogs === void 0 ? void 0 : pureLogs.errors) === null || _j === void 0 ? void 0 : _j.length) ? '❌ Pure Build' :
|
|
268
|
-
((_k = pureLogs === null || pureLogs === void 0 ? void 0 : pureLogs.warnings) === null || _k === void 0 ? void 0 : _k.length) ? '⚠️ Pure Build' : 'Pure Build',
|
|
269
|
-
active: route === 'pure',
|
|
270
|
-
className: ((_l = pureLogs === null || pureLogs === void 0 ? void 0 : pureLogs.errors) === null || _l === void 0 ? void 0 : _l.length) ? 'text-danger fw-bold' :
|
|
271
|
-
((_m = pureLogs === null || pureLogs === void 0 ? void 0 : pureLogs.warnings) === null || _m === void 0 ? void 0 : _m.length) ? 'text-warning fw-bold' : ''
|
|
272
|
-
},
|
|
273
|
-
] }),
|
|
274
|
-
React.createElement(Tab.Container, { activeKey: route, onSelect: (k) => {
|
|
275
|
-
if (k) {
|
|
276
|
-
setRoute(k);
|
|
277
|
-
navigate(`#${k}`, { replace: true });
|
|
278
|
-
}
|
|
279
|
-
} },
|
|
280
|
-
React.createElement(Tab.Content, null,
|
|
281
|
-
React.createElement(Tab.Pane, { eventKey: "tests" },
|
|
282
|
-
React.createElement(Table, { striped: true, bordered: true, hover: true },
|
|
283
|
-
React.createElement("thead", null,
|
|
284
|
-
React.createElement("tr", null,
|
|
285
|
-
React.createElement("th", null, "Test"),
|
|
286
|
-
React.createElement("th", null, "Runtime"),
|
|
287
|
-
React.createElement("th", null, "BDD Errors"),
|
|
288
|
-
React.createElement("th", null, "Type Errors"),
|
|
289
|
-
React.createElement("th", null, "Lint Errors"))),
|
|
290
|
-
React.createElement("tbody", null, testStatuses.map((test) => {
|
|
291
|
-
var _a;
|
|
292
|
-
const testConfig = (_a = config.tests) === null || _a === void 0 ? void 0 : _a.find((t) => t[0] === test.testName);
|
|
293
|
-
const runTime = (testConfig === null || testConfig === void 0 ? void 0 : testConfig[1]) || 'node'; // Default to 'node' if not found
|
|
294
|
-
const hasRuntimeErrors = test.runTimeErrors > 0;
|
|
295
|
-
const hasTypeErrors = test.typeErrors > 0;
|
|
296
|
-
const hasLintErrors = test.staticErrors > 0;
|
|
297
|
-
return (React.createElement("tr", { key: test.testName },
|
|
298
|
-
React.createElement("td", null,
|
|
299
|
-
React.createElement("a", { href: `#/projects/${projectName}/tests/${encodeURIComponent(test.testName)}/${runTime}` }, test.testName)),
|
|
300
|
-
React.createElement("td", null,
|
|
301
|
-
React.createElement(Badge, { bg: "secondary", className: "ms-2" }, runTime)),
|
|
302
|
-
React.createElement("td", null,
|
|
303
|
-
React.createElement(TestStatusBadge, { testName: test.testName, testsExist: test.testsExist, runTimeErrors: test.runTimeErrors, typeErrors: test.typeErrors, staticErrors: test.staticErrors })),
|
|
304
|
-
React.createElement("td", null,
|
|
305
|
-
React.createElement("a", { href: `#/projects/${projectName}/tests/${encodeURIComponent(test.testName)}/${runTime}#types` }, test.typeErrors > 0
|
|
306
|
-
? `tsc (❌ * ${test.typeErrors})`
|
|
307
|
-
: 'tsc ✅')),
|
|
308
|
-
React.createElement("td", null,
|
|
309
|
-
React.createElement("a", { href: `#/projects/${projectName}/tests/${encodeURIComponent(test.testName)}/${runTime}#lint` }, test.staticErrors > 0
|
|
310
|
-
? `eslint (❌ *${test.staticErrors})`
|
|
311
|
-
: 'eslint ✅'))));
|
|
312
|
-
})))),
|
|
313
|
-
React.createElement(Tab.Pane, { eventKey: "node" },
|
|
314
|
-
React.createElement(BuildLogViewer, { logs: nodeLogs, runtime: "Node" })),
|
|
315
|
-
React.createElement(Tab.Pane, { eventKey: "web" },
|
|
316
|
-
React.createElement(BuildLogViewer, { logs: webLogs, runtime: "Web" })),
|
|
317
|
-
React.createElement(Tab.Pane, { eventKey: "pure" },
|
|
318
|
-
React.createElement(BuildLogViewer, { logs: pureLogs, runtime: "Pure" }))))));
|
|
319
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { ProjectsPage } from './components/stateful/ProjectsPage';
|