@eui/mcp 1.0.3 → 1.3.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/README.md +117 -743
- package/dist/config/__tests__/schema.property.test.d.ts +2 -0
- package/dist/config/__tests__/schema.property.test.d.ts.map +1 -0
- package/dist/config/__tests__/schema.property.test.js +203 -0
- package/dist/config/__tests__/schema.property.test.js.map +1 -0
- package/dist/config/__tests__/schema.test.d.ts +2 -0
- package/dist/config/__tests__/schema.test.d.ts.map +1 -0
- package/dist/config/__tests__/schema.test.js +454 -0
- package/dist/config/__tests__/schema.test.js.map +1 -0
- package/dist/config/loader.js +4 -4
- package/dist/config/loader.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/loader/__tests__/cache-manager.property.test.d.ts +2 -0
- package/dist/loader/__tests__/cache-manager.property.test.d.ts.map +1 -0
- package/dist/loader/__tests__/cache-manager.property.test.js +245 -0
- package/dist/loader/__tests__/cache-manager.property.test.js.map +1 -0
- package/dist/loader/__tests__/cache-manager.test.d.ts +2 -0
- package/dist/loader/__tests__/cache-manager.test.d.ts.map +1 -0
- package/dist/loader/__tests__/cache-manager.test.js +256 -0
- package/dist/loader/__tests__/cache-manager.test.js.map +1 -0
- package/dist/loader/__tests__/documentation-loader.integration.test.d.ts +2 -0
- package/dist/loader/__tests__/documentation-loader.integration.test.d.ts.map +1 -0
- package/dist/loader/__tests__/documentation-loader.integration.test.js +498 -0
- package/dist/loader/__tests__/documentation-loader.integration.test.js.map +1 -0
- package/dist/loader/__tests__/documentation-loader.property.test.d.ts +2 -0
- package/dist/loader/__tests__/documentation-loader.property.test.d.ts.map +1 -0
- package/dist/loader/__tests__/documentation-loader.property.test.js +258 -0
- package/dist/loader/__tests__/documentation-loader.property.test.js.map +1 -0
- package/dist/loader/__tests__/errors.test.d.ts +2 -0
- package/dist/loader/__tests__/errors.test.d.ts.map +1 -0
- package/dist/loader/__tests__/errors.test.js +132 -0
- package/dist/loader/__tests__/errors.test.js.map +1 -0
- package/dist/loader/__tests__/http-client.property.test.d.ts +2 -0
- package/dist/loader/__tests__/http-client.property.test.d.ts.map +1 -0
- package/dist/loader/__tests__/http-client.property.test.js +288 -0
- package/dist/loader/__tests__/http-client.property.test.js.map +1 -0
- package/dist/loader/__tests__/http-client.test.d.ts +2 -0
- package/dist/loader/__tests__/http-client.test.d.ts.map +1 -0
- package/dist/loader/__tests__/http-client.test.js +497 -0
- package/dist/loader/__tests__/http-client.test.js.map +1 -0
- package/dist/loader/__tests__/local-documentation-source.property.test.d.ts +2 -0
- package/dist/loader/__tests__/local-documentation-source.property.test.d.ts.map +1 -0
- package/dist/loader/__tests__/local-documentation-source.property.test.js +373 -0
- package/dist/loader/__tests__/local-documentation-source.property.test.js.map +1 -0
- package/dist/loader/__tests__/local-documentation-source.test.d.ts +2 -0
- package/dist/loader/__tests__/local-documentation-source.test.d.ts.map +1 -0
- package/dist/loader/__tests__/local-documentation-source.test.js +544 -0
- package/dist/loader/__tests__/local-documentation-source.test.js.map +1 -0
- package/dist/loader/__tests__/path-type-detector.property.test.d.ts +2 -0
- package/dist/loader/__tests__/path-type-detector.property.test.d.ts.map +1 -0
- package/dist/loader/__tests__/path-type-detector.property.test.js +245 -0
- package/dist/loader/__tests__/path-type-detector.property.test.js.map +1 -0
- package/dist/loader/__tests__/path-type-detector.test.d.ts +2 -0
- package/dist/loader/__tests__/path-type-detector.test.d.ts.map +1 -0
- package/dist/loader/__tests__/path-type-detector.test.js +390 -0
- package/dist/loader/__tests__/path-type-detector.test.js.map +1 -0
- package/dist/loader/__tests__/remote-documentation-source.property.test.d.ts +2 -0
- package/dist/loader/__tests__/remote-documentation-source.property.test.d.ts.map +1 -0
- package/dist/loader/__tests__/remote-documentation-source.property.test.js +462 -0
- package/dist/loader/__tests__/remote-documentation-source.property.test.js.map +1 -0
- package/dist/loader/__tests__/remote-documentation-source.test.d.ts +2 -0
- package/dist/loader/__tests__/remote-documentation-source.test.d.ts.map +1 -0
- package/dist/loader/__tests__/remote-documentation-source.test.js +707 -0
- package/dist/loader/__tests__/remote-documentation-source.test.js.map +1 -0
- package/dist/loader/remote-documentation-source.d.ts +0 -4
- package/dist/loader/remote-documentation-source.d.ts.map +1 -1
- package/dist/loader/remote-documentation-source.js +1 -4
- package/dist/loader/remote-documentation-source.js.map +1 -1
- package/dist/main.js +0 -0
- package/dist/main.js.map +1 -1
- package/dist/mcp/__tests__/server.property.test.d.ts +2 -0
- package/dist/mcp/__tests__/server.property.test.d.ts.map +1 -0
- package/dist/mcp/__tests__/server.property.test.js +286 -0
- package/dist/mcp/__tests__/server.property.test.js.map +1 -0
- package/dist/mcp/__tests__/server.test.d.ts +2 -0
- package/dist/mcp/__tests__/server.test.d.ts.map +1 -0
- package/dist/mcp/__tests__/server.test.js +101 -0
- package/dist/mcp/__tests__/server.test.js.map +1 -0
- package/dist/mcp/server.d.ts.map +1 -1
- package/dist/mcp/server.js +16 -4
- package/dist/mcp/server.js.map +1 -1
- package/dist/publish/__tests__/publish-utils.test.d.ts +5 -0
- package/dist/publish/__tests__/publish-utils.test.d.ts.map +1 -0
- package/dist/publish/__tests__/publish-utils.test.js +189 -0
- package/dist/publish/__tests__/publish-utils.test.js.map +1 -0
- package/dist/query/__tests__/deprecation-parser.test.d.ts +2 -0
- package/dist/query/__tests__/deprecation-parser.test.d.ts.map +1 -0
- package/dist/query/__tests__/deprecation-parser.test.js +154 -0
- package/dist/query/__tests__/deprecation-parser.test.js.map +1 -0
- package/dist/query/__tests__/deprecation-query.test.d.ts +2 -0
- package/dist/query/__tests__/deprecation-query.test.d.ts.map +1 -0
- package/dist/query/__tests__/deprecation-query.test.js +199 -0
- package/dist/query/__tests__/deprecation-query.test.js.map +1 -0
- package/dist/query/__tests__/index-builder-debug.test.d.ts +2 -0
- package/dist/query/__tests__/index-builder-debug.test.d.ts.map +1 -0
- package/dist/query/__tests__/index-builder-debug.test.js +34 -0
- package/dist/query/__tests__/index-builder-debug.test.js.map +1 -0
- package/dist/query/__tests__/index-builder.property.test.d.ts +2 -0
- package/dist/query/__tests__/index-builder.property.test.d.ts.map +1 -0
- package/dist/query/__tests__/index-builder.property.test.js +422 -0
- package/dist/query/__tests__/index-builder.property.test.js.map +1 -0
- package/dist/query/__tests__/index-builder.test.d.ts +2 -0
- package/dist/query/__tests__/index-builder.test.d.ts.map +1 -0
- package/dist/query/__tests__/index-builder.test.js +55 -0
- package/dist/query/__tests__/index-builder.test.js.map +1 -0
- package/dist/query/__tests__/result-formatter-deprecation.test.d.ts +2 -0
- package/dist/query/__tests__/result-formatter-deprecation.test.d.ts.map +1 -0
- package/dist/query/__tests__/result-formatter-deprecation.test.js +159 -0
- package/dist/query/__tests__/result-formatter-deprecation.test.js.map +1 -0
- package/dist/query/__tests__/result-formatter.integration.test.d.ts +2 -0
- package/dist/query/__tests__/result-formatter.integration.test.d.ts.map +1 -0
- package/dist/query/__tests__/result-formatter.integration.test.js +140 -0
- package/dist/query/__tests__/result-formatter.integration.test.js.map +1 -0
- package/dist/query/__tests__/result-formatter.property.test.d.ts +2 -0
- package/dist/query/__tests__/result-formatter.property.test.d.ts.map +1 -0
- package/dist/query/__tests__/result-formatter.property.test.js +163 -0
- package/dist/query/__tests__/result-formatter.property.test.js.map +1 -0
- package/dist/query/__tests__/result-formatter.test.d.ts +2 -0
- package/dist/query/__tests__/result-formatter.test.d.ts.map +1 -0
- package/dist/query/__tests__/result-formatter.test.js +85 -0
- package/dist/query/__tests__/result-formatter.test.js.map +1 -0
- package/dist/query/__tests__/search-engine.property.test.d.ts +2 -0
- package/dist/query/__tests__/search-engine.property.test.d.ts.map +1 -0
- package/dist/query/__tests__/search-engine.property.test.js +389 -0
- package/dist/query/__tests__/search-engine.property.test.js.map +1 -0
- package/dist/query/deprecation-parser.d.ts +46 -0
- package/dist/query/deprecation-parser.d.ts.map +1 -0
- package/dist/query/deprecation-parser.js +81 -0
- package/dist/query/deprecation-parser.js.map +1 -0
- package/dist/query/deprecation-query.d.ts +19 -0
- package/dist/query/deprecation-query.d.ts.map +1 -0
- package/dist/query/deprecation-query.js +73 -0
- package/dist/query/deprecation-query.js.map +1 -0
- package/dist/query/result-formatter.d.ts +27 -0
- package/dist/query/result-formatter.d.ts.map +1 -1
- package/dist/query/result-formatter.js +64 -5
- package/dist/query/result-formatter.js.map +1 -1
- package/dist/tools/__tests__/deprecation-tools.test.d.ts +2 -0
- package/dist/tools/__tests__/deprecation-tools.test.d.ts.map +1 -0
- package/dist/tools/__tests__/deprecation-tools.test.js +178 -0
- package/dist/tools/__tests__/deprecation-tools.test.js.map +1 -0
- package/dist/tools/__tests__/get-component-docs.property.test.d.ts +2 -0
- package/dist/tools/__tests__/get-component-docs.property.test.d.ts.map +1 -0
- package/dist/tools/__tests__/get-component-docs.property.test.js +594 -0
- package/dist/tools/__tests__/get-component-docs.property.test.js.map +1 -0
- package/dist/tools/__tests__/get-component-docs.test.d.ts +2 -0
- package/dist/tools/__tests__/get-component-docs.test.d.ts.map +1 -0
- package/dist/tools/__tests__/get-component-docs.test.js +137 -0
- package/dist/tools/__tests__/get-component-docs.test.js.map +1 -0
- package/dist/tools/__tests__/get-component-examples.property.test.d.ts +2 -0
- package/dist/tools/__tests__/get-component-examples.property.test.d.ts.map +1 -0
- package/dist/tools/__tests__/get-component-examples.property.test.js +245 -0
- package/dist/tools/__tests__/get-component-examples.property.test.js.map +1 -0
- package/dist/tools/__tests__/get-component-examples.test.d.ts +2 -0
- package/dist/tools/__tests__/get-component-examples.test.d.ts.map +1 -0
- package/dist/tools/__tests__/get-component-examples.test.js +128 -0
- package/dist/tools/__tests__/get-component-examples.test.js.map +1 -0
- package/dist/tools/__tests__/get-component-inputs.property.test.d.ts +2 -0
- package/dist/tools/__tests__/get-component-inputs.property.test.d.ts.map +1 -0
- package/dist/tools/__tests__/get-component-inputs.property.test.js +310 -0
- package/dist/tools/__tests__/get-component-inputs.property.test.js.map +1 -0
- package/dist/tools/__tests__/get-component-inputs.test.d.ts +2 -0
- package/dist/tools/__tests__/get-component-inputs.test.d.ts.map +1 -0
- package/dist/tools/__tests__/get-component-inputs.test.js +245 -0
- package/dist/tools/__tests__/get-component-inputs.test.js.map +1 -0
- package/dist/tools/__tests__/get-component-outputs.property.test.d.ts +2 -0
- package/dist/tools/__tests__/get-component-outputs.property.test.d.ts.map +1 -0
- package/dist/tools/__tests__/get-component-outputs.property.test.js +227 -0
- package/dist/tools/__tests__/get-component-outputs.property.test.js.map +1 -0
- package/dist/tools/__tests__/get-component-outputs.test.d.ts +2 -0
- package/dist/tools/__tests__/get-component-outputs.test.d.ts.map +1 -0
- package/dist/tools/__tests__/get-component-outputs.test.js +189 -0
- package/dist/tools/__tests__/get-component-outputs.test.js.map +1 -0
- package/dist/tools/__tests__/get-library-version.property.test.d.ts +2 -0
- package/dist/tools/__tests__/get-library-version.property.test.d.ts.map +1 -0
- package/dist/tools/__tests__/get-library-version.property.test.js +115 -0
- package/dist/tools/__tests__/get-library-version.property.test.js.map +1 -0
- package/dist/tools/__tests__/get-library-version.test.d.ts +2 -0
- package/dist/tools/__tests__/get-library-version.test.d.ts.map +1 -0
- package/dist/tools/__tests__/get-library-version.test.js +97 -0
- package/dist/tools/__tests__/get-library-version.test.js.map +1 -0
- package/dist/tools/__tests__/list-components.property.test.d.ts +2 -0
- package/dist/tools/__tests__/list-components.property.test.d.ts.map +1 -0
- package/dist/tools/__tests__/list-components.property.test.js +241 -0
- package/dist/tools/__tests__/list-components.property.test.js.map +1 -0
- package/dist/tools/__tests__/list-components.test.d.ts +2 -0
- package/dist/tools/__tests__/list-components.test.d.ts.map +1 -0
- package/dist/tools/__tests__/list-components.test.js +170 -0
- package/dist/tools/__tests__/list-components.test.js.map +1 -0
- package/dist/tools/__tests__/search-components.test.d.ts +2 -0
- package/dist/tools/__tests__/search-components.test.d.ts.map +1 -0
- package/dist/tools/__tests__/search-components.test.js +239 -0
- package/dist/tools/__tests__/search-components.test.js.map +1 -0
- package/dist/tools/get-deprecation-info.d.ts +42 -0
- package/dist/tools/get-deprecation-info.d.ts.map +1 -0
- package/dist/tools/get-deprecation-info.js +55 -0
- package/dist/tools/get-deprecation-info.js.map +1 -0
- package/dist/tools/get-library-version.d.ts +33 -0
- package/dist/tools/get-library-version.d.ts.map +1 -0
- package/dist/tools/get-library-version.js +62 -0
- package/dist/tools/get-library-version.js.map +1 -0
- package/dist/tools/index.d.ts +3 -0
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +3 -0
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/list-deprecated.d.ts +47 -0
- package/dist/tools/list-deprecated.d.ts.map +1 -0
- package/dist/tools/list-deprecated.js +56 -0
- package/dist/tools/list-deprecated.js.map +1 -0
- package/dist/types/compodoc.d.ts +1 -0
- package/dist/types/compodoc.d.ts.map +1 -1
- package/dist/types/deprecation.d.ts +33 -0
- package/dist/types/deprecation.d.ts.map +1 -0
- package/dist/types/deprecation.js +5 -0
- package/dist/types/deprecation.js.map +1 -0
- package/dist/utils/__tests__/credential-masking.property.test.d.ts +2 -0
- package/dist/utils/__tests__/credential-masking.property.test.d.ts.map +1 -0
- package/dist/utils/__tests__/credential-masking.property.test.js +145 -0
- package/dist/utils/__tests__/credential-masking.property.test.js.map +1 -0
- package/dist/utils/__tests__/credential-masking.test.d.ts +2 -0
- package/dist/utils/__tests__/credential-masking.test.d.ts.map +1 -0
- package/dist/utils/__tests__/credential-masking.test.js +188 -0
- package/dist/utils/__tests__/credential-masking.test.js.map +1 -0
- package/dist/utils/__tests__/errors.test.d.ts +2 -0
- package/dist/utils/__tests__/errors.test.d.ts.map +1 -0
- package/dist/utils/__tests__/errors.test.js +110 -0
- package/dist/utils/__tests__/errors.test.js.map +1 -0
- package/dist/utils/__tests__/integration.test.d.ts +2 -0
- package/dist/utils/__tests__/integration.test.d.ts.map +1 -0
- package/dist/utils/__tests__/integration.test.js +142 -0
- package/dist/utils/__tests__/integration.test.js.map +1 -0
- package/dist/utils/__tests__/logger.test.d.ts +2 -0
- package/dist/utils/__tests__/logger.test.d.ts.map +1 -0
- package/dist/utils/__tests__/logger.test.js +119 -0
- package/dist/utils/__tests__/logger.test.js.map +1 -0
- package/dist/utils/__tests__/retry.test.d.ts +2 -0
- package/dist/utils/__tests__/retry.test.d.ts.map +1 -0
- package/dist/utils/__tests__/retry.test.js +84 -0
- package/dist/utils/__tests__/retry.test.js.map +1 -0
- package/dist/utils/credential-masking.js +4 -4
- package/dist/utils/credential-masking.js.map +1 -1
- package/dist/version/__tests__/changelog-commit-grouping.property.test.d.ts +2 -0
- package/dist/version/__tests__/changelog-commit-grouping.property.test.d.ts.map +1 -0
- package/dist/version/__tests__/changelog-commit-grouping.property.test.js +297 -0
- package/dist/version/__tests__/changelog-commit-grouping.property.test.js.map +1 -0
- package/dist/version/__tests__/changelog-commit-parsing.property.test.d.ts +2 -0
- package/dist/version/__tests__/changelog-commit-parsing.property.test.d.ts.map +1 -0
- package/dist/version/__tests__/changelog-commit-parsing.property.test.js +396 -0
- package/dist/version/__tests__/changelog-commit-parsing.property.test.js.map +1 -0
- package/dist/version/__tests__/changelog-file-updates.property.test.d.ts +11 -0
- package/dist/version/__tests__/changelog-file-updates.property.test.d.ts.map +1 -0
- package/dist/version/__tests__/changelog-file-updates.property.test.js +452 -0
- package/dist/version/__tests__/changelog-file-updates.property.test.js.map +1 -0
- package/dist/version/__tests__/dry-run-action.property.test.d.ts +8 -0
- package/dist/version/__tests__/dry-run-action.property.test.d.ts.map +1 -0
- package/dist/version/__tests__/dry-run-action.property.test.js +50 -0
- package/dist/version/__tests__/dry-run-action.property.test.js.map +1 -0
- package/dist/version/__tests__/dry-run-changelog.property.test.d.ts +8 -0
- package/dist/version/__tests__/dry-run-changelog.property.test.d.ts.map +1 -0
- package/dist/version/__tests__/dry-run-changelog.property.test.js +53 -0
- package/dist/version/__tests__/dry-run-changelog.property.test.js.map +1 -0
- package/dist/version/__tests__/dry-run-utils.test.d.ts +7 -0
- package/dist/version/__tests__/dry-run-utils.test.d.ts.map +1 -0
- package/dist/version/__tests__/dry-run-utils.test.js +205 -0
- package/dist/version/__tests__/dry-run-utils.test.js.map +1 -0
- package/dist/version/__tests__/dry-run-version.property.test.d.ts +8 -0
- package/dist/version/__tests__/dry-run-version.property.test.d.ts.map +1 -0
- package/dist/version/__tests__/dry-run-version.property.test.js +59 -0
- package/dist/version/__tests__/dry-run-version.property.test.js.map +1 -0
- package/dist/version/__tests__/git-tag-annotation.property.test.d.ts +11 -0
- package/dist/version/__tests__/git-tag-annotation.property.test.d.ts.map +1 -0
- package/dist/version/__tests__/git-tag-annotation.property.test.js +271 -0
- package/dist/version/__tests__/git-tag-annotation.property.test.js.map +1 -0
- package/dist/version/__tests__/git-tag-format.property.test.d.ts +11 -0
- package/dist/version/__tests__/git-tag-format.property.test.d.ts.map +1 -0
- package/dist/version/__tests__/git-tag-format.property.test.js +411 -0
- package/dist/version/__tests__/git-tag-format.property.test.js.map +1 -0
- package/dist/version/__tests__/git-tag-utils.test.d.ts +2 -0
- package/dist/version/__tests__/git-tag-utils.test.d.ts.map +1 -0
- package/dist/version/__tests__/git-tag-utils.test.js +142 -0
- package/dist/version/__tests__/git-tag-utils.test.js.map +1 -0
- package/dist/version/__tests__/npm-tag-selection.property.test.d.ts +2 -0
- package/dist/version/__tests__/npm-tag-selection.property.test.d.ts.map +1 -0
- package/dist/version/__tests__/npm-tag-selection.property.test.js +79 -0
- package/dist/version/__tests__/npm-tag-selection.property.test.js.map +1 -0
- package/dist/version/__tests__/release-title-format.property.test.d.ts +11 -0
- package/dist/version/__tests__/release-title-format.property.test.d.ts.map +1 -0
- package/dist/version/__tests__/release-title-format.property.test.js +422 -0
- package/dist/version/__tests__/release-title-format.property.test.js.map +1 -0
- package/dist/version/__tests__/release-utils.test.d.ts +7 -0
- package/dist/version/__tests__/release-utils.test.d.ts.map +1 -0
- package/dist/version/__tests__/release-utils.test.js +176 -0
- package/dist/version/__tests__/release-utils.test.js.map +1 -0
- package/dist/version/__tests__/rollback-changelog.property.test.d.ts +8 -0
- package/dist/version/__tests__/rollback-changelog.property.test.d.ts.map +1 -0
- package/dist/version/__tests__/rollback-changelog.property.test.js +61 -0
- package/dist/version/__tests__/rollback-changelog.property.test.js.map +1 -0
- package/dist/version/__tests__/rollback-utils.test.d.ts +7 -0
- package/dist/version/__tests__/rollback-utils.test.d.ts.map +1 -0
- package/dist/version/__tests__/rollback-utils.test.js +74 -0
- package/dist/version/__tests__/rollback-utils.test.js.map +1 -0
- package/dist/version/__tests__/version-manager.property.test.d.ts +2 -0
- package/dist/version/__tests__/version-manager.property.test.d.ts.map +1 -0
- package/dist/version/__tests__/version-manager.property.test.js +143 -0
- package/dist/version/__tests__/version-manager.property.test.js.map +1 -0
- package/dist/version/__tests__/version-manager.test.d.ts +2 -0
- package/dist/version/__tests__/version-manager.test.d.ts.map +1 -0
- package/dist/version/__tests__/version-manager.test.js +203 -0
- package/dist/version/__tests__/version-manager.test.js.map +1 -0
- package/dist/version/version-manager.d.ts.map +1 -1
- package/dist/version/version-manager.js +0 -4
- package/dist/version/version-manager.js.map +1 -1
- package/package.json +1 -1
- package/dist/test-error.ts +0 -1
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import { ResultFormatter } from '../result-formatter';
|
|
2
|
+
describe('ResultFormatter - Deprecation Methods', () => {
|
|
3
|
+
let formatter;
|
|
4
|
+
beforeEach(() => {
|
|
5
|
+
formatter = new ResultFormatter();
|
|
6
|
+
});
|
|
7
|
+
describe('formatDeprecatedList', () => {
|
|
8
|
+
it('should return message when no deprecated items', () => {
|
|
9
|
+
const result = formatter.formatDeprecatedList([], false);
|
|
10
|
+
expect(result).toBe('No deprecated items found.');
|
|
11
|
+
});
|
|
12
|
+
it('should format single deprecated item', () => {
|
|
13
|
+
const items = [
|
|
14
|
+
{
|
|
15
|
+
name: 'OldButton',
|
|
16
|
+
type: 'component',
|
|
17
|
+
deprecationMessage: 'Use NewButton instead',
|
|
18
|
+
},
|
|
19
|
+
];
|
|
20
|
+
const result = formatter.formatDeprecatedList(items, false);
|
|
21
|
+
expect(result).toContain('Found 1 deprecated item(s)');
|
|
22
|
+
expect(result).toContain('## Components');
|
|
23
|
+
expect(result).toContain('### OldButton');
|
|
24
|
+
expect(result).toContain('- **Message**: Use NewButton instead');
|
|
25
|
+
});
|
|
26
|
+
it('should group items by type', () => {
|
|
27
|
+
const items = [
|
|
28
|
+
{
|
|
29
|
+
name: 'OldButton',
|
|
30
|
+
type: 'component',
|
|
31
|
+
deprecationMessage: 'Deprecated',
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
name: 'OldPipe',
|
|
35
|
+
type: 'pipe',
|
|
36
|
+
deprecationMessage: 'Deprecated',
|
|
37
|
+
},
|
|
38
|
+
];
|
|
39
|
+
const result = formatter.formatDeprecatedList(items, false);
|
|
40
|
+
expect(result).toContain('## Components');
|
|
41
|
+
expect(result).toContain('## Pipes');
|
|
42
|
+
});
|
|
43
|
+
it('should include version when available', () => {
|
|
44
|
+
const items = [
|
|
45
|
+
{
|
|
46
|
+
name: 'OldButton',
|
|
47
|
+
type: 'component',
|
|
48
|
+
deprecationMessage: 'Deprecated',
|
|
49
|
+
versionDeprecated: '2.0.0',
|
|
50
|
+
},
|
|
51
|
+
];
|
|
52
|
+
const result = formatter.formatDeprecatedList(items, false);
|
|
53
|
+
expect(result).toContain('- **Deprecated in**: v2.0.0');
|
|
54
|
+
});
|
|
55
|
+
it('should include replacement when requested', () => {
|
|
56
|
+
const items = [
|
|
57
|
+
{
|
|
58
|
+
name: 'OldButton',
|
|
59
|
+
type: 'component',
|
|
60
|
+
deprecationMessage: 'Deprecated',
|
|
61
|
+
replacementSuggestion: 'NewButton',
|
|
62
|
+
},
|
|
63
|
+
];
|
|
64
|
+
const result = formatter.formatDeprecatedList(items, true);
|
|
65
|
+
expect(result).toContain('- **Replacement**: NewButton');
|
|
66
|
+
});
|
|
67
|
+
it('should not include replacement when not requested', () => {
|
|
68
|
+
const items = [
|
|
69
|
+
{
|
|
70
|
+
name: 'OldButton',
|
|
71
|
+
type: 'component',
|
|
72
|
+
deprecationMessage: 'Deprecated',
|
|
73
|
+
replacementSuggestion: 'NewButton',
|
|
74
|
+
},
|
|
75
|
+
];
|
|
76
|
+
const result = formatter.formatDeprecatedList(items, false);
|
|
77
|
+
expect(result).not.toContain('- **Replacement**: NewButton');
|
|
78
|
+
});
|
|
79
|
+
it('should handle multiple items of same type', () => {
|
|
80
|
+
const items = [
|
|
81
|
+
{
|
|
82
|
+
name: 'OldButton',
|
|
83
|
+
type: 'component',
|
|
84
|
+
deprecationMessage: 'Deprecated 1',
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
name: 'OldInput',
|
|
88
|
+
type: 'component',
|
|
89
|
+
deprecationMessage: 'Deprecated 2',
|
|
90
|
+
},
|
|
91
|
+
];
|
|
92
|
+
const result = formatter.formatDeprecatedList(items, false);
|
|
93
|
+
expect(result).toContain('### OldButton');
|
|
94
|
+
expect(result).toContain('### OldInput');
|
|
95
|
+
});
|
|
96
|
+
});
|
|
97
|
+
describe('formatDeprecationInfo', () => {
|
|
98
|
+
it('should format non-deprecated component', () => {
|
|
99
|
+
const info = {
|
|
100
|
+
name: 'ActiveButton',
|
|
101
|
+
type: 'component',
|
|
102
|
+
isDeprecated: false,
|
|
103
|
+
};
|
|
104
|
+
const result = formatter.formatDeprecationInfo(info);
|
|
105
|
+
expect(result).toBe('ActiveButton (component) is not deprecated.');
|
|
106
|
+
});
|
|
107
|
+
it('should format deprecated component with minimal info', () => {
|
|
108
|
+
const info = {
|
|
109
|
+
name: 'OldButton',
|
|
110
|
+
type: 'component',
|
|
111
|
+
isDeprecated: true,
|
|
112
|
+
deprecationMessage: 'This is deprecated',
|
|
113
|
+
};
|
|
114
|
+
const result = formatter.formatDeprecationInfo(info);
|
|
115
|
+
expect(result).toContain('# OldButton (component)');
|
|
116
|
+
expect(result).toContain('**Status**: DEPRECATED');
|
|
117
|
+
expect(result).toContain('**Message**: This is deprecated');
|
|
118
|
+
});
|
|
119
|
+
it('should include version when available', () => {
|
|
120
|
+
const info = {
|
|
121
|
+
name: 'OldButton',
|
|
122
|
+
type: 'component',
|
|
123
|
+
isDeprecated: true,
|
|
124
|
+
deprecationMessage: 'Deprecated',
|
|
125
|
+
versionDeprecated: '2.0.0',
|
|
126
|
+
};
|
|
127
|
+
const result = formatter.formatDeprecationInfo(info);
|
|
128
|
+
expect(result).toContain('**Deprecated in**: v2.0.0');
|
|
129
|
+
});
|
|
130
|
+
it('should include replacement when available', () => {
|
|
131
|
+
const info = {
|
|
132
|
+
name: 'OldButton',
|
|
133
|
+
type: 'component',
|
|
134
|
+
isDeprecated: true,
|
|
135
|
+
deprecationMessage: 'Deprecated',
|
|
136
|
+
replacementSuggestion: 'NewButton',
|
|
137
|
+
};
|
|
138
|
+
const result = formatter.formatDeprecationInfo(info);
|
|
139
|
+
expect(result).toContain('**Recommended replacement**: NewButton');
|
|
140
|
+
});
|
|
141
|
+
it('should format complete deprecation info', () => {
|
|
142
|
+
const info = {
|
|
143
|
+
name: 'OldButton',
|
|
144
|
+
type: 'component',
|
|
145
|
+
isDeprecated: true,
|
|
146
|
+
deprecationMessage: 'Use NewButton instead',
|
|
147
|
+
versionDeprecated: '2.0.0',
|
|
148
|
+
replacementSuggestion: 'NewButton',
|
|
149
|
+
};
|
|
150
|
+
const result = formatter.formatDeprecationInfo(info);
|
|
151
|
+
expect(result).toContain('# OldButton (component)');
|
|
152
|
+
expect(result).toContain('**Status**: DEPRECATED');
|
|
153
|
+
expect(result).toContain('**Message**: Use NewButton instead');
|
|
154
|
+
expect(result).toContain('**Deprecated in**: v2.0.0');
|
|
155
|
+
expect(result).toContain('**Recommended replacement**: NewButton');
|
|
156
|
+
});
|
|
157
|
+
});
|
|
158
|
+
});
|
|
159
|
+
//# sourceMappingURL=result-formatter-deprecation.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"result-formatter-deprecation.test.js","sourceRoot":"","sources":["../../../src/query/__tests__/result-formatter-deprecation.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W;gBACjB,YAAY,EAAE,IAAI;gBAClB,kBAAkB,EAAE,uBAAuB;gBAC3C,iBAAiB,EAAE,OAAO;gBAC1B,qBAAqB,EAAE,WAAW;aACnC,CAAC;YAEF,MAAM,MAAM,GAAG,SAAS,CAAC,qBAAqB,CAAC,IAAI,CAAC,CAAC;YACrD,MAAM,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,yBAAyB,CAAC,CAAC;YACpD,MAAM,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,wBAAwB,CAAC,CAAC;YACnD,MAAM,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,oCAAoC,CAAC,CAAC;YAC/D,MAAM,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,2BAA2B,CAAC,CAAC;YACtD,MAAM,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,wCAAwC,CAAC,CAAC;QACrE,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"result-formatter.integration.test.d.ts","sourceRoot":"","sources":["../../../src/query/__tests__/result-formatter.integration.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Integration test for prefer-raw-description feature
|
|
3
|
+
* Validates: Requirements 5.1, 5.2, 5.3, 5.4, 5.5
|
|
4
|
+
*/
|
|
5
|
+
import { describe, it, expect } from '@jest/globals';
|
|
6
|
+
import { GetComponentDocsTool } from '../../tools/get-component-docs.js';
|
|
7
|
+
import { ListComponentsTool } from '../../tools/list-components.js';
|
|
8
|
+
import { ComponentQuery } from '../component-query.js';
|
|
9
|
+
import { ResultFormatter } from '../result-formatter.js';
|
|
10
|
+
import { IndexBuilder } from '../index-builder.js';
|
|
11
|
+
describe('Integration: prefer-raw-description', () => {
|
|
12
|
+
// Create sample documentation with rawdescription
|
|
13
|
+
const sampleDoc = {
|
|
14
|
+
components: [
|
|
15
|
+
{
|
|
16
|
+
name: 'TestComponent',
|
|
17
|
+
id: 'test-1',
|
|
18
|
+
file: 'test.ts',
|
|
19
|
+
type: 'component',
|
|
20
|
+
selector: 'app-test',
|
|
21
|
+
description: '<p>HTML description with <strong>markup</strong></p>',
|
|
22
|
+
rawdescription: 'Raw markdown description with **bold**',
|
|
23
|
+
deprecated: false,
|
|
24
|
+
inputsClass: [
|
|
25
|
+
{
|
|
26
|
+
name: 'testInput',
|
|
27
|
+
type: 'string',
|
|
28
|
+
description: '<p>HTML input description</p>',
|
|
29
|
+
rawdescription: 'Raw input description',
|
|
30
|
+
deprecated: false,
|
|
31
|
+
},
|
|
32
|
+
],
|
|
33
|
+
methods: [
|
|
34
|
+
{
|
|
35
|
+
name: 'testMethod',
|
|
36
|
+
description: '<p>HTML method description</p>',
|
|
37
|
+
rawdescription: 'Raw method description',
|
|
38
|
+
deprecated: false,
|
|
39
|
+
},
|
|
40
|
+
],
|
|
41
|
+
},
|
|
42
|
+
],
|
|
43
|
+
directives: [],
|
|
44
|
+
pipes: [],
|
|
45
|
+
injectables: [],
|
|
46
|
+
interfaces: [],
|
|
47
|
+
classes: [],
|
|
48
|
+
modules: [],
|
|
49
|
+
};
|
|
50
|
+
const indexBuilder = new IndexBuilder();
|
|
51
|
+
const index = indexBuilder.build(sampleDoc);
|
|
52
|
+
const query = new ComponentQuery(index);
|
|
53
|
+
const formatter = new ResultFormatter();
|
|
54
|
+
describe('get-component-docs tool', () => {
|
|
55
|
+
it('should use rawdescription in component details', () => {
|
|
56
|
+
const tool = new GetComponentDocsTool(query, formatter);
|
|
57
|
+
const result = tool.execute({ name: 'TestComponent' });
|
|
58
|
+
expect(result.component.description).toBe('Raw markdown description with **bold**');
|
|
59
|
+
expect(result.component.description).not.toContain('<p>');
|
|
60
|
+
expect(result.component.description).not.toContain('</p>');
|
|
61
|
+
});
|
|
62
|
+
it('should use rawdescription in input descriptions', () => {
|
|
63
|
+
const tool = new GetComponentDocsTool(query, formatter);
|
|
64
|
+
const result = tool.execute({ name: 'TestComponent' });
|
|
65
|
+
expect(result.component.inputs).toHaveLength(1);
|
|
66
|
+
expect(result.component.inputs[0].description).toBe('Raw input description');
|
|
67
|
+
expect(result.component.inputs[0].description).not.toContain('<p>');
|
|
68
|
+
});
|
|
69
|
+
it('should use rawdescription in method descriptions', () => {
|
|
70
|
+
const tool = new GetComponentDocsTool(query, formatter);
|
|
71
|
+
const result = tool.execute({ name: 'TestComponent' });
|
|
72
|
+
expect(result.component.methods).toHaveLength(1);
|
|
73
|
+
expect(result.component.methods[0].description).toBe('Raw method description');
|
|
74
|
+
expect(result.component.methods[0].description).not.toContain('<p>');
|
|
75
|
+
});
|
|
76
|
+
});
|
|
77
|
+
describe('list-components tool', () => {
|
|
78
|
+
it('should use rawdescription in component summaries', () => {
|
|
79
|
+
const tool = new ListComponentsTool(query, formatter);
|
|
80
|
+
const result = tool.execute({});
|
|
81
|
+
expect(result.items).toHaveLength(1);
|
|
82
|
+
expect(result.items[0].description).toBe('Raw markdown description with **bold**');
|
|
83
|
+
expect(result.items[0].description).not.toContain('<p>');
|
|
84
|
+
});
|
|
85
|
+
});
|
|
86
|
+
describe('fallback behavior', () => {
|
|
87
|
+
const docWithoutRaw = {
|
|
88
|
+
components: [
|
|
89
|
+
{
|
|
90
|
+
name: 'LegacyComponent',
|
|
91
|
+
id: 'legacy-1',
|
|
92
|
+
file: 'legacy.ts',
|
|
93
|
+
type: 'component',
|
|
94
|
+
description: '<p>Only HTML description available</p>',
|
|
95
|
+
deprecated: false,
|
|
96
|
+
},
|
|
97
|
+
],
|
|
98
|
+
directives: [],
|
|
99
|
+
pipes: [],
|
|
100
|
+
injectables: [],
|
|
101
|
+
interfaces: [],
|
|
102
|
+
classes: [],
|
|
103
|
+
modules: [],
|
|
104
|
+
};
|
|
105
|
+
const legacyIndex = indexBuilder.build(docWithoutRaw);
|
|
106
|
+
const legacyQuery = new ComponentQuery(legacyIndex);
|
|
107
|
+
it('should fall back to description when rawdescription is not available', () => {
|
|
108
|
+
const tool = new GetComponentDocsTool(legacyQuery, formatter);
|
|
109
|
+
const result = tool.execute({ name: 'LegacyComponent' });
|
|
110
|
+
expect(result.component.description).toBe('<p>Only HTML description available</p>');
|
|
111
|
+
});
|
|
112
|
+
});
|
|
113
|
+
describe('empty description handling', () => {
|
|
114
|
+
const docWithoutDesc = {
|
|
115
|
+
components: [
|
|
116
|
+
{
|
|
117
|
+
name: 'NoDescComponent',
|
|
118
|
+
id: 'nodesc-1',
|
|
119
|
+
file: 'nodesc.ts',
|
|
120
|
+
type: 'component',
|
|
121
|
+
deprecated: false,
|
|
122
|
+
},
|
|
123
|
+
],
|
|
124
|
+
directives: [],
|
|
125
|
+
pipes: [],
|
|
126
|
+
injectables: [],
|
|
127
|
+
interfaces: [],
|
|
128
|
+
classes: [],
|
|
129
|
+
modules: [],
|
|
130
|
+
};
|
|
131
|
+
const noDescIndex = indexBuilder.build(docWithoutDesc);
|
|
132
|
+
const noDescQuery = new ComponentQuery(noDescIndex);
|
|
133
|
+
it('should return empty string when neither description exists', () => {
|
|
134
|
+
const tool = new GetComponentDocsTool(noDescQuery, formatter);
|
|
135
|
+
const result = tool.execute({ name: 'NoDescComponent' });
|
|
136
|
+
expect(result.component.description).toBe('');
|
|
137
|
+
});
|
|
138
|
+
});
|
|
139
|
+
});
|
|
140
|
+
//# sourceMappingURL=result-formatter.integration.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"result-formatter.integration.test.js","sourceRoot":"","sources":["../../../src/query/__tests__/result-formatter.integration.test.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACzE,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAu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;YACpE,MAAM,IAAI,GAAG,IAAI,oBAAoB,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC;YAC9D,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,CAAC,CAAC;YAEzD,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QAChD,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"result-formatter.property.test.d.ts","sourceRoot":"","sources":["../../../src/query/__tests__/result-formatter.property.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Property-based tests for ResultFormatter
|
|
3
|
+
* Feature: prefer-raw-description
|
|
4
|
+
*/
|
|
5
|
+
import { describe, it, expect } from '@jest/globals';
|
|
6
|
+
import * as fc from 'fast-check';
|
|
7
|
+
import { ResultFormatter } from '../result-formatter.js';
|
|
8
|
+
describe('ResultFormatter - Property Tests', () => {
|
|
9
|
+
const formatter = new ResultFormatter();
|
|
10
|
+
/**
|
|
11
|
+
* Property 1: Description Preference for Document Summaries
|
|
12
|
+
* Validates: Requirements 1.1, 1.2, 1.3, 1.4, 1.5, 1.6
|
|
13
|
+
*/
|
|
14
|
+
describe('Property 1: Description preference for document summaries', () => {
|
|
15
|
+
const componentArbitrary = fc.record({
|
|
16
|
+
name: fc.string({ minLength: 1, maxLength: 50 }),
|
|
17
|
+
id: fc.string({ minLength: 1 }),
|
|
18
|
+
file: fc.string({ minLength: 1 }),
|
|
19
|
+
type: fc.constant('component'),
|
|
20
|
+
selector: fc.option(fc.string({ minLength: 1 }), { nil: undefined }),
|
|
21
|
+
description: fc.option(fc.string(), { nil: undefined }),
|
|
22
|
+
rawdescription: fc.option(fc.string(), { nil: undefined }),
|
|
23
|
+
deprecated: fc.boolean(),
|
|
24
|
+
});
|
|
25
|
+
it('should prefer rawdescription over description for all documents', () => {
|
|
26
|
+
fc.assert(fc.property(componentArbitrary, (doc) => {
|
|
27
|
+
const result = formatter.formatSummary(doc);
|
|
28
|
+
// Determine expected description based on preference logic
|
|
29
|
+
const expectedDescription = doc.rawdescription ?? doc.description ?? '';
|
|
30
|
+
expect(result.description).toBe(expectedDescription);
|
|
31
|
+
}), { numRuns: 100 });
|
|
32
|
+
});
|
|
33
|
+
it('should prefer rawdescription in formatDetails', () => {
|
|
34
|
+
fc.assert(fc.property(componentArbitrary, (doc) => {
|
|
35
|
+
const result = formatter.formatDetails(doc);
|
|
36
|
+
const expectedDescription = doc.rawdescription ?? doc.description ?? '';
|
|
37
|
+
expect(result.description).toBe(expectedDescription);
|
|
38
|
+
}), { numRuns: 100 });
|
|
39
|
+
});
|
|
40
|
+
});
|
|
41
|
+
/**
|
|
42
|
+
* Property 2: Description Preference for Properties
|
|
43
|
+
* Validates: Requirements 2.1, 2.2, 2.3, 2.4
|
|
44
|
+
*/
|
|
45
|
+
describe('Property 2: Description preference for properties', () => {
|
|
46
|
+
const propertyArbitrary = fc.record({
|
|
47
|
+
name: fc.string({ minLength: 1, maxLength: 50 }),
|
|
48
|
+
type: fc.string({ minLength: 1 }),
|
|
49
|
+
optional: fc.boolean(),
|
|
50
|
+
description: fc.option(fc.string(), { nil: undefined }),
|
|
51
|
+
rawdescription: fc.option(fc.string(), { nil: undefined }),
|
|
52
|
+
defaultValue: fc.option(fc.string(), { nil: undefined }),
|
|
53
|
+
deprecated: fc.boolean(),
|
|
54
|
+
});
|
|
55
|
+
const componentWithInputsArbitrary = fc.record({
|
|
56
|
+
name: fc.string({ minLength: 1 }),
|
|
57
|
+
id: fc.string({ minLength: 1 }),
|
|
58
|
+
file: fc.string({ minLength: 1 }),
|
|
59
|
+
type: fc.constant('component'),
|
|
60
|
+
deprecated: fc.boolean(),
|
|
61
|
+
inputsClass: fc.array(propertyArbitrary, { minLength: 1, maxLength: 5 }),
|
|
62
|
+
});
|
|
63
|
+
it('should prefer rawdescription over description for properties', () => {
|
|
64
|
+
fc.assert(fc.property(componentWithInputsArbitrary, (doc) => {
|
|
65
|
+
const inputs = formatter.formatInputs(doc);
|
|
66
|
+
inputs.forEach((input, index) => {
|
|
67
|
+
const originalProp = doc.inputsClass[index];
|
|
68
|
+
const expectedDescription = originalProp.rawdescription ?? originalProp.description ?? '';
|
|
69
|
+
expect(input.description).toBe(expectedDescription);
|
|
70
|
+
});
|
|
71
|
+
}), { numRuns: 100 });
|
|
72
|
+
});
|
|
73
|
+
});
|
|
74
|
+
/**
|
|
75
|
+
* Property 3: Description Preference for Methods
|
|
76
|
+
* Validates: Requirements 3.1, 3.2
|
|
77
|
+
*/
|
|
78
|
+
describe('Property 3: Description preference for methods', () => {
|
|
79
|
+
const argumentArbitrary = fc.record({
|
|
80
|
+
name: fc.string({ minLength: 1 }),
|
|
81
|
+
type: fc.string({ minLength: 1 }),
|
|
82
|
+
optional: fc.boolean(),
|
|
83
|
+
defaultValue: fc.option(fc.string(), { nil: undefined }),
|
|
84
|
+
deprecated: fc.boolean(),
|
|
85
|
+
});
|
|
86
|
+
const methodArbitrary = fc.record({
|
|
87
|
+
name: fc.string({ minLength: 1, maxLength: 50 }),
|
|
88
|
+
description: fc.option(fc.string(), { nil: undefined }),
|
|
89
|
+
rawdescription: fc.option(fc.string(), { nil: undefined }),
|
|
90
|
+
args: fc.option(fc.array(argumentArbitrary), { nil: undefined }),
|
|
91
|
+
returnType: fc.option(fc.string(), { nil: undefined }),
|
|
92
|
+
deprecated: fc.boolean(),
|
|
93
|
+
});
|
|
94
|
+
const componentWithMethodsArbitrary = fc.record({
|
|
95
|
+
name: fc.string({ minLength: 1 }),
|
|
96
|
+
id: fc.string({ minLength: 1 }),
|
|
97
|
+
file: fc.string({ minLength: 1 }),
|
|
98
|
+
type: fc.constant('component'),
|
|
99
|
+
deprecated: fc.boolean(),
|
|
100
|
+
methods: fc.array(methodArbitrary, { minLength: 1, maxLength: 5 }),
|
|
101
|
+
});
|
|
102
|
+
it('should prefer rawdescription over description for methods', () => {
|
|
103
|
+
fc.assert(fc.property(componentWithMethodsArbitrary, (doc) => {
|
|
104
|
+
const methods = formatter.formatMethods(doc);
|
|
105
|
+
methods.forEach((method, index) => {
|
|
106
|
+
const originalMethod = doc.methods[index];
|
|
107
|
+
const expectedDescription = originalMethod.rawdescription ?? originalMethod.description ?? '';
|
|
108
|
+
expect(method.description).toBe(expectedDescription);
|
|
109
|
+
});
|
|
110
|
+
}), { numRuns: 100 });
|
|
111
|
+
});
|
|
112
|
+
});
|
|
113
|
+
/**
|
|
114
|
+
* Property 4: Output Structure Consistency
|
|
115
|
+
* Validates: Requirements 4.1, 4.3
|
|
116
|
+
*/
|
|
117
|
+
describe('Property 4: Output structure consistency', () => {
|
|
118
|
+
const componentArbitrary = fc.record({
|
|
119
|
+
name: fc.string({ minLength: 1 }),
|
|
120
|
+
id: fc.string({ minLength: 1 }),
|
|
121
|
+
file: fc.string({ minLength: 1 }),
|
|
122
|
+
type: fc.constant('component'),
|
|
123
|
+
selector: fc.option(fc.string(), { nil: undefined }),
|
|
124
|
+
description: fc.option(fc.string(), { nil: undefined }),
|
|
125
|
+
rawdescription: fc.option(fc.string(), { nil: undefined }),
|
|
126
|
+
deprecated: fc.boolean(),
|
|
127
|
+
});
|
|
128
|
+
it('should maintain consistent output structure in formatSummary', () => {
|
|
129
|
+
fc.assert(fc.property(componentArbitrary, (doc) => {
|
|
130
|
+
const result = formatter.formatSummary(doc);
|
|
131
|
+
// Verify expected fields exist
|
|
132
|
+
expect(result).toHaveProperty('name');
|
|
133
|
+
expect(result).toHaveProperty('type');
|
|
134
|
+
expect(result).toHaveProperty('description');
|
|
135
|
+
expect(result).toHaveProperty('deprecated');
|
|
136
|
+
// Verify no unexpected fields (only check known fields)
|
|
137
|
+
const expectedKeys = ['name', 'type', 'selector', 'description', 'deprecated'];
|
|
138
|
+
const actualKeys = Object.keys(result);
|
|
139
|
+
actualKeys.forEach(key => {
|
|
140
|
+
expect(expectedKeys).toContain(key);
|
|
141
|
+
});
|
|
142
|
+
}), { numRuns: 100 });
|
|
143
|
+
});
|
|
144
|
+
it('should maintain consistent output structure in formatDetails', () => {
|
|
145
|
+
fc.assert(fc.property(componentArbitrary, (doc) => {
|
|
146
|
+
const result = formatter.formatDetails(doc);
|
|
147
|
+
// Verify expected fields exist
|
|
148
|
+
expect(result).toHaveProperty('name');
|
|
149
|
+
expect(result).toHaveProperty('type');
|
|
150
|
+
expect(result).toHaveProperty('description');
|
|
151
|
+
expect(result).toHaveProperty('deprecated');
|
|
152
|
+
expect(result).toHaveProperty('inputs');
|
|
153
|
+
expect(result).toHaveProperty('outputs');
|
|
154
|
+
expect(result).toHaveProperty('methods');
|
|
155
|
+
expect(result).toHaveProperty('examples');
|
|
156
|
+
// Verify description field contains preferred value
|
|
157
|
+
const expectedDescription = doc.rawdescription ?? doc.description ?? '';
|
|
158
|
+
expect(result.description).toBe(expectedDescription);
|
|
159
|
+
}), { numRuns: 100 });
|
|
160
|
+
});
|
|
161
|
+
});
|
|
162
|
+
});
|
|
163
|
+
//# sourceMappingURL=result-formatter.property.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"result-formatter.property.test.js","sourceRoot":"","sources":["../../../src/query/__tests__/result-formatter.property.test.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAGzD,QAAQ,CAAC,kCAAkC,EAAE,GAAG,EAAE;IAChD,MAAM,SAAS,GAAG,IAAI,eAAe,EAAE,CAAC;IAExC;;;OAGG;IACH,QAAQ,CAAC,2DAA2D,EAAE,GAAG,EAAE;QACzE,MAAM,kBAAkB,GAAG,EA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,GAAG,EAAE,CACjB,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"result-formatter.test.d.ts","sourceRoot":"","sources":["../../../src/query/__tests__/result-formatter.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Unit tests for ResultFormatter
|
|
3
|
+
*/
|
|
4
|
+
import { describe, it, expect } from '@jest/globals';
|
|
5
|
+
import { ResultFormatter } from '../result-formatter.js';
|
|
6
|
+
describe('ResultFormatter', () => {
|
|
7
|
+
const formatter = new ResultFormatter();
|
|
8
|
+
describe('getPreferredDescription', () => {
|
|
9
|
+
it('should use rawdescription when only rawdescription exists', () => {
|
|
10
|
+
const doc = {
|
|
11
|
+
name: 'TestComponent',
|
|
12
|
+
id: 'test-1',
|
|
13
|
+
file: 'test.ts',
|
|
14
|
+
type: 'component',
|
|
15
|
+
rawdescription: 'Raw description text',
|
|
16
|
+
deprecated: false,
|
|
17
|
+
};
|
|
18
|
+
const result = formatter.formatSummary(doc);
|
|
19
|
+
expect(result.description).toBe('Raw description text');
|
|
20
|
+
});
|
|
21
|
+
it('should use description when only description exists', () => {
|
|
22
|
+
const doc = {
|
|
23
|
+
name: 'TestComponent',
|
|
24
|
+
id: 'test-1',
|
|
25
|
+
file: 'test.ts',
|
|
26
|
+
type: 'component',
|
|
27
|
+
description: 'HTML description text',
|
|
28
|
+
deprecated: false,
|
|
29
|
+
};
|
|
30
|
+
const result = formatter.formatSummary(doc);
|
|
31
|
+
expect(result.description).toBe('HTML description text');
|
|
32
|
+
});
|
|
33
|
+
it('should prefer rawdescription over description when both exist', () => {
|
|
34
|
+
const doc = {
|
|
35
|
+
name: 'TestComponent',
|
|
36
|
+
id: 'test-1',
|
|
37
|
+
file: 'test.ts',
|
|
38
|
+
type: 'component',
|
|
39
|
+
rawdescription: 'Raw description text',
|
|
40
|
+
description: 'HTML description text',
|
|
41
|
+
deprecated: false,
|
|
42
|
+
};
|
|
43
|
+
const result = formatter.formatSummary(doc);
|
|
44
|
+
expect(result.description).toBe('Raw description text');
|
|
45
|
+
});
|
|
46
|
+
it('should return empty string when neither exists', () => {
|
|
47
|
+
const doc = {
|
|
48
|
+
name: 'TestComponent',
|
|
49
|
+
id: 'test-1',
|
|
50
|
+
file: 'test.ts',
|
|
51
|
+
type: 'component',
|
|
52
|
+
deprecated: false,
|
|
53
|
+
};
|
|
54
|
+
const result = formatter.formatSummary(doc);
|
|
55
|
+
expect(result.description).toBe('');
|
|
56
|
+
});
|
|
57
|
+
it('should treat empty string rawdescription as valid', () => {
|
|
58
|
+
const doc = {
|
|
59
|
+
name: 'TestComponent',
|
|
60
|
+
id: 'test-1',
|
|
61
|
+
file: 'test.ts',
|
|
62
|
+
type: 'component',
|
|
63
|
+
rawdescription: '',
|
|
64
|
+
description: 'HTML description text',
|
|
65
|
+
deprecated: false,
|
|
66
|
+
};
|
|
67
|
+
const result = formatter.formatSummary(doc);
|
|
68
|
+
expect(result.description).toBe('');
|
|
69
|
+
});
|
|
70
|
+
it('should use description when rawdescription is undefined', () => {
|
|
71
|
+
const doc = {
|
|
72
|
+
name: 'TestComponent',
|
|
73
|
+
id: 'test-1',
|
|
74
|
+
file: 'test.ts',
|
|
75
|
+
type: 'component',
|
|
76
|
+
rawdescription: undefined,
|
|
77
|
+
description: 'HTML description text',
|
|
78
|
+
deprecated: false,
|
|
79
|
+
};
|
|
80
|
+
const result = formatter.formatSummary(doc);
|
|
81
|
+
expect(result.description).toBe('HTML description text');
|
|
82
|
+
});
|
|
83
|
+
});
|
|
84
|
+
});
|
|
85
|
+
//# sourceMappingURL=result-formatter.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"result-formatter.test.js","sourceRoot":"","sources":["../../../src/query/__tests__/result-formatter.test.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,O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;gBACf,IAAI,EAAE,WAAW;gBACjB,cAAc,EAAE,SAAS;gBACzB,WAAW,EAAE,uBAAuB;gBACpC,UAAU,EAAE,KAAK;aAClB,CAAC;YACF,MAAM,MAAM,GAAG,SAAS,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;YAC5C,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC,uBAAuB,CAAC,CAAC;QAC3D,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search-engine.property.test.d.ts","sourceRoot":"","sources":["../../../src/query/__tests__/search-engine.property.test.ts"],"names":[],"mappings":""}
|