@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,422 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Property-based tests for IndexBuilder
|
|
3
|
+
* Feature: eui-compodoc-mcp, Property 1: Complete component listing
|
|
4
|
+
* Validates: Requirements 1.1, 1.4
|
|
5
|
+
*/
|
|
6
|
+
import { describe, it, expect } from '@jest/globals';
|
|
7
|
+
import * as fc from 'fast-check';
|
|
8
|
+
import { IndexBuilder } from '../index-builder.js';
|
|
9
|
+
// Arbitraries for generating test data
|
|
10
|
+
/**
|
|
11
|
+
* Generate a valid component
|
|
12
|
+
*/
|
|
13
|
+
const componentArbitrary = fc.record({
|
|
14
|
+
name: fc.string({ minLength: 1, maxLength: 50 }).filter((s) => s.trim().length > 0),
|
|
15
|
+
id: fc.string({ minLength: 1 }),
|
|
16
|
+
file: fc.string({ minLength: 1 }),
|
|
17
|
+
type: fc.constant('component'),
|
|
18
|
+
selector: fc.option(fc.string({ minLength: 1 }), { nil: undefined }),
|
|
19
|
+
description: fc.option(fc.string(), { nil: undefined }),
|
|
20
|
+
deprecated: fc.boolean(),
|
|
21
|
+
inputs: fc.option(fc.array(fc.record({
|
|
22
|
+
name: fc.string({ minLength: 1 }),
|
|
23
|
+
type: fc.string({ minLength: 1 }),
|
|
24
|
+
deprecated: fc.boolean(),
|
|
25
|
+
})), { nil: undefined }),
|
|
26
|
+
outputs: fc.option(fc.array(fc.record({
|
|
27
|
+
name: fc.string({ minLength: 1 }),
|
|
28
|
+
type: fc.string({ minLength: 1 }),
|
|
29
|
+
deprecated: fc.boolean(),
|
|
30
|
+
})), { nil: undefined }),
|
|
31
|
+
});
|
|
32
|
+
/**
|
|
33
|
+
* Generate a valid directive
|
|
34
|
+
*/
|
|
35
|
+
const directiveArbitrary = fc.record({
|
|
36
|
+
name: fc.string({ minLength: 1, maxLength: 50 }).filter((s) => s.trim().length > 0),
|
|
37
|
+
id: fc.string({ minLength: 1 }),
|
|
38
|
+
file: fc.string({ minLength: 1 }),
|
|
39
|
+
type: fc.constant('directive'),
|
|
40
|
+
selector: fc.option(fc.string({ minLength: 1 }), { nil: undefined }),
|
|
41
|
+
description: fc.option(fc.string(), { nil: undefined }),
|
|
42
|
+
deprecated: fc.boolean(),
|
|
43
|
+
});
|
|
44
|
+
/**
|
|
45
|
+
* Generate a valid pipe
|
|
46
|
+
*/
|
|
47
|
+
const pipeArbitrary = fc.record({
|
|
48
|
+
name: fc.string({ minLength: 1, maxLength: 50 }).filter((s) => s.trim().length > 0),
|
|
49
|
+
id: fc.string({ minLength: 1 }),
|
|
50
|
+
file: fc.string({ minLength: 1 }),
|
|
51
|
+
type: fc.constant('pipe'),
|
|
52
|
+
description: fc.option(fc.string(), { nil: undefined }),
|
|
53
|
+
deprecated: fc.boolean(),
|
|
54
|
+
});
|
|
55
|
+
/**
|
|
56
|
+
* Generate a valid injectable (service)
|
|
57
|
+
*/
|
|
58
|
+
const injectableArbitrary = fc.record({
|
|
59
|
+
name: fc.string({ minLength: 1, maxLength: 50 }).filter((s) => s.trim().length > 0),
|
|
60
|
+
id: fc.string({ minLength: 1 }),
|
|
61
|
+
file: fc.string({ minLength: 1 }),
|
|
62
|
+
type: fc.constant('injectable'),
|
|
63
|
+
description: fc.option(fc.string(), { nil: undefined }),
|
|
64
|
+
deprecated: fc.boolean(),
|
|
65
|
+
});
|
|
66
|
+
/**
|
|
67
|
+
* Generate valid Compodoc documentation with unique names
|
|
68
|
+
*/
|
|
69
|
+
const documentationArbitrary = fc
|
|
70
|
+
.record({
|
|
71
|
+
components: fc.array(componentArbitrary, { maxLength: 20 }),
|
|
72
|
+
directives: fc.array(directiveArbitrary, { maxLength: 20 }),
|
|
73
|
+
pipes: fc.array(pipeArbitrary, { maxLength: 20 }),
|
|
74
|
+
injectables: fc.array(injectableArbitrary, { maxLength: 20 }),
|
|
75
|
+
interfaces: fc.constant([]),
|
|
76
|
+
classes: fc.constant([]),
|
|
77
|
+
modules: fc.constant([]),
|
|
78
|
+
})
|
|
79
|
+
.filter((doc) => {
|
|
80
|
+
// Ensure all names are unique across all types
|
|
81
|
+
const allNames = new Set();
|
|
82
|
+
const items = [
|
|
83
|
+
...doc.components,
|
|
84
|
+
...doc.directives,
|
|
85
|
+
...doc.pipes,
|
|
86
|
+
...doc.injectables,
|
|
87
|
+
];
|
|
88
|
+
for (const item of items) {
|
|
89
|
+
if (allNames.has(item.name)) {
|
|
90
|
+
return false; // Duplicate found, reject this example
|
|
91
|
+
}
|
|
92
|
+
allNames.add(item.name);
|
|
93
|
+
}
|
|
94
|
+
return true;
|
|
95
|
+
});
|
|
96
|
+
describe('IndexBuilder Property Tests', () => {
|
|
97
|
+
describe('Property 1: Complete component listing', () => {
|
|
98
|
+
/**
|
|
99
|
+
* Feature: eui-compodoc-mcp, Property 1: Complete component listing
|
|
100
|
+
* Validates: Requirements 1.1, 1.4
|
|
101
|
+
*
|
|
102
|
+
* For any valid documentation.json file, calling list-components should return
|
|
103
|
+
* all non-deprecated components present in the file (or all components if
|
|
104
|
+
* includeDeprecated is true).
|
|
105
|
+
*/
|
|
106
|
+
it('should index all non-deprecated components from documentation', () => {
|
|
107
|
+
fc.assert(fc.property(documentationArbitrary, (documentation) => {
|
|
108
|
+
const builder = new IndexBuilder();
|
|
109
|
+
const index = builder.build(documentation);
|
|
110
|
+
// Count non-deprecated items in the original documentation
|
|
111
|
+
const nonDeprecatedComponents = documentation.components.filter((c) => !c.deprecated);
|
|
112
|
+
const nonDeprecatedDirectives = documentation.directives.filter((d) => !d.deprecated);
|
|
113
|
+
const nonDeprecatedPipes = documentation.pipes.filter((p) => !p.deprecated);
|
|
114
|
+
const nonDeprecatedInjectables = documentation.injectables.filter((i) => !i.deprecated);
|
|
115
|
+
// Count non-deprecated items in the index
|
|
116
|
+
const indexedNonDeprecatedComponents = index.components.filter((c) => !c.deprecated);
|
|
117
|
+
const indexedNonDeprecatedDirectives = index.directives.filter((d) => !d.deprecated);
|
|
118
|
+
const indexedNonDeprecatedPipes = index.pipes.filter((p) => !p.deprecated);
|
|
119
|
+
const indexedNonDeprecatedServices = index.services.filter((s) => !s.deprecated);
|
|
120
|
+
// Verify all non-deprecated items are indexed
|
|
121
|
+
expect(indexedNonDeprecatedComponents.length).toBe(nonDeprecatedComponents.length);
|
|
122
|
+
expect(indexedNonDeprecatedDirectives.length).toBe(nonDeprecatedDirectives.length);
|
|
123
|
+
expect(indexedNonDeprecatedPipes.length).toBe(nonDeprecatedPipes.length);
|
|
124
|
+
expect(indexedNonDeprecatedServices.length).toBe(nonDeprecatedInjectables.length);
|
|
125
|
+
// Verify all items (including deprecated) are indexed
|
|
126
|
+
expect(index.components.length).toBe(documentation.components.length);
|
|
127
|
+
expect(index.directives.length).toBe(documentation.directives.length);
|
|
128
|
+
expect(index.pipes.length).toBe(documentation.pipes.length);
|
|
129
|
+
expect(index.services.length).toBe(documentation.injectables.length);
|
|
130
|
+
}), { numRuns: 100 });
|
|
131
|
+
});
|
|
132
|
+
it('should make all components accessible by name', () => {
|
|
133
|
+
fc.assert(fc.property(documentationArbitrary, (documentation) => {
|
|
134
|
+
const builder = new IndexBuilder();
|
|
135
|
+
const index = builder.build(documentation);
|
|
136
|
+
// Verify all components are accessible by name
|
|
137
|
+
for (const component of documentation.components) {
|
|
138
|
+
expect(index.byName.has(component.name)).toBe(true);
|
|
139
|
+
expect(index.byName.get(component.name)).toEqual(component);
|
|
140
|
+
}
|
|
141
|
+
// Verify all directives are accessible by name
|
|
142
|
+
for (const directive of documentation.directives) {
|
|
143
|
+
expect(index.byName.has(directive.name)).toBe(true);
|
|
144
|
+
expect(index.byName.get(directive.name)).toEqual(directive);
|
|
145
|
+
}
|
|
146
|
+
// Verify all pipes are accessible by name
|
|
147
|
+
for (const pipe of documentation.pipes) {
|
|
148
|
+
expect(index.byName.has(pipe.name)).toBe(true);
|
|
149
|
+
expect(index.byName.get(pipe.name)).toEqual(pipe);
|
|
150
|
+
}
|
|
151
|
+
// Verify all injectables are accessible by name
|
|
152
|
+
for (const injectable of documentation.injectables) {
|
|
153
|
+
expect(index.byName.has(injectable.name)).toBe(true);
|
|
154
|
+
expect(index.byName.get(injectable.name)).toEqual(injectable);
|
|
155
|
+
}
|
|
156
|
+
}), { numRuns: 100 });
|
|
157
|
+
});
|
|
158
|
+
it('should make components with selectors accessible by selector', () => {
|
|
159
|
+
fc.assert(fc.property(documentationArbitrary, (documentation) => {
|
|
160
|
+
const builder = new IndexBuilder();
|
|
161
|
+
const index = builder.build(documentation);
|
|
162
|
+
// Collect all items with selectors (filter ensures selector is defined)
|
|
163
|
+
const itemsWithSelectors = [
|
|
164
|
+
...documentation.components.filter((c) => !!c.selector),
|
|
165
|
+
...documentation.directives.filter((d) => !!d.selector),
|
|
166
|
+
];
|
|
167
|
+
// Verify that for each unique selector, at least one item is accessible
|
|
168
|
+
const uniqueSelectors = new Set(itemsWithSelectors.map(item => item.selector));
|
|
169
|
+
for (const selector of uniqueSelectors) {
|
|
170
|
+
expect(index.bySelector.has(selector)).toBe(true);
|
|
171
|
+
// The stored item should be one of the items with this selector
|
|
172
|
+
const storedItem = index.bySelector.get(selector);
|
|
173
|
+
const itemsWithThisSelector = itemsWithSelectors.filter(item => item.selector === selector);
|
|
174
|
+
expect(itemsWithThisSelector).toContainEqual(storedItem);
|
|
175
|
+
}
|
|
176
|
+
}), { numRuns: 100 });
|
|
177
|
+
});
|
|
178
|
+
it('should correctly calculate total count', () => {
|
|
179
|
+
fc.assert(fc.property(documentationArbitrary, (documentation) => {
|
|
180
|
+
const builder = new IndexBuilder();
|
|
181
|
+
const index = builder.build(documentation);
|
|
182
|
+
const expectedTotal = documentation.components.length +
|
|
183
|
+
documentation.directives.length +
|
|
184
|
+
documentation.pipes.length +
|
|
185
|
+
documentation.injectables.length;
|
|
186
|
+
expect(index.totalCount).toBe(expectedTotal);
|
|
187
|
+
}), { numRuns: 100 });
|
|
188
|
+
});
|
|
189
|
+
it('should populate search index with component names', () => {
|
|
190
|
+
fc.assert(fc.property(documentationArbitrary, (documentation) => {
|
|
191
|
+
const builder = new IndexBuilder();
|
|
192
|
+
const index = builder.build(documentation);
|
|
193
|
+
// Verify that all component names appear in the search index
|
|
194
|
+
for (const component of documentation.components) {
|
|
195
|
+
// Extract words from component name using the same logic as IndexBuilder
|
|
196
|
+
const normalized = component.name.toLowerCase();
|
|
197
|
+
const words = normalized.split(/[^a-z0-9]+/).filter((w) => w.length > 0);
|
|
198
|
+
// If no words extracted, the normalized name itself should be indexed
|
|
199
|
+
const searchTerms = words.length > 0 ? words : [normalized.trim()];
|
|
200
|
+
// At least one search term should be in the search index
|
|
201
|
+
const hasWord = searchTerms.some((word) => {
|
|
202
|
+
const names = index.searchIndex.get(word);
|
|
203
|
+
return names && names.has(component.name);
|
|
204
|
+
});
|
|
205
|
+
expect(hasWord).toBe(true);
|
|
206
|
+
}
|
|
207
|
+
}), { numRuns: 100 });
|
|
208
|
+
});
|
|
209
|
+
});
|
|
210
|
+
describe('Property 6: Type information preservation', () => {
|
|
211
|
+
/**
|
|
212
|
+
* Feature: eui-compodoc-mcp, Property 6: Type information preservation
|
|
213
|
+
* Validates: Requirements 2.4
|
|
214
|
+
*
|
|
215
|
+
* For any component with type information in the documentation, retrieving it
|
|
216
|
+
* should return the same type information without loss or corruption.
|
|
217
|
+
*/
|
|
218
|
+
it('should preserve input type information', () => {
|
|
219
|
+
fc.assert(fc.property(fc.record({
|
|
220
|
+
components: fc.array(fc.record({
|
|
221
|
+
name: fc.string({ minLength: 1, maxLength: 50 }).filter((s) => s.trim().length > 0),
|
|
222
|
+
id: fc.string({ minLength: 1 }),
|
|
223
|
+
file: fc.string({ minLength: 1 }),
|
|
224
|
+
type: fc.constant('component'),
|
|
225
|
+
deprecated: fc.boolean(),
|
|
226
|
+
inputs: fc.array(fc.record({
|
|
227
|
+
name: fc.string({ minLength: 1 }),
|
|
228
|
+
type: fc.oneof(fc.constant('string'), fc.constant('number'), fc.constant('boolean'), fc.constant('any'), fc.constant('string | number'), fc.constant('Array<string>'), fc.constant('Observable<number>'), fc.constant('{ [key: string]: any }')),
|
|
229
|
+
deprecated: fc.boolean(),
|
|
230
|
+
optional: fc.boolean(),
|
|
231
|
+
description: fc.option(fc.string(), { nil: undefined }),
|
|
232
|
+
})),
|
|
233
|
+
})),
|
|
234
|
+
directives: fc.constant([]),
|
|
235
|
+
pipes: fc.constant([]),
|
|
236
|
+
injectables: fc.constant([]),
|
|
237
|
+
interfaces: fc.constant([]),
|
|
238
|
+
classes: fc.constant([]),
|
|
239
|
+
modules: fc.constant([]),
|
|
240
|
+
}).filter((doc) => {
|
|
241
|
+
// Ensure unique names
|
|
242
|
+
const names = new Set(doc.components.map((c) => c.name));
|
|
243
|
+
return names.size === doc.components.length;
|
|
244
|
+
}), (documentation) => {
|
|
245
|
+
const builder = new IndexBuilder();
|
|
246
|
+
const index = builder.build(documentation);
|
|
247
|
+
// Verify that all input type information is preserved
|
|
248
|
+
for (const component of documentation.components) {
|
|
249
|
+
const indexed = index.byName.get(component.name);
|
|
250
|
+
expect(indexed).toBeDefined();
|
|
251
|
+
if (component.inputs && component.inputs.length > 0) {
|
|
252
|
+
expect(indexed.inputs).toBeDefined();
|
|
253
|
+
expect(indexed.inputs.length).toBe(component.inputs.length);
|
|
254
|
+
for (let i = 0; i < component.inputs.length; i++) {
|
|
255
|
+
const originalInput = component.inputs[i];
|
|
256
|
+
const indexedInput = indexed.inputs[i];
|
|
257
|
+
// Verify type is preserved exactly
|
|
258
|
+
expect(indexedInput.type).toBe(originalInput.type);
|
|
259
|
+
expect(indexedInput.name).toBe(originalInput.name);
|
|
260
|
+
expect(indexedInput.optional).toBe(originalInput.optional);
|
|
261
|
+
expect(indexedInput.description).toBe(originalInput.description);
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
}), { numRuns: 100 });
|
|
266
|
+
});
|
|
267
|
+
it('should preserve output type information', () => {
|
|
268
|
+
fc.assert(fc.property(fc.record({
|
|
269
|
+
components: fc.array(fc.record({
|
|
270
|
+
name: fc.string({ minLength: 1, maxLength: 50 }).filter((s) => s.trim().length > 0),
|
|
271
|
+
id: fc.string({ minLength: 1 }),
|
|
272
|
+
file: fc.string({ minLength: 1 }),
|
|
273
|
+
type: fc.constant('component'),
|
|
274
|
+
deprecated: fc.boolean(),
|
|
275
|
+
outputs: fc.array(fc.record({
|
|
276
|
+
name: fc.string({ minLength: 1 }),
|
|
277
|
+
type: fc.oneof(fc.constant('EventEmitter<void>'), fc.constant('EventEmitter<string>'), fc.constant('EventEmitter<number>'), fc.constant('EventEmitter<boolean>'), fc.constant('EventEmitter<any>'), fc.constant('Subject<string>'), fc.constant('Observable<CustomEvent>')),
|
|
278
|
+
deprecated: fc.boolean(),
|
|
279
|
+
description: fc.option(fc.string(), { nil: undefined }),
|
|
280
|
+
})),
|
|
281
|
+
})),
|
|
282
|
+
directives: fc.constant([]),
|
|
283
|
+
pipes: fc.constant([]),
|
|
284
|
+
injectables: fc.constant([]),
|
|
285
|
+
interfaces: fc.constant([]),
|
|
286
|
+
classes: fc.constant([]),
|
|
287
|
+
modules: fc.constant([]),
|
|
288
|
+
}).filter((doc) => {
|
|
289
|
+
// Ensure unique names
|
|
290
|
+
const names = new Set(doc.components.map((c) => c.name));
|
|
291
|
+
return names.size === doc.components.length;
|
|
292
|
+
}), (documentation) => {
|
|
293
|
+
const builder = new IndexBuilder();
|
|
294
|
+
const index = builder.build(documentation);
|
|
295
|
+
// Verify that all output type information is preserved
|
|
296
|
+
for (const component of documentation.components) {
|
|
297
|
+
const indexed = index.byName.get(component.name);
|
|
298
|
+
expect(indexed).toBeDefined();
|
|
299
|
+
if (component.outputs && component.outputs.length > 0) {
|
|
300
|
+
expect(indexed.outputs).toBeDefined();
|
|
301
|
+
expect(indexed.outputs.length).toBe(component.outputs.length);
|
|
302
|
+
for (let i = 0; i < component.outputs.length; i++) {
|
|
303
|
+
const originalOutput = component.outputs[i];
|
|
304
|
+
const indexedOutput = indexed.outputs[i];
|
|
305
|
+
// Verify type is preserved exactly
|
|
306
|
+
expect(indexedOutput.type).toBe(originalOutput.type);
|
|
307
|
+
expect(indexedOutput.name).toBe(originalOutput.name);
|
|
308
|
+
expect(indexedOutput.description).toBe(originalOutput.description);
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
}), { numRuns: 100 });
|
|
313
|
+
});
|
|
314
|
+
it('should preserve method return type information', () => {
|
|
315
|
+
fc.assert(fc.property(fc.record({
|
|
316
|
+
components: fc.array(fc.record({
|
|
317
|
+
name: fc.string({ minLength: 1, maxLength: 50 }).filter((s) => s.trim().length > 0),
|
|
318
|
+
id: fc.string({ minLength: 1 }),
|
|
319
|
+
file: fc.string({ minLength: 1 }),
|
|
320
|
+
type: fc.constant('component'),
|
|
321
|
+
deprecated: fc.boolean(),
|
|
322
|
+
methods: fc.array(fc.record({
|
|
323
|
+
name: fc.string({ minLength: 1 }),
|
|
324
|
+
returnType: fc.oneof(fc.constant('void'), fc.constant('string'), fc.constant('number'), fc.constant('boolean'), fc.constant('Promise<void>'), fc.constant('Promise<string>'), fc.constant('Observable<any>'), fc.constant('Array<string>')),
|
|
325
|
+
deprecated: fc.boolean(),
|
|
326
|
+
args: fc.option(fc.array(fc.record({
|
|
327
|
+
name: fc.string({ minLength: 1 }),
|
|
328
|
+
type: fc.oneof(fc.constant('string'), fc.constant('number'), fc.constant('boolean'), fc.constant('any')),
|
|
329
|
+
deprecated: fc.boolean(),
|
|
330
|
+
})), { nil: undefined }),
|
|
331
|
+
})),
|
|
332
|
+
})),
|
|
333
|
+
directives: fc.constant([]),
|
|
334
|
+
pipes: fc.constant([]),
|
|
335
|
+
injectables: fc.constant([]),
|
|
336
|
+
interfaces: fc.constant([]),
|
|
337
|
+
classes: fc.constant([]),
|
|
338
|
+
modules: fc.constant([]),
|
|
339
|
+
}).filter((doc) => {
|
|
340
|
+
// Ensure unique names
|
|
341
|
+
const names = new Set(doc.components.map((c) => c.name));
|
|
342
|
+
return names.size === doc.components.length;
|
|
343
|
+
}), (documentation) => {
|
|
344
|
+
const builder = new IndexBuilder();
|
|
345
|
+
const index = builder.build(documentation);
|
|
346
|
+
// Verify that all method type information is preserved
|
|
347
|
+
for (const component of documentation.components) {
|
|
348
|
+
const indexed = index.byName.get(component.name);
|
|
349
|
+
expect(indexed).toBeDefined();
|
|
350
|
+
if (component.methods && component.methods.length > 0) {
|
|
351
|
+
expect(indexed.methods).toBeDefined();
|
|
352
|
+
expect(indexed.methods.length).toBe(component.methods.length);
|
|
353
|
+
for (let i = 0; i < component.methods.length; i++) {
|
|
354
|
+
const originalMethod = component.methods[i];
|
|
355
|
+
const indexedMethod = indexed.methods[i];
|
|
356
|
+
// Verify return type is preserved exactly
|
|
357
|
+
expect(indexedMethod.returnType).toBe(originalMethod.returnType);
|
|
358
|
+
expect(indexedMethod.name).toBe(originalMethod.name);
|
|
359
|
+
// Verify argument types are preserved
|
|
360
|
+
if (originalMethod.args) {
|
|
361
|
+
expect(indexedMethod.args).toBeDefined();
|
|
362
|
+
expect(indexedMethod.args.length).toBe(originalMethod.args.length);
|
|
363
|
+
for (let j = 0; j < originalMethod.args.length; j++) {
|
|
364
|
+
expect(indexedMethod.args[j].type).toBe(originalMethod.args[j].type);
|
|
365
|
+
expect(indexedMethod.args[j].name).toBe(originalMethod.args[j].name);
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
}), { numRuns: 100 });
|
|
372
|
+
});
|
|
373
|
+
it('should preserve property type information', () => {
|
|
374
|
+
fc.assert(fc.property(fc.record({
|
|
375
|
+
injectables: fc.array(fc.record({
|
|
376
|
+
name: fc.string({ minLength: 1, maxLength: 50 }).filter((s) => s.trim().length > 0),
|
|
377
|
+
id: fc.string({ minLength: 1 }),
|
|
378
|
+
file: fc.string({ minLength: 1 }),
|
|
379
|
+
type: fc.constant('injectable'),
|
|
380
|
+
deprecated: fc.boolean(),
|
|
381
|
+
properties: fc.array(fc.record({
|
|
382
|
+
name: fc.string({ minLength: 1 }),
|
|
383
|
+
type: fc.oneof(fc.constant('string'), fc.constant('number'), fc.constant('boolean'), fc.constant('any'), fc.constant('HttpClient'), fc.constant('Router'), fc.constant('ActivatedRoute')),
|
|
384
|
+
deprecated: fc.boolean(),
|
|
385
|
+
optional: fc.boolean(),
|
|
386
|
+
})),
|
|
387
|
+
})),
|
|
388
|
+
components: fc.constant([]),
|
|
389
|
+
directives: fc.constant([]),
|
|
390
|
+
pipes: fc.constant([]),
|
|
391
|
+
interfaces: fc.constant([]),
|
|
392
|
+
classes: fc.constant([]),
|
|
393
|
+
modules: fc.constant([]),
|
|
394
|
+
}).filter((doc) => {
|
|
395
|
+
// Ensure unique names
|
|
396
|
+
const names = new Set(doc.injectables.map((i) => i.name));
|
|
397
|
+
return names.size === doc.injectables.length;
|
|
398
|
+
}), (documentation) => {
|
|
399
|
+
const builder = new IndexBuilder();
|
|
400
|
+
const index = builder.build(documentation);
|
|
401
|
+
// Verify that all property type information is preserved
|
|
402
|
+
for (const injectable of documentation.injectables) {
|
|
403
|
+
const indexed = index.byName.get(injectable.name);
|
|
404
|
+
expect(indexed).toBeDefined();
|
|
405
|
+
if (injectable.properties && injectable.properties.length > 0) {
|
|
406
|
+
expect(indexed.properties).toBeDefined();
|
|
407
|
+
expect(indexed.properties.length).toBe(injectable.properties.length);
|
|
408
|
+
for (let i = 0; i < injectable.properties.length; i++) {
|
|
409
|
+
const originalProperty = injectable.properties[i];
|
|
410
|
+
const indexedProperty = indexed.properties[i];
|
|
411
|
+
// Verify type is preserved exactly
|
|
412
|
+
expect(indexedProperty.type).toBe(originalProperty.type);
|
|
413
|
+
expect(indexedProperty.name).toBe(originalProperty.name);
|
|
414
|
+
expect(indexedProperty.optional).toBe(originalProperty.optional);
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
}), { numRuns: 100 });
|
|
419
|
+
});
|
|
420
|
+
});
|
|
421
|
+
});
|
|
422
|
+
//# sourceMappingURL=index-builder.property.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-builder.property.test.js","sourceRoot":"","sources":["../../../src/query/__tests__/index-builder.property.test.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AASnD,uCAAuC;AAEvC;;GAEG;AACH,MAAM,kBAAkB,GAAG,EAAE,CAAC,MAAM,CAAC;IACnC,IAAI,EAAE,EAAE,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,MAAM,GA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I,CAAC,CAAC;4BACzD,MAAM,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC;wBACnE,CAAC;oBACH,CAAC;gBACH,CAAC;YACH,CAAC,CACF,EACD,EAAE,OAAO,EAAE,GAAG,EAAE,CACjB,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-builder.test.d.ts","sourceRoot":"","sources":["../../../src/query/__tests__/index-builder.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Unit tests for IndexBuilder
|
|
3
|
+
*/
|
|
4
|
+
import { describe, it, expect } from '@jest/globals';
|
|
5
|
+
import { IndexBuilder } from '../index-builder.js';
|
|
6
|
+
describe('IndexBuilder', () => {
|
|
7
|
+
it('should create an empty index from empty documentation', () => {
|
|
8
|
+
const builder = new IndexBuilder();
|
|
9
|
+
const emptyDoc = {
|
|
10
|
+
pipes: [],
|
|
11
|
+
components: [],
|
|
12
|
+
directives: [],
|
|
13
|
+
injectables: [],
|
|
14
|
+
interfaces: [],
|
|
15
|
+
classes: [],
|
|
16
|
+
modules: [],
|
|
17
|
+
};
|
|
18
|
+
const index = builder.build(emptyDoc);
|
|
19
|
+
expect(index.components).toHaveLength(0);
|
|
20
|
+
expect(index.directives).toHaveLength(0);
|
|
21
|
+
expect(index.pipes).toHaveLength(0);
|
|
22
|
+
expect(index.services).toHaveLength(0);
|
|
23
|
+
expect(index.totalCount).toBe(0);
|
|
24
|
+
expect(index.byName.size).toBe(0);
|
|
25
|
+
expect(index.bySelector.size).toBe(0);
|
|
26
|
+
});
|
|
27
|
+
it('should index a single component', () => {
|
|
28
|
+
const builder = new IndexBuilder();
|
|
29
|
+
const doc = {
|
|
30
|
+
pipes: [],
|
|
31
|
+
components: [
|
|
32
|
+
{
|
|
33
|
+
name: 'TestComponent',
|
|
34
|
+
id: 'test-id',
|
|
35
|
+
file: 'test.ts',
|
|
36
|
+
type: 'component',
|
|
37
|
+
selector: 'app-test',
|
|
38
|
+
deprecated: false,
|
|
39
|
+
deprecationMessage: '',
|
|
40
|
+
},
|
|
41
|
+
],
|
|
42
|
+
directives: [],
|
|
43
|
+
injectables: [],
|
|
44
|
+
interfaces: [],
|
|
45
|
+
classes: [],
|
|
46
|
+
modules: [],
|
|
47
|
+
};
|
|
48
|
+
const index = builder.build(doc);
|
|
49
|
+
expect(index.components).toHaveLength(1);
|
|
50
|
+
expect(index.totalCount).toBe(1);
|
|
51
|
+
expect(index.byName.has('TestComponent')).toBe(true);
|
|
52
|
+
expect(index.bySelector.has('app-test')).toBe(true);
|
|
53
|
+
});
|
|
54
|
+
});
|
|
55
|
+
//# sourceMappingURL=index-builder.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-builder.test.js","sourceRoot":"","sources":["../../../src/query/__tests__/index-builder.test.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAGnD,QAAQ,CAAC,cAAc,EAAE,GAAG,EAAE;IAC5B,EAAE,CAAC,uDAAuD,EAAE,GAAG,EAAE;QAC/D,MAAM,OAAO,GAAG,IAAI,YAAY,EAAE,CAAC;QACnC,MAAM,QAAQ,GAA0B;YACtC,KAAK,EAAE,EAAE;YACT,UAAU,EAAE,EAAE;YACd,UAAU,EAAE,EAAE;YACd,WAAW,EAAE,EAAE;YACf,UAAU,EAAE,EAAE;YACd,OAAO,EAAE,EAAE;YACX,OAAO,EAAE,EAAE;SACZ,CAAC;QAEF,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;QAEtC,MAAM,CAA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AAC,UAAU,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACjC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACrD,MAAM,CAAC,KAAK,CAAC,UAAU,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtD,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"result-formatter-deprecation.test.d.ts","sourceRoot":"","sources":["../../../src/query/__tests__/result-formatter-deprecation.test.ts"],"names":[],"mappings":""}
|