testeranto 0.177.0 → 0.189.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/CNAME +1 -0
- package/README.html +302 -0
- package/README.md +24 -4
- package/dist/common/src/App.js +43 -0
- package/dist/common/src/Node.js +4 -8
- package/dist/common/src/PM/PM_WithEslintAndTsc.js +2 -33
- package/dist/common/src/PM/base.js +0 -1
- package/dist/common/src/PM/layers/base/PM_Base.js +1 -0
- package/dist/common/src/PM/layers/base/components/PageOperations.js +1 -0
- package/dist/common/src/PM/layers/base/components/PageOperations.testeranto.js +1 -0
- package/dist/common/src/PM/layers/linting/components/Linter.js +1 -0
- package/dist/common/src/PM/layers/linting/components/TypeChecker.js +1 -0
- package/dist/common/src/PM/layers/main/components/SidecarManager.js +1 -0
- package/dist/common/src/PM/layers/main/components/TestRunner.js +1 -0
- package/dist/common/src/PM/main.js +211 -109
- package/dist/common/src/PM/nodeSidecar.js +1 -0
- package/dist/common/src/PM/pure.js +15 -10
- 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 +2 -1
- package/dist/common/src/Pure.js +1 -1
- package/dist/common/src/Pure.test.js +21 -19
- package/dist/common/src/build.js +30 -39
- 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 +20 -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 +33 -0
- package/dist/common/src/components/pure/ModalContent.test/index.js +12 -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/components/pure/ProjectPageView.js +53 -76
- package/dist/common/src/components/pure/ProjectPageView.test/implementation.js +118 -33
- 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 +66 -0
- package/dist/common/src/components/pure/SettingsButton.js +83 -0
- package/dist/common/src/components/pure/TestPageView.js +134 -0
- package/dist/common/src/components/pure/TestPageView.test/implementation.js +202 -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/ProjectPage.js +100 -0
- package/dist/common/src/components/stateful/ProjectsPage.js +92 -0
- package/dist/common/src/components/stateful/TestPage.js +133 -0
- package/dist/common/src/defaultConfig.js +1 -0
- package/dist/common/src/esbuildConfigs/web.js +1 -1
- package/dist/common/src/lib/BaseSuite.js +1 -0
- package/dist/common/src/lib/BaseSuite.test/mock.js +0 -11
- package/dist/common/src/lib/BaseSuite.test/test.js +11 -22
- package/dist/common/src/lib/Sidecar.js +1 -0
- package/dist/common/src/lib/abstractBase.js +13 -6
- package/dist/common/src/lib/baseBuilder.test/baseBuilder.test.adapter.js +0 -6
- package/dist/common/src/lib/baseBuilder.test/baseBuilder.test.implementation.js +3 -1
- 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 +32 -30
- package/dist/common/src/lib/classBuilder.js +2 -0
- package/dist/common/src/lib/core.js +0 -1
- 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 +2 -0
- package/dist/common/src/lib/pmProxy.js +0 -2
- package/dist/common/src/lib/pmProxy.test/adapter.js +8 -2
- package/dist/common/src/lib/pmProxy.test/implementation.js +33 -4
- package/dist/common/src/lib/pmProxy.test/mockPMBase.js +9 -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 +42 -23
- package/dist/common/src/utils/featureUtils.js +29 -0
- package/dist/common/src/utils/logFiles.js +25 -0
- package/dist/common/src/utils/makePrompt.js +115 -0
- package/dist/common/src/web.html.js +2 -6
- package/dist/common/testeranto.config.js +62 -34
- package/dist/common/tsconfig.common.tsbuildinfo +1 -1
- package/dist/module/src/App.js +9 -17
- package/dist/module/src/Node.js +4 -8
- package/dist/module/src/PM/PM_WithEslintAndTsc.js +3 -34
- package/dist/module/src/PM/base.js +0 -1
- package/dist/module/src/PM/layers/base/PM_Base.js +1 -0
- package/dist/module/src/PM/layers/base/components/PageOperations.js +1 -0
- package/dist/module/src/PM/layers/base/components/PageOperations.testeranto.js +1 -0
- package/dist/module/src/PM/layers/linting/components/Linter.js +1 -0
- package/dist/module/src/PM/layers/linting/components/TypeChecker.js +1 -0
- package/dist/module/src/PM/layers/main/components/SidecarManager.js +1 -0
- package/dist/module/src/PM/layers/main/components/TestRunner.js +1 -0
- package/dist/module/src/PM/main.js +207 -105
- package/dist/module/src/PM/nodeSidecar.js +1 -0
- package/dist/module/src/PM/pure.js +15 -10
- 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 +2 -1
- package/dist/module/src/Pure.js +1 -1
- package/dist/module/src/Pure.test.js +21 -19
- package/dist/module/src/build.js +25 -37
- package/dist/module/src/components/SunriseAnimation.test/interface.js +32 -1
- package/dist/module/src/components/TestStatusBadge.js +1 -21
- package/dist/module/src/components/pure/AppFrame.js +13 -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/ModalContent.js +79 -0
- package/dist/module/src/components/pure/ModalContent.test/implementation.js +30 -0
- package/dist/module/src/components/pure/ModalContent.test/index.js +7 -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/components/pure/ProjectPageView.js +54 -77
- package/dist/module/src/components/pure/ProjectPageView.test/implementation.js +118 -33
- 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 +5 -4
- package/dist/module/src/components/pure/SettingsButton.js +43 -0
- package/dist/module/src/components/pure/TestPageView.js +100 -121
- package/dist/module/src/components/pure/TestPageView.test/implementation.js +166 -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/ProjectPage.js +1 -1
- package/dist/module/src/components/stateful/TestPage.js +25 -11
- package/dist/module/src/defaultConfig.js +1 -0
- package/dist/module/src/esbuildConfigs/web.js +1 -1
- package/dist/module/src/lib/BaseSuite.js +1 -0
- package/dist/module/src/lib/BaseSuite.test/mock.js +0 -11
- package/dist/module/src/lib/BaseSuite.test/test.js +11 -22
- package/dist/module/src/lib/Sidecar.js +1 -0
- package/dist/module/src/lib/abstractBase.js +13 -6
- package/dist/module/src/lib/baseBuilder.test/baseBuilder.test.adapter.js +0 -6
- package/dist/module/src/lib/baseBuilder.test/baseBuilder.test.implementation.js +3 -1
- 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 +32 -30
- package/dist/module/src/lib/classBuilder.js +2 -0
- package/dist/module/src/lib/core.js +0 -1
- 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 +2 -0
- package/dist/module/src/lib/pmProxy.js +0 -2
- package/dist/module/src/lib/pmProxy.test/adapter.js +8 -2
- package/dist/module/src/lib/pmProxy.test/implementation.js +33 -4
- package/dist/module/src/lib/pmProxy.test/mockPMBase.js +9 -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 +41 -21
- package/dist/module/src/utils/featureUtils.js +24 -0
- package/dist/module/src/utils/logFiles.js +21 -0
- package/dist/module/src/utils/makePrompt.js +108 -0
- package/dist/module/src/web.html.js +2 -6
- package/dist/module/testeranto.config.js +62 -34
- package/dist/module/tsconfig.module.tsbuildinfo +1 -1
- package/dist/prebuild/App.css +444 -12
- package/dist/prebuild/App.js +1318 -1053
- package/dist/prebuild/build.mjs +87 -103
- package/dist/prebuild/mothership/index.mjs +5 -0
- package/dist/prebuild/run.mjs +342 -211
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/dist/types/App.d.ts +1 -0
- package/dist/types/PM/layers/main/components/SidecarManager.d.ts +0 -0
- package/dist/types/PM/layers/main/components/TestRunner.d.ts +0 -0
- package/dist/types/{src/PM → PM}/main.d.ts +18 -3
- package/dist/types/{src/PM → PM}/pure.d.ts +7 -4
- package/dist/types/PM/types.d.ts +0 -0
- package/dist/types/{src/PM → PM}/web.d.ts +1 -1
- package/dist/types/{src/Types.d.ts → Types.d.ts} +1 -0
- package/dist/types/components/SunriseAnimation.d.ts +5 -0
- package/dist/types/components/SunriseAnimation.test/implementation.d.ts +0 -0
- package/dist/types/components/SunriseAnimation.test/index.d.ts +0 -0
- package/dist/types/components/SunriseAnimation.test/interface.d.ts +11 -0
- package/dist/types/components/SunriseAnimation.test/specification.d.ts +0 -0
- package/dist/types/components/SunriseAnimation.test/types.d.ts +39 -0
- package/dist/types/components/pure/AppFrame.d.ts +9 -0
- package/dist/types/components/pure/AppFrame.test/implementation.d.ts +3 -0
- package/dist/types/components/pure/AppFrame.test/index.d.ts +5 -0
- package/dist/types/components/pure/AppFrame.test/types.d.ts +33 -0
- package/dist/types/components/pure/FeaturesReporterView.d.ts +7 -0
- package/dist/types/{src/components/pure/ProjectPageView.test → components/pure/FeaturesReporterView.test}/index.d.ts +1 -2
- package/dist/types/components/pure/FeaturesReporterView.test/specification.d.ts +3 -0
- package/dist/types/components/pure/FeaturesReporterView.test/types.d.ts +54 -0
- package/dist/types/components/pure/ModalContent.d.ts +7 -0
- package/dist/types/components/pure/ModalContent.test/implementation.d.ts +3 -0
- package/dist/types/components/pure/ModalContent.test/index.d.ts +2 -0
- package/dist/types/components/pure/ModalContent.test/specification.d.ts +3 -0
- package/dist/types/components/pure/ModalContent.test/types.d.ts +45 -0
- package/dist/types/components/pure/ProjectPageView.d.ts +14 -0
- package/dist/types/components/pure/ProjectPageView.test/implementation.d.ts +3 -0
- package/dist/types/components/pure/ProjectPageView.test/index.d.ts +2 -0
- package/dist/types/components/pure/ProjectPageView.test/specification.d.ts +3 -0
- package/dist/types/components/pure/ProjectPageView.test/types.d.ts +57 -0
- package/dist/types/components/pure/ProjectsPageView.d.ts +29 -0
- package/dist/types/components/pure/SettingsButton.d.ts +3 -0
- package/dist/types/components/pure/TestPageView.d.ts +15 -0
- package/dist/types/components/pure/TestPageView.test/implementation.d.ts +11 -0
- package/dist/types/components/pure/TestPageView.test/index.d.ts +32 -0
- package/dist/types/components/pure/TestPageView.test/specification.d.ts +11 -0
- package/dist/types/components/pure/TestPageView.test/types.d.ts +65 -0
- package/dist/types/components/pure/ThemeCard.d.ts +9 -0
- package/dist/types/components/stateful/FeaturesReporter.d.ts +2 -0
- package/dist/types/components/stateful/ProjectPage.d.ts +1 -0
- package/dist/types/components/stateful/ProjectsPage.d.ts +1 -0
- package/dist/types/components/stateful/TestPage.d.ts +1 -0
- package/dist/types/init-docs.d.ts +1 -0
- package/dist/types/{src/lib → lib}/abstractBase.d.ts +1 -1
- package/dist/types/{src/lib → lib}/abstractBase.test/MockGiven.d.ts +1 -1
- package/dist/types/lib/baseBuilder.test/baseBuilder.test.pure.d.ts +3 -0
- package/dist/types/{src/lib → lib}/index.d.ts +7 -7
- package/dist/types/run.d.ts +1 -0
- package/dist/types/tsconfig.types.tsbuildinfo +1 -1
- package/dist/types/types/features.d.ts +7 -0
- package/dist/types/{src/utils → utils}/api.d.ts +1 -5
- package/dist/types/utils/featureUtils.d.ts +6 -0
- package/dist/types/utils/logFiles.d.ts +7 -0
- package/dist/types/utils/makePrompt.d.ts +2 -0
- package/dist/types/{src/web.html.d.ts → web.html.d.ts} +1 -1
- package/docs/index.md +17 -0
- package/docs/testing.prompt.txt +1 -3
- package/docs.html +28 -10
- package/index.d.ts +38 -13
- package/index.html +59 -205
- package/marketing.md +166 -0
- package/package.json +15 -7
- package/scripts/compile-docs.js +24 -14
- package/smil30/SMIL-anim.mod.xsd +163 -0
- package/smil30/SMIL-control.mod.xsd +73 -0
- package/smil30/SMIL-layout.mod.xsd +149 -0
- package/smil30/SMIL-link.mod.xsd +145 -0
- package/smil30/SMIL-media.mod.xsd +1646 -0
- package/smil30/SMIL-metainformation.mod.xsd +45 -0
- package/smil30/SMIL-smiltext.mod.xsd +353 -0
- package/smil30/SMIL-state.mod.xsd +133 -0
- package/smil30/SMIL-struct.mod.xsd +70 -0
- package/smil30/SMIL-timing.mod.xsd +105 -0
- package/smil30/SMIL-transition.mod.xsd +229 -0
- package/smil30/SMIL.xsd +63 -0
- package/smil30/its.xsd +42 -0
- package/smil30/smil-attribs-1.mod.xsd +610 -0
- package/smil30/smil-datatypes-1.mod.xsd +72 -0
- package/smil30/smil-framework-1.mod.xsd +45 -0
- package/smil30/xml.xsd +16 -0
- package/src/App.scss +4 -13
- package/src/App.tsx +11 -25
- package/src/Node.ts +6 -9
- package/src/PM/PM_WithEslintAndTsc.ts +7 -93
- package/src/PM/__tests__/nodeSidecar.testeranto.ts +2 -0
- package/src/PM/base.ts +0 -3
- package/src/PM/layers/base/PM_Base.ts +0 -0
- package/src/PM/layers/base/components/PageOperations.testeranto.ts +0 -0
- package/src/PM/layers/base/components/PageOperations.ts +0 -0
- package/src/PM/layers/linting/components/Linter.ts +0 -0
- package/src/PM/layers/linting/components/TypeChecker.ts +0 -0
- package/src/PM/layers/main/components/SidecarManager.ts +0 -0
- package/src/PM/layers/main/components/TestRunner.ts +0 -0
- package/src/PM/main.ts +249 -120
- package/src/PM/nodeSidecar.ts +1 -0
- package/src/PM/pure.ts +15 -21
- package/src/PM/pureSidecar.ts +1 -1
- package/src/PM/types.ts +0 -0
- package/src/PM/web.ts +2 -1
- package/src/Pure.test.ts +21 -20
- package/src/Pure.ts +1 -1
- package/src/README.md +66 -0
- package/src/Types.ts +1 -0
- package/src/build.ts +28 -54
- 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 +29 -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 +43 -0
- package/src/components/pure/ModalContent.test/index.tsx +15 -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/components/pure/ProjectPageView.test/implementation.tsx +135 -36
- package/src/components/pure/ProjectPageView.test/index.tsx +20 -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 +36 -5
- package/src/components/pure/SettingsButton.md +1 -0
- package/src/components/pure/SettingsButton.tsx +66 -0
- package/src/components/pure/TestPageView.test/implementation.ts +194 -0
- package/src/components/pure/TestPageView.test/index.tsx +20 -0
- package/src/components/pure/TestPageView.test/specification.ts +59 -0
- package/src/components/pure/TestPageView.test/types.ts +92 -0
- package/src/components/pure/TestPageView.tsx +272 -283
- package/src/components/pure/ThemeCard.tsx +34 -0
- package/src/components/stateful/FeaturesReporter.tsx +24 -0
- package/src/components/stateful/ProjectPage.tsx +4 -3
- package/src/components/stateful/TestPage.tsx +27 -18
- package/src/defaultConfig.ts +1 -0
- package/src/esbuildConfigs/web.ts +2 -1
- package/src/lib/BaseSuite.test/mock.ts +1 -27
- package/src/lib/BaseSuite.test/test.ts +15 -37
- package/src/lib/BaseSuite.ts +3 -0
- package/src/lib/Sidecar.ts +2 -0
- package/src/lib/abstractBase.test/MockGiven.ts +1 -1
- package/src/lib/abstractBase.ts +15 -7
- package/src/lib/baseBuilder.test/baseBuilder.test.adapter.ts +0 -6
- package/src/lib/baseBuilder.test/baseBuilder.test.implementation.ts +3 -1
- 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 +46 -47
- package/src/lib/classBuilder.ts +3 -0
- 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 +2 -1
- package/src/lib/index.ts +9 -8
- package/src/lib/pmProxy.test/adapter.ts +8 -2
- package/src/lib/pmProxy.test/implementation.ts +40 -7
- package/src/lib/pmProxy.test/mockPMBase.ts +11 -0
- package/src/lib/pmProxy.ts +2 -2
- 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 +16 -0
- package/src/templates/frontpage.html +54 -0
- package/src/themes.scss +9 -9
- package/src/types/features.ts +38 -0
- package/src/utils/api.ts +59 -29
- package/src/utils/featureUtils.tsx +42 -0
- package/src/utils/logFiles.ts +26 -0
- package/src/utils/makePrompt.ts +148 -0
- package/src/web.html.ts +6 -6
- package/style.css +28 -9
- package/testeranto/App.css +444 -12
- package/testeranto/App.js +1318 -1053
- package/testeranto/bundles/node/core/chunk-JBB5E3XJ.mjs +258 -0
- package/testeranto/bundles/node/core/chunk-L67RWZ4W.mjs +899 -0
- package/testeranto/bundles/node/core/chunk-ZQRRQYS4.mjs +92 -0
- package/testeranto/bundles/node/core/metafile.json +5729 -2
- package/testeranto/bundles/node/core/src/lib/BaseSuite.test/node.test.mjs +307 -0
- package/testeranto/bundles/node/core/src/lib/baseBuilder.test/baseBuilder.test.node.mjs +247 -0
- package/testeranto/bundles/node/core/src/lib/classBuilder.test/classBuilder.test.mjs +423 -0
- package/testeranto/bundles/node/core/src/lib/core.test/core.test.mjs +505 -0
- package/testeranto/bundles/node/core/src/lib/pmProxy.test/index.mjs +4804 -0
- package/testeranto/bundles/node/core/src/mothership/test.mjs +24588 -0
- package/testeranto/bundles/pure/core/chunk-KHJ35R7C.mjs +997 -0
- package/testeranto/bundles/pure/core/metafile.json +870 -3
- package/testeranto/bundles/pure/core/src/Pure.test.mjs +428 -0
- package/testeranto/bundles/pure/core/src/lib/BaseSuite.test/pure.test.mjs +379 -0
- package/testeranto/bundles/pure/core/src/lib/baseBuilder.test/baseBuilder.test.pure.mjs +235 -0
- package/testeranto/bundles/web/core/MPLUSRounded1c-Black-O75GP5JI.ttf +0 -0
- package/testeranto/bundles/web/core/MPLUSRounded1c-Bold-R524Q5BH.ttf +0 -0
- package/testeranto/bundles/web/core/MPLUSRounded1c-ExtraBold-C6GRMYVT.ttf +0 -0
- package/testeranto/bundles/web/core/MPLUSRounded1c-Light-WKN65Y2C.ttf +0 -0
- package/testeranto/bundles/web/core/MPLUSRounded1c-Medium-ZC4DWL7C.ttf +0 -0
- package/testeranto/bundles/web/core/MPLUSRounded1c-Regular-DT6EKZ3S.ttf +0 -0
- package/testeranto/bundles/web/core/MPLUSRounded1c-Thin-YWDNVG6M.ttf +0 -0
- package/testeranto/bundles/web/core/chunk-BADF3AZF.mjs +108 -0
- package/testeranto/bundles/web/core/chunk-BXV27S2S.mjs +6252 -0
- package/testeranto/bundles/web/core/chunk-EIYZKF2C.mjs +223 -0
- package/testeranto/bundles/web/core/chunk-FNXFUNA7.mjs +28528 -0
- package/testeranto/bundles/web/core/chunk-LU364HVS.mjs +3311 -0
- package/testeranto/bundles/web/core/chunk-QWII7WIM.mjs +2281 -0
- package/testeranto/bundles/web/core/chunk-VAYOSMXI.mjs +21775 -0
- package/testeranto/bundles/web/core/metafile.json +7883 -4742
- package/testeranto/bundles/web/core/src/components/pure/AppFrame.test/index.css +12105 -0
- package/testeranto/bundles/web/core/src/components/pure/AppFrame.test/index.html +15 -0
- package/testeranto/bundles/web/core/src/components/pure/AppFrame.test/index.mjs +517 -0
- package/testeranto/bundles/web/core/src/components/pure/FeaturesReporterView.test/index.html +15 -0
- package/testeranto/bundles/web/core/src/components/pure/FeaturesReporterView.test/index.mjs +166 -0
- package/testeranto/bundles/web/core/src/components/pure/ModalContent.test/index.css +12105 -0
- package/testeranto/bundles/web/core/src/components/pure/ModalContent.test/index.html +15 -0
- package/testeranto/bundles/web/core/src/components/pure/ModalContent.test/index.mjs +93 -0
- package/testeranto/bundles/web/core/src/components/pure/ProjectPageView.test/index.css +12105 -0
- package/testeranto/bundles/web/core/src/components/pure/ProjectPageView.test/index.html +1 -5
- package/testeranto/bundles/web/core/src/components/pure/ProjectPageView.test/index.mjs +280 -39928
- package/testeranto/bundles/web/core/src/components/pure/TestPageView.test/index.css +12105 -0
- package/testeranto/bundles/web/core/src/components/pure/TestPageView.test/index.html +15 -0
- package/testeranto/bundles/web/core/src/components/pure/TestPageView.test/index.mjs +483 -0
- package/testeranto/bundles/web/core/src/lib/BaseSuite.test/web.test.html +15 -0
- package/testeranto/bundles/web/core/src/lib/BaseSuite.test/web.test.mjs +394 -0
- package/testeranto/bundles/web/core/src/lib/baseBuilder.test/baseBuilder.test.web.html +15 -0
- package/testeranto/bundles/web/core/src/lib/baseBuilder.test/baseBuilder.test.web.mjs +256 -0
- package/testeranto/reports/core/config.json +127 -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 +106 -0
- package/testeranto/reports/core/src/components/pure/AppFrame.test/index/web/debug.log +0 -0
- package/testeranto/reports/core/src/components/pure/AppFrame.test/index/web/error.log +22 -0
- package/testeranto/reports/core/src/components/pure/AppFrame.test/index/web/exit.log +1 -0
- package/testeranto/reports/core/src/components/pure/AppFrame.test/index/web/info.log +4 -0
- package/testeranto/reports/core/src/components/pure/AppFrame.test/index/web/lint_errors.txt +2 -0
- package/testeranto/reports/core/src/components/pure/AppFrame.test/index/web/message.txt +17 -0
- package/testeranto/reports/core/src/components/pure/AppFrame.test/index/web/prompt.txt +18 -0
- package/testeranto/reports/core/src/components/pure/AppFrame.test/index/web/tests.json +57 -0
- package/testeranto/reports/core/src/components/pure/AppFrame.test/index/web/type_errors.txt +55 -0
- package/testeranto/reports/core/src/components/pure/AppFrame.test/index/web/warn.log +0 -0
- package/testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/debug.log +0 -0
- package/testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/error.log +56 -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 +2 -0
- package/testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/lint_errors.txt +0 -0
- package/testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/message.txt +17 -0
- package/testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/prompt.txt +16 -0
- package/testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/suite-0/given-basicRender/then-4/butThen/features-reporter.png +0 -0
- package/testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/tests.json +76 -0
- package/testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/type_errors.txt +80 -0
- package/testeranto/reports/core/src/components/pure/FeaturesReporterView.test/index/web/warn.log +0 -0
- package/testeranto/reports/core/src/components/pure/ModalContent.test/index/web/debug.log +0 -0
- package/testeranto/reports/core/src/components/pure/ModalContent.test/index/web/error.log +0 -0
- package/testeranto/reports/core/src/components/pure/ModalContent.test/index/web/exit.log +0 -0
- package/testeranto/reports/core/src/components/pure/ModalContent.test/index/web/info.log +4 -0
- package/testeranto/reports/core/src/components/pure/ModalContent.test/index/web/lint_errors.txt +0 -0
- package/testeranto/reports/core/src/components/pure/ModalContent.test/index/web/message.txt +17 -0
- package/testeranto/reports/core/src/components/pure/ModalContent.test/index/web/prompt.txt +15 -0
- package/testeranto/reports/core/src/components/pure/ModalContent.test/index/web/suite-0/given-basicRender/then-2/butThen/modal-content.png +0 -0
- package/testeranto/reports/core/src/components/pure/ModalContent.test/index/web/tests.json +42 -0
- package/testeranto/reports/core/src/components/pure/ModalContent.test/index/web/type_errors.txt +65 -0
- package/testeranto/reports/core/src/components/pure/ModalContent.test/index/web/warn.log +0 -0
- package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/debug.log +0 -0
- package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/error.log +33 -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 +4 -0
- package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/lint_errors.txt +2 -18
- package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/message.txt +16 -1
- package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/prompt.txt +3 -14
- package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/suite-0/given-basicRender/then-6/butThen/happy-state.png +0 -0
- package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/suite-0/given-errorHandling/then-1/butThen/error-state.png +0 -0
- package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/tests.json +99 -0
- package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/type_errors.txt +69 -28
- 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 +0 -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 +2 -0
- package/testeranto/reports/core/src/components/pure/TestPageView.test/index/web/lint_errors.txt +0 -0
- package/testeranto/reports/core/src/components/pure/TestPageView.test/index/web/message.txt +17 -0
- package/testeranto/reports/core/src/components/pure/TestPageView.test/index/web/prompt.txt +18 -0
- package/testeranto/reports/core/src/components/pure/TestPageView.test/index/web/tests.json +69 -0
- package/testeranto/reports/core/src/components/pure/TestPageView.test/index/web/type_errors.txt +111 -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 +113 -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 +113 -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 +1 -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/lint_errors.txt +0 -0
- package/testeranto/reports/core/src/lib/BaseSuite.test/web.test/web/message.txt +17 -0
- package/testeranto/reports/core/src/lib/BaseSuite.test/web.test/web/prompt.txt +15 -0
- package/testeranto/reports/core/src/lib/BaseSuite.test/web.test/web/tests.json +31 -0
- package/testeranto/reports/core/src/lib/BaseSuite.test/web.test/web/type_errors.txt +113 -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 +0 -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 +2 -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 +65 -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 +0 -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 +65 -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 +1 -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/lint_errors.txt +0 -0
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.web/web/message.txt +17 -0
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.web/web/prompt.txt +17 -0
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.web/web/suite-0/given-testInitialization/then-0/butThen/hello.txt +1 -0
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.web/web/suite-0/given-testInitialization/then-1/butThen/artifact_test.txt +1 -0
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.web/web/tests.json +71 -0
- package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.web/web/type_errors.txt +65 -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 +140 -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 +64 -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 +23 -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 +0 -0
- package/testeranto/reports/core/src/lib/pmProxy.test/index/node/stdout.log +0 -0
- package/testeranto/reports/core/src/lib/pmProxy.test/index/node/tests.json +162 -0
- package/testeranto/reports/core/src/lib/pmProxy.test/index/node/type_errors.txt +78 -0
- package/testeranto/reports/core/src/mothership/test/node/exit.log +1 -0
- package/testeranto/reports/core/src/mothership/test/node/lint_errors.txt +0 -0
- package/testeranto/reports/core/src/mothership/test/node/message.txt +17 -0
- package/testeranto/reports/core/src/mothership/test/node/prompt.txt +14 -0
- package/testeranto/reports/core/src/mothership/test/node/stderr.log +27 -0
- package/testeranto/reports/core/src/mothership/test/node/stdout.log +8 -0
- package/testeranto/reports/core/src/mothership/test/node/tests.json +36 -0
- package/testeranto/reports/core/src/mothership/test/node/type_errors.txt +38 -0
- package/testeranto/reports/core/summary.json +109 -4
- package/testeranto.config.ts +64 -34
- package/tsc.log +356 -210
- package/tsconfig.common.json +4 -2
- package/tsconfig.json +9 -7
- package/tsconfig.module.json +3 -2
- package/tsconfig.types.json +3 -1
- package/videos/download-smil-xsd.sh +29 -0
- package/videos/project0/index.md +72 -0
- package/videos/project0/narration.json +7 -0
- package/videos/project0/narration.ssml +58 -0
- package/videos/project0/package.json +21 -0
- package/videos/project0/presentation.smil +25 -0
- package/videos/project0/smil30/SMIL-anim.mod.xsd +163 -0
- package/videos/project0/smil30/SMIL-anim.mod.xsd.1 +163 -0
- package/videos/project0/smil30/SMIL-anim.mod.xsd.2 +163 -0
- package/videos/project0/smil30/SMIL-control.mod.xsd +73 -0
- package/videos/project0/smil30/SMIL-control.mod.xsd.1 +73 -0
- package/videos/project0/smil30/SMIL-control.mod.xsd.2 +73 -0
- package/videos/project0/smil30/SMIL-layout.mod.xsd +149 -0
- package/videos/project0/smil30/SMIL-layout.mod.xsd.1 +149 -0
- package/videos/project0/smil30/SMIL-layout.mod.xsd.2 +149 -0
- package/videos/project0/smil30/SMIL-link.mod.xsd +145 -0
- package/videos/project0/smil30/SMIL-link.mod.xsd.1 +145 -0
- package/videos/project0/smil30/SMIL-link.mod.xsd.2 +145 -0
- package/videos/project0/smil30/SMIL-media.mod.xsd +1646 -0
- package/videos/project0/smil30/SMIL-media.mod.xsd.1 +1646 -0
- package/videos/project0/smil30/SMIL-media.mod.xsd.2 +1646 -0
- package/videos/project0/smil30/SMIL-metainformation.mod.xsd +45 -0
- package/videos/project0/smil30/SMIL-metainformation.mod.xsd.1 +45 -0
- package/videos/project0/smil30/SMIL-metainformation.mod.xsd.2 +45 -0
- package/videos/project0/smil30/SMIL-smiltext.mod.xsd +353 -0
- package/videos/project0/smil30/SMIL-smiltext.mod.xsd.1 +353 -0
- package/videos/project0/smil30/SMIL-smiltext.mod.xsd.2 +353 -0
- package/videos/project0/smil30/SMIL-state.mod.xsd +133 -0
- package/videos/project0/smil30/SMIL-state.mod.xsd.1 +133 -0
- package/videos/project0/smil30/SMIL-state.mod.xsd.2 +133 -0
- package/videos/project0/smil30/SMIL-struct.mod.xsd +70 -0
- package/videos/project0/smil30/SMIL-struct.mod.xsd.1 +70 -0
- package/videos/project0/smil30/SMIL-struct.mod.xsd.2 +70 -0
- package/videos/project0/smil30/SMIL-timing.mod.xsd +105 -0
- package/videos/project0/smil30/SMIL-timing.mod.xsd.1 +105 -0
- package/videos/project0/smil30/SMIL-timing.mod.xsd.2 +105 -0
- package/videos/project0/smil30/SMIL-transition.mod.xsd +229 -0
- package/videos/project0/smil30/SMIL-transition.mod.xsd.1 +229 -0
- package/videos/project0/smil30/SMIL-transition.mod.xsd.2 +229 -0
- package/videos/project0/smil30/SMIL.xsd +63 -0
- package/videos/project0/smil30/SMIL.xsd.1 +63 -0
- package/videos/project0/smil30/SMIL.xsd.2 +63 -0
- package/videos/project0/smil30/its.xsd +42 -0
- package/videos/project0/smil30/its.xsd.1 +42 -0
- package/videos/project0/smil30/its.xsd.2 +42 -0
- package/videos/project0/smil30/smil-attribs-1.mod.xsd +610 -0
- package/videos/project0/smil30/smil-attribs-1.mod.xsd.1 +610 -0
- package/videos/project0/smil30/smil-attribs-1.mod.xsd.2 +610 -0
- package/videos/project0/smil30/smil-datatypes-1.mod.xsd +72 -0
- package/videos/project0/smil30/smil-datatypes-1.mod.xsd.1 +72 -0
- package/videos/project0/smil30/smil-datatypes-1.mod.xsd.2 +72 -0
- package/videos/project0/smil30/smil-framework-1.mod.xsd +45 -0
- package/videos/project0/smil30/smil-framework-1.mod.xsd.1 +45 -0
- package/videos/project0/smil30/smil-framework-1.mod.xsd.2 +45 -0
- package/videos/project0/smil30/smil-profile-model-1.mod.xsd +1331 -0
- package/videos/project0/smil30/smil-profile-model-1.mod.xsd.1 +1331 -0
- package/videos/project0/smil30/smil-qname-1.mod.xsd +121 -0
- package/videos/project0/smil30/smil-qname-1.mod.xsd.1 +121 -0
- package/videos/project0/smil30/xml.xsd +16 -0
- package/videos/project0/smil30/xml.xsd.1 +16 -0
- package/videos/project0/smil30/xml.xsd.2 +16 -0
- package/videos/project0/smil30.xsd +137 -0
- package/videos/project0/src/audio/metadata.json +5 -0
- package/videos/project0/src/audio/narration.mp3 +0 -0
- package/videos/project0/src/motion-canvas.d.ts +1 -0
- package/videos/project0/src/project.meta +31 -0
- package/videos/project0/src/project.ts +13 -0
- package/videos/project0/src/scenes/example.meta +5 -0
- package/videos/project0/src/scenes/scene1.meta +3 -0
- package/videos/project0/src/scenes/scene1.tsx +129 -0
- package/videos/project0/src/scenes/scene2.tsx +132 -0
- package/videos/project0/src/scenes/scene3.meta +26 -0
- package/videos/project0/src/scenes/scene3.tsx +188 -0
- package/videos/project0/tsconfig.json +4 -0
- package/videos/project0/vite.config.ts +10 -0
- package/videos/trash/output/project.mp4 +0 -0
- package/videos/trash/text.mp4 +0 -0
- package/videos/trash/video/project.tsx +549 -0
- package/videos/trash/video/render.ts +15 -0
- package/videos/trash/vite.config.ts +10 -0
- package/videos/tts.js +109 -0
- 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.d.ts +0 -14
- package/dist/types/src/components/pure/ProjectPageView.test/adapter.d.ts +0 -3
- package/dist/types/src/components/pure/ProjectPageView.test/types.d.ts +0 -39
- package/dist/types/src/lib/baseBuilder.test/baseBuilder.test.pure.d.ts +0 -3
- package/dist/types/testeranto.config.d.ts +0 -3
- package/docs/testing.ai.txt +0 -106
- 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/lib/dailyAnimation.ts +0 -147
- 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/suite-0/given-basicRender/then-0/butThen/happyPath.png +0 -0
- /package/dist/common/src/{NavBar.js → components/pure/NavBar.js} +0 -0
- /package/dist/{types/src/ReportServer.d.ts → module/src/components/SunriseAnimation.test/types.js} +0 -0
- /package/dist/{types/src/build.d.ts → module/src/components/pure/FeaturesReporterView.test/types.js} +0 -0
- /package/dist/module/src/{NavBar.js → components/pure/NavBar.js} +0 -0
- /package/dist/types/{src/CoreTypes.d.ts → CoreTypes.d.ts} +0 -0
- /package/dist/types/{src/Init.d.ts → Init.d.ts} +0 -0
- /package/dist/types/{src/Node.d.ts → Node.d.ts} +0 -0
- /package/dist/types/{src/NodeSidecar.d.ts → NodeSidecar.d.ts} +0 -0
- /package/dist/types/{src/PM → PM}/PM_WithEslintAndTsc.d.ts +0 -0
- /package/dist/types/{src/PM → PM}/__tests__/nodeSidecar.testeranto.d.ts +0 -0
- /package/dist/types/{src/PM → PM}/__tests__/pureSidecar.testeranto.d.ts +0 -0
- /package/dist/types/{src/PM → PM}/__tests__/webSidecar.testeranto.d.ts +0 -0
- /package/dist/types/{src/PM → PM}/base.d.ts +0 -0
- /package/dist/types/{src/PM → PM}/index.d.ts +0 -0
- /package/dist/types/{src/components/SunriseAnimation.test/implementation.d.ts → PM/layers/base/PM_Base.d.ts} +0 -0
- /package/dist/types/{src/components/SunriseAnimation.test/index.d.ts → PM/layers/base/components/PageOperations.d.ts} +0 -0
- /package/dist/types/{src/components/SunriseAnimation.test/interface.d.ts → PM/layers/base/components/PageOperations.testeranto.d.ts} +0 -0
- /package/dist/types/{src/components/SunriseAnimation.test/specification.d.ts → PM/layers/linting/components/Linter.d.ts} +0 -0
- /package/dist/types/{src/lib/dailyAnimation.d.ts → PM/layers/linting/components/TypeChecker.d.ts} +0 -0
- /package/dist/types/{src/PM → PM}/node.d.ts +0 -0
- /package/dist/types/{src/PM → PM}/nodeSidecar.d.ts +0 -0
- /package/dist/types/{src/PM → PM}/pureSidecar.d.ts +0 -0
- /package/dist/types/{src/PM → PM}/sidecar.d.ts +0 -0
- /package/dist/types/{src/PM → PM}/webSidecar.d.ts +0 -0
- /package/dist/types/{src/Pure.d.ts → Pure.d.ts} +0 -0
- /package/dist/types/{src/Pure.test.d.ts → Pure.test.d.ts} +0 -0
- /package/dist/types/{src/PureSidecar.d.ts → PureSidecar.d.ts} +0 -0
- /package/dist/types/{src/init-docs.d.ts → ReportServer.d.ts} +0 -0
- /package/dist/types/{src/ReportServer.test.ts → ReportServer.test.ts}/index.d.ts +0 -0
- /package/dist/types/{src/ReportServerLib.d.ts → ReportServerLib.d.ts} +0 -0
- /package/dist/types/{src/Web.d.ts → Web.d.ts} +0 -0
- /package/dist/types/{src/WebSidecar.d.ts → WebSidecar.d.ts} +0 -0
- /package/dist/types/{src/run.d.ts → build.d.ts} +0 -0
- /package/dist/types/{src/components → components}/TestStatusBadge.d.ts +0 -0
- /package/dist/types/{src/components/pure/ProjectPageView.test → components/pure/AppFrame.test}/specification.d.ts +0 -0
- /package/dist/types/{src/components/pure/ProjectPageView.test → components/pure/FeaturesReporterView.test}/implementation.d.ts +0 -0
- /package/dist/types/{src → components/pure}/NavBar.d.ts +0 -0
- /package/dist/types/{src/defaultConfig.d.ts → defaultConfig.d.ts} +0 -0
- /package/dist/types/{src/esbuildConfigs → esbuildConfigs}/consoleDetectorPlugin.d.ts +0 -0
- /package/dist/types/{src/esbuildConfigs → esbuildConfigs}/eslint-formatter-testeranto.d.ts +0 -0
- /package/dist/types/{src/esbuildConfigs → esbuildConfigs}/featuresPlugin.d.ts +0 -0
- /package/dist/types/{src/esbuildConfigs → esbuildConfigs}/index.d.ts +0 -0
- /package/dist/types/{src/esbuildConfigs → esbuildConfigs}/inputFilesPlugin.d.ts +0 -0
- /package/dist/types/{src/esbuildConfigs → esbuildConfigs}/nativeImportDetectorPlugin.d.ts +0 -0
- /package/dist/types/{src/esbuildConfigs → esbuildConfigs}/node.d.ts +0 -0
- /package/dist/types/{src/esbuildConfigs → esbuildConfigs}/pure.d.ts +0 -0
- /package/dist/types/{src/esbuildConfigs → esbuildConfigs}/rebuildPlugin.d.ts +0 -0
- /package/dist/types/{src/esbuildConfigs → esbuildConfigs}/web.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/BaseSuite.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/BaseSuite.test/mock.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/BaseSuite.test/node.test.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/BaseSuite.test/pure.test.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/BaseSuite.test/test.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/BaseSuite.test/web.test.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/Sidecar.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/abstractBase.test/MockThen.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/abstractBase.test/MockWhen.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/abstractBase.test/adapter.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/abstractBase.test/implementation.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/abstractBase.test/index.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/abstractBase.test/specification.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/abstractBase.test/types.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/baseBuilder.test/baseBuilder.test.adapter.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/baseBuilder.test/baseBuilder.test.implementation.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/baseBuilder.test/baseBuilder.test.mock.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/baseBuilder.test/baseBuilder.test.node.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/baseBuilder.test/baseBuilder.test.specification.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/baseBuilder.test/baseBuilder.test.types.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/baseBuilder.test/baseBuilder.test.web.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/basebuilder.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/classBuilder.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/classBuilder.test/classBuilder.test.adapter.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/classBuilder.test/classBuilder.test.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/classBuilder.test/classBuilder.test.implementation.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/classBuilder.test/classBuilder.test.specification.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/classBuilder.test/classBuilder.test.types.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/classBuilder.test/mock.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/core.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/core.test/MockCore.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/core.test/core.test.adapter.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/core.test/core.test.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/core.test/core.test.implementation.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/core.test/core.test.specification.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/core.test/core.test.types.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/mocks.test.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/pmProxy.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/pmProxy.test/adapter.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/pmProxy.test/implementation.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/pmProxy.test/index.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/pmProxy.test/mockPM.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/pmProxy.test/mockPMBase.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/pmProxy.test/specification.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/pmProxy.test/types.d.ts +0 -0
- /package/dist/types/{src/lib → lib}/types.d.ts +0 -0
- /package/dist/types/{src/mothership → mothership}/index.d.ts +0 -0
- /package/dist/types/{src/mothership → mothership}/test.d.ts +0 -0
- /package/dist/types/{src/utils → utils}/buildTemplates.d.ts +0 -0
- /package/dist/types/{src/utils → utils}/queue.d.ts +0 -0
- /package/dist/types/{src/utils.d.ts → utils.d.ts} +0 -0
- /package/src/{NavBar.tsx → components/pure/NavBar.tsx} +0 -0
|
@@ -1,9 +1,61 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
1
2
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import { NavBar } from '
|
|
3
|
+
import { Container, Row, Col, Nav, Alert, Button } from 'react-bootstrap';
|
|
4
|
+
import { NavBar } from './NavBar';
|
|
4
5
|
import { TestStatusBadge } from '../TestStatusBadge';
|
|
5
|
-
export const TestPageView = ({
|
|
6
|
-
|
|
6
|
+
export const TestPageView = ({ projectName, testName, decodedTestPath, runtime, testsExist, errorCounts, logs, }) => {
|
|
7
|
+
const [activeTab, setActiveTab] = React.useState('tests.json');
|
|
8
|
+
const renderTestResults = (testData) => {
|
|
9
|
+
return (React.createElement("div", { className: "test-results" }, testData.givens.map((given, i) => (React.createElement("div", { key: i, className: "mb-4 card" },
|
|
10
|
+
React.createElement("div", { className: "card-header bg-primary text-white" },
|
|
11
|
+
React.createElement("div", { className: "d-flex justify-content-between align-items-center" },
|
|
12
|
+
React.createElement("div", null,
|
|
13
|
+
React.createElement("h4", null,
|
|
14
|
+
"Given: ",
|
|
15
|
+
given.name),
|
|
16
|
+
given.features && given.features.length > 0 && (React.createElement("div", { className: "mt-1" },
|
|
17
|
+
React.createElement("small", null, "Features:"),
|
|
18
|
+
React.createElement("ul", { className: "list-unstyled" }, given.features.map((feature, fi) => (React.createElement("li", { key: fi }, feature.startsWith('http') ? (React.createElement("a", { href: feature, target: "_blank", rel: "noopener noreferrer", className: "text-white" }, new URL(feature).hostname)) : (React.createElement("span", { className: "text-white" }, feature))))))))),
|
|
19
|
+
given.artifacts && given.artifacts.length > 0 && (React.createElement("div", { className: "dropdown" },
|
|
20
|
+
React.createElement("button", { className: "btn btn-sm btn-light dropdown-toggle", type: "button", "data-bs-toggle": "dropdown" },
|
|
21
|
+
"Artifacts (",
|
|
22
|
+
given.artifacts.length,
|
|
23
|
+
")"),
|
|
24
|
+
React.createElement("ul", { className: "dropdown-menu dropdown-menu-end" }, given.artifacts.map((artifact, ai) => (React.createElement("li", { key: ai },
|
|
25
|
+
React.createElement("a", { className: "dropdown-item", href: `reports/${projectName}/${testName.split('.').slice(0, -1).join('.')}/${runtime}/${artifact}`, target: "_blank", rel: "noopener noreferrer" }, artifact.split('/').pop()))))))))),
|
|
26
|
+
React.createElement("div", { className: "card-body" },
|
|
27
|
+
given.whens.map((when, j) => (React.createElement("div", { key: `w-${j}`, className: `p-3 mb-2 ${when.error ? 'bg-danger text-white' : 'bg-success text-white'}` },
|
|
28
|
+
React.createElement("div", { className: "d-flex justify-content-between align-items-start" },
|
|
29
|
+
React.createElement("div", null,
|
|
30
|
+
React.createElement("div", null,
|
|
31
|
+
React.createElement("strong", null, "When:"),
|
|
32
|
+
" ",
|
|
33
|
+
when.name,
|
|
34
|
+
when.features && when.features.length > 0 && (React.createElement("div", { className: "mt-2" },
|
|
35
|
+
React.createElement("small", null, "Features:"),
|
|
36
|
+
React.createElement("ul", { className: "list-unstyled" }, when.features.map((feature, fi) => (React.createElement("li", { key: fi }, feature.startsWith('http') ? (React.createElement("a", { href: feature, target: "_blank", rel: "noopener noreferrer" }, new URL(feature).hostname)) : (feature))))))),
|
|
37
|
+
when.error && React.createElement("pre", { className: "mt-2" }, when.error))),
|
|
38
|
+
when.artifacts && when.artifacts.length > 0 && (React.createElement("div", { className: "ms-3" },
|
|
39
|
+
React.createElement("strong", null, "Artifacts:"),
|
|
40
|
+
React.createElement("ul", { className: "list-unstyled" }, when.artifacts.map((artifact, ai) => (React.createElement("li", { key: ai },
|
|
41
|
+
React.createElement("a", { href: `reports/${projectName}/${testName.split('.').slice(0, -1).join('.')}/${runtime}/${artifact}`, target: "_blank", className: "text-white", rel: "noopener noreferrer" }, artifact.split('/').pop()))))))))))),
|
|
42
|
+
given.thens.map((then, k) => (React.createElement("div", { key: `t-${k}`, className: `p-3 mb-2 ${then.error ? 'bg-danger text-white' : 'bg-success text-white'}` },
|
|
43
|
+
React.createElement("div", { className: "d-flex justify-content-between align-items-start" },
|
|
44
|
+
React.createElement("div", null,
|
|
45
|
+
React.createElement("div", null,
|
|
46
|
+
React.createElement("strong", null, "Then:"),
|
|
47
|
+
" ",
|
|
48
|
+
then.name,
|
|
49
|
+
then.features && then.features.length > 0 && (React.createElement("div", { className: "mt-2" },
|
|
50
|
+
React.createElement("small", null, "Features:"),
|
|
51
|
+
React.createElement("ul", { className: "list-unstyled" }, then.features.map((feature, fi) => (React.createElement("li", { key: fi }, feature.startsWith('http') ? (React.createElement("a", { href: feature, target: "_blank", rel: "noopener noreferrer" }, new URL(feature).hostname)) : (feature))))))),
|
|
52
|
+
then.error && React.createElement("pre", { className: "mt-2" }, then.error))),
|
|
53
|
+
then.artifacts && then.artifacts.length > 0 && (React.createElement("div", { className: "ms-3" },
|
|
54
|
+
React.createElement("strong", null, "Artifacts:"),
|
|
55
|
+
React.createElement("ul", { className: "list-unstyled" }, then.artifacts.map((artifact, ai) => (React.createElement("li", { key: ai },
|
|
56
|
+
React.createElement("a", { href: `reports/${projectName}/${testName.split('.').slice(0, -1).join('.')}/${runtime}/${artifact}`, target: "_blank", className: "text-white", rel: "noopener noreferrer" }, artifact.split('/').pop())))))))))))))))));
|
|
57
|
+
};
|
|
58
|
+
return (React.createElement(Container, { fluid: true, className: "px-0" },
|
|
7
59
|
React.createElement(NavBar, { title: decodedTestPath, backLink: `/projects/${projectName}`, navItems: [
|
|
8
60
|
{
|
|
9
61
|
label: '',
|
|
@@ -14,34 +66,7 @@ export const TestPageView = ({ route, setRoute, navigate, projectName, testName,
|
|
|
14
66
|
text: runtime
|
|
15
67
|
},
|
|
16
68
|
className: 'pe-none d-flex align-items-center gap-2'
|
|
17
|
-
}
|
|
18
|
-
{
|
|
19
|
-
to: `#results`,
|
|
20
|
-
label: (React.createElement(TestStatusBadge, { testName: decodedTestPath, testsExist: testsExist, runTimeErrors: errorCounts.runTimeErrors, variant: "compact" })),
|
|
21
|
-
className: !testsExist || errorCounts.runTimeErrors > 0
|
|
22
|
-
? 'text-danger fw-bold'
|
|
23
|
-
: '',
|
|
24
|
-
active: route === 'results'
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
to: `#logs`,
|
|
28
|
-
label: `Runtime logs`,
|
|
29
|
-
active: route === 'logs'
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
to: `#types`,
|
|
33
|
-
label: errorCounts.typeErrors > 0
|
|
34
|
-
? `tsc (❌ * ${errorCounts.typeErrors})`
|
|
35
|
-
: 'tsc ✅ ',
|
|
36
|
-
active: route === 'types'
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
to: `#lint`,
|
|
40
|
-
label: errorCounts.staticErrors > 0
|
|
41
|
-
? `eslint (❌ *${errorCounts.staticErrors}) `
|
|
42
|
-
: 'eslint ✅',
|
|
43
|
-
active: route === 'lint'
|
|
44
|
-
},
|
|
69
|
+
}
|
|
45
70
|
], rightContent: React.createElement(Button, { variant: "info", onClick: async () => {
|
|
46
71
|
try {
|
|
47
72
|
const promptPath = `testeranto/reports/${projectName}/${testName.split('.').slice(0, -1).join('.')}/${runtime}/prompt.txt`;
|
|
@@ -55,94 +80,48 @@ export const TestPageView = ({ route, setRoute, navigate, projectName, testName,
|
|
|
55
80
|
console.error("Copy failed:", err);
|
|
56
81
|
}
|
|
57
82
|
}, className: "ms-2" }, "\uD83E\uDD16") }),
|
|
58
|
-
React.createElement(
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
83
|
+
React.createElement(Row, { className: "g-0" },
|
|
84
|
+
React.createElement(Col, { sm: 3, className: "border-end" },
|
|
85
|
+
React.createElement(Nav, { variant: "pills", className: "flex-column" }, Object.keys(logs).map((logName) => {
|
|
86
|
+
var _a;
|
|
87
|
+
const displayName = logName.replace('.json', '').replace(/_/g, ' ');
|
|
88
|
+
let statusIndicator = null;
|
|
89
|
+
// Add error indicators for specific log types
|
|
90
|
+
if (logName === 'type_errors.txt' && errorCounts.typeErrors > 0) {
|
|
91
|
+
statusIndicator = React.createElement("span", { className: "ms-1" },
|
|
92
|
+
"\u274C ",
|
|
93
|
+
errorCounts.typeErrors);
|
|
94
|
+
}
|
|
95
|
+
else if (logName === 'lint_errors.txt' && errorCounts.staticErrors > 0) {
|
|
96
|
+
statusIndicator = React.createElement("span", { className: "ms-1" },
|
|
97
|
+
"\u274C ",
|
|
98
|
+
errorCounts.staticErrors);
|
|
99
|
+
}
|
|
100
|
+
else if (logName === 'stderr.log' && errorCounts.runTimeErrors > 0) {
|
|
101
|
+
statusIndicator = React.createElement("span", { className: "ms-1" },
|
|
102
|
+
"\u274C ",
|
|
103
|
+
errorCounts.runTimeErrors);
|
|
104
|
+
}
|
|
105
|
+
else if (logName === 'exit.log' && ((_a = logs['exit.log']) === null || _a === void 0 ? void 0 : _a.trim()) !== '0') {
|
|
106
|
+
statusIndicator = React.createElement("span", { className: "ms-1" }, "\u26A0\uFE0F");
|
|
107
|
+
}
|
|
108
|
+
else if (logName === 'tests.json' && logs['tests.json']) {
|
|
109
|
+
statusIndicator = React.createElement("div", { className: "ms-1" },
|
|
110
|
+
React.createElement(TestStatusBadge, { testName: decodedTestPath, testsExist: testsExist, runTimeErrors: errorCounts.runTimeErrors, typeErrors: errorCounts.typeErrors, staticErrors: errorCounts.staticErrors, variant: "compact", className: "mt-1" }));
|
|
111
|
+
}
|
|
112
|
+
return (React.createElement(Nav.Item, { key: logName },
|
|
113
|
+
React.createElement(Nav.Link, { eventKey: logName, active: activeTab === logName, onClick: () => setActiveTab(logName), className: "d-flex flex-column align-items-start" },
|
|
114
|
+
React.createElement("div", { className: "d-flex justify-content-between w-100" },
|
|
115
|
+
React.createElement("span", { className: "text-capitalize" }, displayName),
|
|
116
|
+
statusIndicator))));
|
|
117
|
+
}))),
|
|
118
|
+
React.createElement(Col, { sm: 9 },
|
|
119
|
+
React.createElement("div", { className: "p-3" }, !testsExist && activeTab === 'tests.json' ? (React.createElement(Alert, { variant: "danger" },
|
|
66
120
|
React.createElement("h4", null, "Tests did not run to completion"),
|
|
67
|
-
React.createElement("p", null, "The test results file (tests.json) was not found or could not be loaded.")
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
React.createElement("div", { className: "card-header bg-primary text-white" },
|
|
74
|
-
React.createElement("div", { className: "d-flex justify-content-between align-items-center" },
|
|
75
|
-
React.createElement("div", null,
|
|
76
|
-
React.createElement("h4", null,
|
|
77
|
-
"Given: ",
|
|
78
|
-
given.name),
|
|
79
|
-
((_a = given.features) === null || _a === void 0 ? void 0 : _a.length) > 0 && (React.createElement("div", { className: "mt-1" },
|
|
80
|
-
React.createElement("small", null, "Features:"),
|
|
81
|
-
React.createElement("ul", { className: "list-unstyled" }, given.features.map((feature, fi) => (React.createElement("li", { key: fi }, feature.startsWith('http') ? (React.createElement("a", { href: feature, target: "_blank", rel: "noopener noreferrer", className: "text-white" }, new URL(feature).hostname)) : (React.createElement("span", { className: "text-white" }, feature))))))))),
|
|
82
|
-
((_b = given.artifacts) === null || _b === void 0 ? void 0 : _b.length) > 0 && (React.createElement("div", { className: "dropdown" },
|
|
83
|
-
React.createElement("button", { className: "btn btn-sm btn-light dropdown-toggle", type: "button", "data-bs-toggle": "dropdown" },
|
|
84
|
-
"Artifacts (",
|
|
85
|
-
given.artifacts.length,
|
|
86
|
-
")"),
|
|
87
|
-
React.createElement("ul", { className: "dropdown-menu dropdown-menu-end" }, given.artifacts.map((artifact, ai) => (React.createElement("li", { key: ai },
|
|
88
|
-
React.createElement("a", { className: "dropdown-item", href: `/testeranto/reports/${projectName}/${testName.split('.').slice(0, -1).join('.')}/${runtime}/${artifact}`, target: "_blank", rel: "noopener noreferrer" }, artifact.split('/').pop()))))))))),
|
|
89
|
-
React.createElement("div", { className: "card-body" },
|
|
90
|
-
given.whens.map((when, j) => {
|
|
91
|
-
var _a, _b;
|
|
92
|
-
return (React.createElement("div", { key: `w-${j}`, className: `p-3 mb-2 ${when.error ? 'bg-danger text-white' : 'bg-success text-white'}` },
|
|
93
|
-
React.createElement("div", { className: "d-flex justify-content-between align-items-start" },
|
|
94
|
-
React.createElement("div", null,
|
|
95
|
-
React.createElement("div", null,
|
|
96
|
-
React.createElement("strong", null, "When:"),
|
|
97
|
-
" ",
|
|
98
|
-
when.name,
|
|
99
|
-
((_a = when.features) === null || _a === void 0 ? void 0 : _a.length) > 0 && (React.createElement("div", { className: "mt-2" },
|
|
100
|
-
React.createElement("small", null, "Features:"),
|
|
101
|
-
React.createElement("ul", { className: "list-unstyled" }, when.features.map((feature, fi) => (React.createElement("li", { key: fi }, feature.startsWith('http') ? (React.createElement("a", { href: feature, target: "_blank", rel: "noopener noreferrer" }, new URL(feature).hostname)) : (feature))))))),
|
|
102
|
-
when.error && React.createElement("pre", { className: "mt-2" }, when.error))),
|
|
103
|
-
((_b = when.artifacts) === null || _b === void 0 ? void 0 : _b.length) > 0 && (React.createElement("div", { className: "ms-3" },
|
|
104
|
-
React.createElement("strong", null, "Artifacts:"),
|
|
105
|
-
React.createElement("ul", { className: "list-unstyled" }, when.artifacts.map((artifact, ai) => (React.createElement("li", { key: ai },
|
|
106
|
-
React.createElement("a", { href: `/testeranto/reports/${projectName}/${testName.split('.').slice(0, -1).join('.')}/${runtime}/${artifact}`, target: "_blank", className: "text-white", rel: "noopener noreferrer" }, artifact.split('/').pop()))))))))));
|
|
107
|
-
}),
|
|
108
|
-
given.thens.map((then, k) => {
|
|
109
|
-
var _a, _b;
|
|
110
|
-
return (React.createElement("div", { key: `t-${k}`, className: `p-3 mb-2 ${then.error ? 'bg-danger text-white' : 'bg-success text-white'}` },
|
|
111
|
-
React.createElement("div", { className: "d-flex justify-content-between align-items-start" },
|
|
112
|
-
React.createElement("div", null,
|
|
113
|
-
React.createElement("div", null,
|
|
114
|
-
React.createElement("strong", null, "Then:"),
|
|
115
|
-
" ",
|
|
116
|
-
then.name,
|
|
117
|
-
((_a = then.features) === null || _a === void 0 ? void 0 : _a.length) > 0 && (React.createElement("div", { className: "mt-2" },
|
|
118
|
-
React.createElement("small", null, "Features:"),
|
|
119
|
-
React.createElement("ul", { className: "list-unstyled" }, then.features.map((feature, fi) => (React.createElement("li", { key: fi }, feature.startsWith('http') ? (React.createElement("a", { href: feature, target: "_blank", rel: "noopener noreferrer" }, new URL(feature).hostname)) : (feature))))))),
|
|
120
|
-
then.error && React.createElement("pre", { className: "mt-2" }, then.error))),
|
|
121
|
-
((_b = then.artifacts) === null || _b === void 0 ? void 0 : _b.length) > 0 && (React.createElement("div", { className: "ms-3" },
|
|
122
|
-
React.createElement("strong", null, "Artifacts:"),
|
|
123
|
-
React.createElement("ul", { className: "list-unstyled" }, then.artifacts.map((artifact, ai) => (React.createElement("li", { key: ai },
|
|
124
|
-
React.createElement("a", { href: `/testeranto/reports/${projectName}/${testName.split('.').slice(0, -1).join('.')}/${runtime}/${artifact}`, target: "_blank", className: "text-white", rel: "noopener noreferrer" }, artifact.split('/').pop()))))))))));
|
|
125
|
-
}))));
|
|
126
|
-
}))) : (React.createElement(Alert, { variant: "warning" }, "No test results found"))),
|
|
127
|
-
React.createElement(Tab.Pane, { eventKey: "logs" }, logs === undefined ? (React.createElement(Alert, { variant: "danger" },
|
|
128
|
-
React.createElement("h4", null, "Logs file missing"),
|
|
129
|
-
React.createElement("p", null, "The runtime logs file (logs.txt) was not found."),
|
|
130
|
-
React.createElement("p", null, "This suggests the test may not have executed properly."))) : logs === '' ? (React.createElement(Alert, { variant: "success" },
|
|
131
|
-
React.createElement("h4", null, "No runtime logs"),
|
|
132
|
-
React.createElement("p", null, "The test executed successfully with no log output."))) : (React.createElement("pre", { className: "bg-dark text-white p-3" }, logs))),
|
|
133
|
-
React.createElement(Tab.Pane, { eventKey: "types" }, typeErrors ? (React.createElement("pre", { className: "bg-dark text-white p-3" }, typeErrors)) : (React.createElement(Alert, { variant: "warning" }, "No type errors found"))),
|
|
134
|
-
React.createElement(Tab.Pane, { eventKey: "lint" }, lintErrors ? (React.createElement("pre", { className: "bg-dark text-white p-3" }, lintErrors)) : (React.createElement(Alert, { variant: "warning" }, "No lint errors found"))),
|
|
135
|
-
React.createElement(Tab.Pane, { eventKey: "coverage" },
|
|
136
|
-
React.createElement("div", { className: "coverage-report" },
|
|
137
|
-
React.createElement(Alert, { variant: "info" }, "Coverage reports coming soon!"),
|
|
138
|
-
React.createElement("div", { className: "coverage-stats" },
|
|
139
|
-
React.createElement("div", { className: "stat-card bg-success text-white" },
|
|
140
|
-
React.createElement("h4", null, "85%"),
|
|
141
|
-
React.createElement("p", null, "Lines Covered")),
|
|
142
|
-
React.createElement("div", { className: "stat-card bg-warning text-dark" },
|
|
143
|
-
React.createElement("h4", null, "72%"),
|
|
144
|
-
React.createElement("p", null, "Branches Covered")),
|
|
145
|
-
React.createElement("div", { className: "stat-card bg-info text-white" },
|
|
146
|
-
React.createElement("h4", null, "91%"),
|
|
147
|
-
React.createElement("p", null, "Functions Covered")))))))));
|
|
121
|
+
React.createElement("p", null, "The test results file (tests.json) was not found or could not be loaded."))) : activeTab === 'tests.json' && logs['tests.json'] ? (typeof logs['tests.json'] === 'string'
|
|
122
|
+
? renderTestResults(JSON.parse(logs['tests.json']))
|
|
123
|
+
: renderTestResults(logs['tests.json'])) : logs[activeTab] ? (React.createElement("pre", { className: "bg-dark text-white p-3" },
|
|
124
|
+
React.createElement("code", null, typeof logs[activeTab] === 'string'
|
|
125
|
+
? logs[activeTab]
|
|
126
|
+
: JSON.stringify(logs[activeTab], null, 2)))) : (React.createElement(Alert, { variant: "info" }, "No content available for this log")))))));
|
|
148
127
|
};
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-empty-object-type */
|
|
2
|
+
import { assert } from "chai";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import * as ReactDom from "react-dom/client";
|
|
5
|
+
const mockTestData = {
|
|
6
|
+
name: "Test Suite",
|
|
7
|
+
givens: [
|
|
8
|
+
{
|
|
9
|
+
name: "Given Scenario",
|
|
10
|
+
whens: [{ name: "When Action" }],
|
|
11
|
+
thens: [{ name: "Then Assertion" }],
|
|
12
|
+
},
|
|
13
|
+
],
|
|
14
|
+
};
|
|
15
|
+
export const implementation = {
|
|
16
|
+
suites: {
|
|
17
|
+
Default: "TestPageView basic rendering",
|
|
18
|
+
Navigation: "TestPageView navigation behavior",
|
|
19
|
+
ErrorStates: "TestPageView error handling",
|
|
20
|
+
},
|
|
21
|
+
givens: {
|
|
22
|
+
Default: () => ({
|
|
23
|
+
route: "results",
|
|
24
|
+
setRoute: () => { },
|
|
25
|
+
navigate: () => { },
|
|
26
|
+
projectName: "test-project",
|
|
27
|
+
testName: "test-suite.test.ts",
|
|
28
|
+
decodedTestPath: "test-suite",
|
|
29
|
+
runtime: "node",
|
|
30
|
+
testData: mockTestData,
|
|
31
|
+
logs: "Test logs content",
|
|
32
|
+
typeErrors: "",
|
|
33
|
+
lintErrors: "",
|
|
34
|
+
testsExist: true,
|
|
35
|
+
errorCounts: {
|
|
36
|
+
runTimeErrors: 0, // BDD test failures
|
|
37
|
+
typeErrors: 0, // Type checker errors
|
|
38
|
+
staticErrors: 0, // Linter errors
|
|
39
|
+
},
|
|
40
|
+
}),
|
|
41
|
+
WithErrors: () => ({
|
|
42
|
+
route: "results",
|
|
43
|
+
setRoute: () => { },
|
|
44
|
+
navigate: () => { },
|
|
45
|
+
projectName: "test-project",
|
|
46
|
+
testName: "test-suite.test.ts",
|
|
47
|
+
decodedTestPath: "test-suite",
|
|
48
|
+
runtime: "node",
|
|
49
|
+
testData: null, // Missing tests.json indicates BDD failure
|
|
50
|
+
logs: undefined,
|
|
51
|
+
typeErrors: "Type error message", // Only shown if tests.json exists
|
|
52
|
+
lintErrors: "Lint error message", // Only shown if tests.json exists
|
|
53
|
+
testsExist: false,
|
|
54
|
+
errorCounts: {
|
|
55
|
+
runTimeErrors: 1, // Highest priority - BDD failed
|
|
56
|
+
typeErrors: 2, // Secondary - type errors
|
|
57
|
+
staticErrors: 3, // Lowest priority - linter errors
|
|
58
|
+
},
|
|
59
|
+
}),
|
|
60
|
+
WithLogs: () => ({
|
|
61
|
+
route: "logs",
|
|
62
|
+
setRoute: () => { },
|
|
63
|
+
navigate: () => { },
|
|
64
|
+
projectName: "test-project",
|
|
65
|
+
testName: "test-suite.test.ts",
|
|
66
|
+
decodedTestPath: "test-suite",
|
|
67
|
+
runtime: "node",
|
|
68
|
+
testData: mockTestData,
|
|
69
|
+
logs: "Detailed test logs\nLine 1\nLine 2",
|
|
70
|
+
typeErrors: "",
|
|
71
|
+
lintErrors: "",
|
|
72
|
+
testsExist: true,
|
|
73
|
+
errorCounts: {
|
|
74
|
+
runTimeErrors: 0,
|
|
75
|
+
typeErrors: 0,
|
|
76
|
+
staticErrors: 0,
|
|
77
|
+
},
|
|
78
|
+
}),
|
|
79
|
+
},
|
|
80
|
+
whens: {
|
|
81
|
+
SwitchToTab: (tabName) => (selection) => {
|
|
82
|
+
selection.reactElement = React.cloneElement(selection.reactElement, {
|
|
83
|
+
route: tabName,
|
|
84
|
+
});
|
|
85
|
+
ReactDom.createRoot(selection.domRoot).render(selection.reactElement);
|
|
86
|
+
return selection;
|
|
87
|
+
},
|
|
88
|
+
ClickAiderButton: () => (selection) => {
|
|
89
|
+
const button = selection.container.querySelector('button[aria-label="Aider"]');
|
|
90
|
+
if (button) {
|
|
91
|
+
button.click();
|
|
92
|
+
}
|
|
93
|
+
return selection;
|
|
94
|
+
},
|
|
95
|
+
},
|
|
96
|
+
thens: {
|
|
97
|
+
takeScreenshot: (name) => async ({ htmlElement }, pm) => {
|
|
98
|
+
const p = await pm.page();
|
|
99
|
+
await pm.customScreenShot({ path: name }, p);
|
|
100
|
+
return { htmlElement };
|
|
101
|
+
},
|
|
102
|
+
RendersNavBar: () => async (selection) => {
|
|
103
|
+
const navBar = selection.container.querySelector(".navbar");
|
|
104
|
+
assert.isNotNull(navBar);
|
|
105
|
+
return selection;
|
|
106
|
+
},
|
|
107
|
+
ShowsActiveTab: (tabName) => async (selection) => {
|
|
108
|
+
const activeTab = selection.container.querySelector(".tab-pane.active");
|
|
109
|
+
assert.include(activeTab === null || activeTab === void 0 ? void 0 : activeTab.textContent, tabName);
|
|
110
|
+
return selection;
|
|
111
|
+
},
|
|
112
|
+
ShowsErrorCounts: () => async (selection) => {
|
|
113
|
+
const badges = selection.container.querySelectorAll(".badge");
|
|
114
|
+
// First check for BDD failures
|
|
115
|
+
if (!selection.testsExist) {
|
|
116
|
+
assert.isAbove(badges.length, 0);
|
|
117
|
+
const bddBadge = selection.container.querySelector(".badge.bg-danger");
|
|
118
|
+
assert.isNotNull(bddBadge);
|
|
119
|
+
}
|
|
120
|
+
// Then check type errors if BDD passed
|
|
121
|
+
else if (selection.errorCounts.typeErrors > 0) {
|
|
122
|
+
const typeBadge = selection.container.querySelector(".badge.bg-warning");
|
|
123
|
+
assert.isNotNull(typeBadge);
|
|
124
|
+
}
|
|
125
|
+
// Finally check linter errors if both above passed
|
|
126
|
+
else if (selection.errorCounts.staticErrors > 0) {
|
|
127
|
+
const lintBadge = selection.container.querySelector(".badge.bg-info");
|
|
128
|
+
assert.isNotNull(lintBadge);
|
|
129
|
+
}
|
|
130
|
+
return selection;
|
|
131
|
+
},
|
|
132
|
+
ShowsTestResults: () => async (selection) => {
|
|
133
|
+
// Only expect test results if BDD tests passed
|
|
134
|
+
if (selection.testsExist) {
|
|
135
|
+
const testResults = selection.container.querySelector(".test-results");
|
|
136
|
+
assert.isNotNull(testResults);
|
|
137
|
+
}
|
|
138
|
+
return selection;
|
|
139
|
+
},
|
|
140
|
+
ShowsLogs: () => async (selection) => {
|
|
141
|
+
const logs = selection.container.querySelector("pre");
|
|
142
|
+
assert.isNotNull(logs);
|
|
143
|
+
return selection;
|
|
144
|
+
},
|
|
145
|
+
ShowsTypeErrors: () => async (selection) => {
|
|
146
|
+
const typeErrors = selection.container.querySelector("#types-tab");
|
|
147
|
+
assert.isNotNull(typeErrors);
|
|
148
|
+
return selection;
|
|
149
|
+
},
|
|
150
|
+
ShowsLintErrors: () => async (selection) => {
|
|
151
|
+
const lintErrors = selection.container.querySelector("#lint-tab");
|
|
152
|
+
assert.isNotNull(lintErrors);
|
|
153
|
+
return selection;
|
|
154
|
+
},
|
|
155
|
+
AiderButtonCopiesCommand: () => async (selection) => {
|
|
156
|
+
Object.assign(navigator, {
|
|
157
|
+
clipboard: {
|
|
158
|
+
writeText: jest.fn().mockResolvedValue(undefined),
|
|
159
|
+
},
|
|
160
|
+
});
|
|
161
|
+
await implementation.whens.ClickAiderButton()(selection);
|
|
162
|
+
assert.isTrue(navigator.clipboard.writeText.called);
|
|
163
|
+
return selection;
|
|
164
|
+
},
|
|
165
|
+
},
|
|
166
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import Testeranto from "testeranto-react/src/react-dom/jsx/web";
|
|
2
|
+
import { MemoryRouter } from "react-router-dom";
|
|
3
|
+
import { implementation } from "./implementation";
|
|
4
|
+
import { specification } from "./specification";
|
|
5
|
+
import { TestPageView } from "../TestPageView";
|
|
6
|
+
import React from "react";
|
|
7
|
+
import "./../../../App.scss";
|
|
8
|
+
const WrappedTestPageView = (props) => (React.createElement(MemoryRouter, null,
|
|
9
|
+
React.createElement(TestPageView, Object.assign({}, props))));
|
|
10
|
+
export default Testeranto(implementation, specification, WrappedTestPageView);
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export const specification = (Suite, Given, When, Then) => {
|
|
2
|
+
return [
|
|
3
|
+
Suite.Default("TestPageView basic rendering", {
|
|
4
|
+
"renders navigation bar": Given.Default([], [], [Then.RendersNavBar()]),
|
|
5
|
+
"shows error counts": Given.Default([], [], [Then.ShowsErrorCounts()]),
|
|
6
|
+
"shows test results when data exists": Given.Default([], [], [Then.takeScreenshot("shot.png"), Then.ShowsTestResults()]),
|
|
7
|
+
}),
|
|
8
|
+
Suite.Navigation("TestPageView navigation behavior", {
|
|
9
|
+
"shows results tab by default": Given.Default([], [], [Then.ShowsActiveTab("results")]),
|
|
10
|
+
"switches to logs tab": Given.Default([], [When.SwitchToTab("logs")], [Then.ShowsActiveTab("logs"), Then.ShowsLogs()]),
|
|
11
|
+
"copies aider command when button clicked": Given.Default([], [When.ClickAiderButton()], [Then.AiderButtonCopiesCommand()]),
|
|
12
|
+
}),
|
|
13
|
+
Suite.ErrorStates("TestPageView error handling", {
|
|
14
|
+
"shows error state when tests fail": Given.WithErrors([], [], [
|
|
15
|
+
Then.ShowsErrorCounts(),
|
|
16
|
+
Then.ShowsTypeErrors(),
|
|
17
|
+
Then.ShowsLintErrors(),
|
|
18
|
+
]),
|
|
19
|
+
"shows logs when available": Given.WithLogs([], [], [Then.ShowsLogs()]),
|
|
20
|
+
}),
|
|
21
|
+
];
|
|
22
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export const ThemeCard = ({ theme, handleThemeChange, value, title, description, style, }) => (React.createElement("div", { className: "col-md-4" },
|
|
3
|
+
React.createElement("div", { className: `card theme-card ${theme === value ? "border-primary" : ""}`, onClick: () => handleThemeChange({
|
|
4
|
+
target: { value },
|
|
5
|
+
}), style: style },
|
|
6
|
+
React.createElement("div", { className: "card-body text-center p-3" },
|
|
7
|
+
React.createElement("h5", { className: "card-title mb-1" }, title),
|
|
8
|
+
React.createElement("p", { className: "small text-muted mb-0" }, description)))));
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React, { useEffect, useState } from 'react';
|
|
2
|
+
import { FeaturesReporterView } from '../pure/FeaturesReporterView';
|
|
3
|
+
import { buildTree } from '../../types/features';
|
|
4
|
+
export const FeaturesReporter = () => {
|
|
5
|
+
const [treeData, setTreeData] = useState([]);
|
|
6
|
+
useEffect(() => {
|
|
7
|
+
const fetchProjects = async () => {
|
|
8
|
+
try {
|
|
9
|
+
const response = await fetch('testeranto/projects.json');
|
|
10
|
+
if (!response.ok)
|
|
11
|
+
throw new Error('Failed to fetch projects');
|
|
12
|
+
const projectNames = await response.json();
|
|
13
|
+
setTreeData(buildTree(projectNames));
|
|
14
|
+
}
|
|
15
|
+
catch (error) {
|
|
16
|
+
console.error('Error loading projects:', error);
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
fetchProjects();
|
|
20
|
+
}, []);
|
|
21
|
+
return React.createElement(FeaturesReporterView, { treeData: treeData });
|
|
22
|
+
};
|
|
@@ -59,5 +59,5 @@ export const ProjectPage = () => {
|
|
|
59
59
|
};
|
|
60
60
|
fetchData();
|
|
61
61
|
}, [name]);
|
|
62
|
-
return (React.createElement(ProjectPageView, { summary: summary, nodeLogs: nodeLogs, webLogs: webLogs, pureLogs: pureLogs, config: config, loading: loading, error: error, projectName: projectName,
|
|
62
|
+
return (React.createElement(ProjectPageView, { summary: summary, nodeLogs: nodeLogs, webLogs: webLogs, pureLogs: pureLogs, config: config, loading: loading, error: error, projectName: projectName, activeTab: route, setActiveTab: setRoute }));
|
|
63
63
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
1
2
|
import React, { useEffect, useState } from 'react';
|
|
2
3
|
import { useLocation, useNavigate, useParams } from 'react-router-dom';
|
|
3
|
-
import { TestPageView } from '../pure/TestPageView';
|
|
4
4
|
import { fetchTestData } from '../../utils/api';
|
|
5
|
+
import { TestPageView } from '../pure/TestPageView';
|
|
5
6
|
export const TestPage = () => {
|
|
6
7
|
const navigate = useNavigate();
|
|
7
8
|
const location = useLocation();
|
|
@@ -17,10 +18,10 @@ export const TestPage = () => {
|
|
|
17
18
|
}
|
|
18
19
|
}, [location.hash]);
|
|
19
20
|
const [testName, setTestName] = useState('');
|
|
20
|
-
const [testData, setTestData] = useState(null);
|
|
21
|
-
const [logs, setLogs] = useState(
|
|
22
|
-
const [typeErrors, setTypeErrors] = useState('');
|
|
23
|
-
const [lintErrors, setLintErrors] = useState('');
|
|
21
|
+
// const [testData, setTestData] = useState(null);
|
|
22
|
+
const [logs, setLogs] = useState({});
|
|
23
|
+
// const [typeErrors, setTypeErrors] = useState('');
|
|
24
|
+
// const [lintErrors, setLintErrors] = useState('');
|
|
24
25
|
const [loading, setLoading] = useState(true);
|
|
25
26
|
const [error, setError] = useState(null);
|
|
26
27
|
const [testsExist, setTestsExist] = useState(true);
|
|
@@ -42,11 +43,22 @@ export const TestPage = () => {
|
|
|
42
43
|
const fetchData = async () => {
|
|
43
44
|
try {
|
|
44
45
|
const testResponse = await fetchTestData(projectName, testPath, runtime);
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
46
|
+
console.log("testResponse", testResponse);
|
|
47
|
+
// setTestData(testResponse.testData);
|
|
48
|
+
// setTestsExist(!!testResponse.testData);
|
|
49
|
+
const receivedLogs = await testResponse.logs;
|
|
50
|
+
// Ensure tests.json is properly formatted
|
|
51
|
+
if (receivedLogs['tests.json'] && typeof receivedLogs['tests.json'] === 'string') {
|
|
52
|
+
try {
|
|
53
|
+
receivedLogs['tests.json'] = JSON.parse(receivedLogs['tests.json']);
|
|
54
|
+
}
|
|
55
|
+
catch (e) {
|
|
56
|
+
console.error('Failed to parse tests.json:', e);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
setLogs(receivedLogs);
|
|
60
|
+
// setTypeErrors(testResponse.typeErrors);
|
|
61
|
+
// setLintErrors(testResponse.lintErrors);
|
|
50
62
|
try {
|
|
51
63
|
const summaryResponse = await fetch(`reports/${projectName}/summary.json`);
|
|
52
64
|
if (!summaryResponse.ok)
|
|
@@ -78,5 +90,7 @@ export const TestPage = () => {
|
|
|
78
90
|
};
|
|
79
91
|
fetchData();
|
|
80
92
|
}, []);
|
|
81
|
-
|
|
93
|
+
if (!logs)
|
|
94
|
+
return React.createElement("div", null, "loading...");
|
|
95
|
+
return (React.createElement(TestPageView, { route: route, setRoute: setRoute, navigate: navigate, projectName: projectName, testName: testName, decodedTestPath: decodedTestPath, runtime: runtime, logs: logs, testsExist: testsExist, errorCounts: errorCounts }));
|
|
82
96
|
};
|
|
@@ -26,7 +26,7 @@ export default (config, entryPoints, testName) => {
|
|
|
26
26
|
"util",
|
|
27
27
|
"process",
|
|
28
28
|
"dns",
|
|
29
|
-
], platform: "browser", entryPoints: [...entryPoints], plugins: [
|
|
29
|
+
], platform: "browser", entryPoints: [...entryPoints], loader: config.webLoaders, plugins: [
|
|
30
30
|
featuresPlugin,
|
|
31
31
|
inputFilesPluginFactory,
|
|
32
32
|
polyfillNode({
|
|
@@ -17,11 +17,8 @@ export class MockGiven extends BaseGiven {
|
|
|
17
17
|
}
|
|
18
18
|
export class MockWhen extends BaseWhen {
|
|
19
19
|
async andWhen(store, whenCB, testResource, pm) {
|
|
20
|
-
console.log("[DEBUG] MockWhen - andWhen - input store:", JSON.stringify(store));
|
|
21
20
|
const newStore = Object.assign(Object.assign({}, store), { testSelection: true });
|
|
22
|
-
console.log("[DEBUG] MockWhen - andWhen - calling whenCB");
|
|
23
21
|
const result = await whenCB(newStore);
|
|
24
|
-
console.log("[DEBUG] MockWhen - andWhen - result:", JSON.stringify(result));
|
|
25
22
|
return result;
|
|
26
23
|
}
|
|
27
24
|
addArtifact(name, content) {
|
|
@@ -31,10 +28,6 @@ export class MockWhen extends BaseWhen {
|
|
|
31
28
|
}
|
|
32
29
|
export class MockThen extends BaseThen {
|
|
33
30
|
async butThen(store, thenCB, testResourceConfiguration, pm) {
|
|
34
|
-
console.log("[DEBUG] MockThen - butThen - input store:", JSON.stringify(store));
|
|
35
|
-
if (!store) {
|
|
36
|
-
throw new Error("Store is undefined in butThen");
|
|
37
|
-
}
|
|
38
31
|
// Create test selection with explicit type
|
|
39
32
|
const testSelection = {
|
|
40
33
|
name: store.name,
|
|
@@ -42,10 +35,8 @@ export class MockThen extends BaseThen {
|
|
|
42
35
|
testSelection: store.testSelection || false,
|
|
43
36
|
error: store.error ? true : undefined,
|
|
44
37
|
};
|
|
45
|
-
console.log("[DEBUG] MockThen - passing testSelection:", JSON.stringify(testSelection));
|
|
46
38
|
try {
|
|
47
39
|
const result = await thenCB(testSelection);
|
|
48
|
-
console.log("[DEBUG] MockThen - received result:", JSON.stringify(result));
|
|
49
40
|
if (!result || typeof result.testSelection === "undefined") {
|
|
50
41
|
throw new Error(`Invalid test selection result: ${JSON.stringify(result)}`);
|
|
51
42
|
}
|
|
@@ -62,13 +53,11 @@ export class MockSuite extends BaseSuite {
|
|
|
62
53
|
if (!name) {
|
|
63
54
|
throw new Error("MockSuite requires a non-empty name");
|
|
64
55
|
}
|
|
65
|
-
console.log("[DEBUG] Creating MockSuite with name:", name, "index:", index);
|
|
66
56
|
const suiteName = name || "testSuite"; // Ensure name is never undefined
|
|
67
57
|
super(suiteName, index, {
|
|
68
58
|
testGiven: new MockGiven("testGiven", ["testFeature"], [new MockWhen("testWhen", () => Promise.resolve({ testStore: true }))], [
|
|
69
59
|
new MockThen("testThen", async () => Promise.resolve({ testSelection: true })),
|
|
70
60
|
]),
|
|
71
61
|
});
|
|
72
|
-
console.log("[DEBUG] MockSuite created:", this.name, this.index);
|
|
73
62
|
}
|
|
74
63
|
}
|