@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,498 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Integration tests for DocumentationLoader
|
|
3
|
+
* Feature: url-based-documentation-path
|
|
4
|
+
* Tests automatic source selection and end-to-end loading scenarios
|
|
5
|
+
* Requirements: 1.5, 6.5
|
|
6
|
+
*/
|
|
7
|
+
import { describe, it, expect, beforeEach, afterEach, jest } from '@jest/globals';
|
|
8
|
+
import { DocumentationLoader } from '../documentation-loader.js';
|
|
9
|
+
import { HttpClient } from '../http-client.js';
|
|
10
|
+
import * as fs from 'fs';
|
|
11
|
+
import * as path from 'path';
|
|
12
|
+
import * as os from 'os';
|
|
13
|
+
// Helper to create minimal valid CompodocDocumentation
|
|
14
|
+
const createMockDocumentation = (id = 'default') => ({
|
|
15
|
+
components: [{ name: `Component${id}`, id: `comp-${id}`, file: 'test.ts', type: 'component', deprecated: false }],
|
|
16
|
+
modules: [],
|
|
17
|
+
directives: [],
|
|
18
|
+
pipes: [],
|
|
19
|
+
classes: [],
|
|
20
|
+
interfaces: [],
|
|
21
|
+
injectables: [],
|
|
22
|
+
});
|
|
23
|
+
describe('DocumentationLoader Integration Tests', () => {
|
|
24
|
+
let tempDir;
|
|
25
|
+
let testFilePath;
|
|
26
|
+
let loader;
|
|
27
|
+
let originalFetch;
|
|
28
|
+
beforeEach(() => {
|
|
29
|
+
// Create temporary directory for test files
|
|
30
|
+
tempDir = fs.mkdtempSync(path.join(os.tmpdir(), 'doc-loader-integration-'));
|
|
31
|
+
testFilePath = path.join(tempDir, 'documentation.json');
|
|
32
|
+
// Store original fetch method
|
|
33
|
+
originalFetch = HttpClient.prototype.fetch;
|
|
34
|
+
});
|
|
35
|
+
afterEach(async () => {
|
|
36
|
+
// Restore original fetch method
|
|
37
|
+
HttpClient.prototype.fetch = originalFetch;
|
|
38
|
+
if (loader) {
|
|
39
|
+
await loader.dispose();
|
|
40
|
+
}
|
|
41
|
+
// Clean up temporary directory
|
|
42
|
+
if (fs.existsSync(tempDir)) {
|
|
43
|
+
fs.rmSync(tempDir, { recursive: true, force: true });
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
describe('Local File Path Loading (Requirement 6.5)', () => {
|
|
47
|
+
it('should load documentation from local file path', async () => {
|
|
48
|
+
const mockDoc = createMockDocumentation('local1');
|
|
49
|
+
fs.writeFileSync(testFilePath, JSON.stringify(mockDoc));
|
|
50
|
+
loader = new DocumentationLoader({
|
|
51
|
+
path: testFilePath,
|
|
52
|
+
watchForChanges: false,
|
|
53
|
+
});
|
|
54
|
+
const result = await loader.load();
|
|
55
|
+
expect(result.success).toBe(true);
|
|
56
|
+
expect(result.data).toBeDefined();
|
|
57
|
+
expect(result.data?.components).toHaveLength(1);
|
|
58
|
+
expect(result.data?.components[0].name).toBe('Componentlocal1');
|
|
59
|
+
});
|
|
60
|
+
it('should automatically select LocalDocumentationSource for file paths', async () => {
|
|
61
|
+
const mockDoc = createMockDocumentation('auto-local');
|
|
62
|
+
fs.writeFileSync(testFilePath, JSON.stringify(mockDoc));
|
|
63
|
+
loader = new DocumentationLoader({
|
|
64
|
+
path: testFilePath,
|
|
65
|
+
watchForChanges: false,
|
|
66
|
+
});
|
|
67
|
+
const result = await loader.load();
|
|
68
|
+
expect(result.success).toBe(true);
|
|
69
|
+
expect(result.data?.components[0].name).toBe('Componentauto-local');
|
|
70
|
+
});
|
|
71
|
+
it('should handle relative local file paths', async () => {
|
|
72
|
+
const mockDoc = createMockDocumentation('relative');
|
|
73
|
+
fs.writeFileSync(testFilePath, JSON.stringify(mockDoc));
|
|
74
|
+
const relativePath = path.relative(process.cwd(), testFilePath);
|
|
75
|
+
loader = new DocumentationLoader({
|
|
76
|
+
path: relativePath,
|
|
77
|
+
watchForChanges: false,
|
|
78
|
+
});
|
|
79
|
+
const result = await loader.load();
|
|
80
|
+
expect(result.success).toBe(true);
|
|
81
|
+
expect(result.data).toBeDefined();
|
|
82
|
+
});
|
|
83
|
+
it('should watch local files when watchForChanges is true', async () => {
|
|
84
|
+
const mockDoc1 = createMockDocumentation('v1');
|
|
85
|
+
fs.writeFileSync(testFilePath, JSON.stringify(mockDoc1));
|
|
86
|
+
const onReloadSpy = jest.fn();
|
|
87
|
+
loader = new DocumentationLoader({
|
|
88
|
+
path: testFilePath,
|
|
89
|
+
watchForChanges: true,
|
|
90
|
+
reloadDebounce: 100,
|
|
91
|
+
onReload: onReloadSpy,
|
|
92
|
+
});
|
|
93
|
+
await loader.load();
|
|
94
|
+
// Give watcher time to initialize
|
|
95
|
+
await new Promise(resolve => setTimeout(resolve, 300));
|
|
96
|
+
// Modify file
|
|
97
|
+
const mockDoc2 = createMockDocumentation('v2');
|
|
98
|
+
fs.writeFileSync(testFilePath, JSON.stringify(mockDoc2));
|
|
99
|
+
// Wait for debounce and reload (debounce + extra time for file system events)
|
|
100
|
+
await new Promise(resolve => setTimeout(resolve, 400));
|
|
101
|
+
expect(onReloadSpy).toHaveBeenCalled();
|
|
102
|
+
expect(onReloadSpy).toHaveBeenCalledWith(expect.objectContaining({
|
|
103
|
+
components: expect.arrayContaining([
|
|
104
|
+
expect.objectContaining({ name: 'Componentv2' })
|
|
105
|
+
])
|
|
106
|
+
}));
|
|
107
|
+
});
|
|
108
|
+
});
|
|
109
|
+
describe('HTTP URL Loading (Requirement 1.5)', () => {
|
|
110
|
+
it('should load documentation from HTTP URL', async () => {
|
|
111
|
+
const mockDoc = createMockDocumentation('http1');
|
|
112
|
+
const mockFetch = jest.fn().mockResolvedValue({
|
|
113
|
+
status: 200,
|
|
114
|
+
statusText: 'OK',
|
|
115
|
+
data: JSON.stringify(mockDoc),
|
|
116
|
+
headers: new Map(),
|
|
117
|
+
});
|
|
118
|
+
HttpClient.prototype.fetch = mockFetch;
|
|
119
|
+
loader = new DocumentationLoader({
|
|
120
|
+
path: 'http://example.com/docs.json',
|
|
121
|
+
watchForChanges: false,
|
|
122
|
+
});
|
|
123
|
+
const result = await loader.load();
|
|
124
|
+
expect(result.success).toBe(true);
|
|
125
|
+
expect(result.data).toBeDefined();
|
|
126
|
+
expect(result.data?.components).toHaveLength(1);
|
|
127
|
+
expect(result.data?.components[0].name).toBe('Componenthttp1');
|
|
128
|
+
expect(mockFetch).toHaveBeenCalledWith('http://example.com/docs.json', undefined);
|
|
129
|
+
});
|
|
130
|
+
it('should automatically select RemoteDocumentationSource for HTTP URLs', async () => {
|
|
131
|
+
const mockDoc = createMockDocumentation('auto-http');
|
|
132
|
+
const mockFetch = jest.fn().mockResolvedValue({
|
|
133
|
+
status: 200,
|
|
134
|
+
statusText: 'OK',
|
|
135
|
+
data: JSON.stringify(mockDoc),
|
|
136
|
+
headers: new Map(),
|
|
137
|
+
});
|
|
138
|
+
HttpClient.prototype.fetch = mockFetch;
|
|
139
|
+
loader = new DocumentationLoader({
|
|
140
|
+
path: 'http://docs.example.com/documentation.json',
|
|
141
|
+
timeout: 5000,
|
|
142
|
+
maxRetries: 3,
|
|
143
|
+
pollingInterval: 60000,
|
|
144
|
+
});
|
|
145
|
+
const result = await loader.load();
|
|
146
|
+
expect(result.success).toBe(true);
|
|
147
|
+
expect(result.data?.components[0].name).toBe('Componentauto-http');
|
|
148
|
+
});
|
|
149
|
+
it('should poll HTTP URLs when monitoring is started', async () => {
|
|
150
|
+
jest.useFakeTimers();
|
|
151
|
+
const mockDoc = createMockDocumentation('poll-http');
|
|
152
|
+
const mockFetch = jest.fn().mockResolvedValue({
|
|
153
|
+
status: 200,
|
|
154
|
+
statusText: 'OK',
|
|
155
|
+
data: JSON.stringify(mockDoc),
|
|
156
|
+
headers: new Map(),
|
|
157
|
+
});
|
|
158
|
+
HttpClient.prototype.fetch = mockFetch;
|
|
159
|
+
loader = new DocumentationLoader({
|
|
160
|
+
path: 'http://example.com/docs.json',
|
|
161
|
+
pollingInterval: 10000,
|
|
162
|
+
});
|
|
163
|
+
await loader.load();
|
|
164
|
+
mockFetch.mockClear();
|
|
165
|
+
// Start monitoring (which starts polling for remote sources)
|
|
166
|
+
loader.source.startMonitoring();
|
|
167
|
+
// Advance time to trigger poll
|
|
168
|
+
jest.advanceTimersByTime(10000);
|
|
169
|
+
await Promise.resolve();
|
|
170
|
+
expect(mockFetch).toHaveBeenCalledTimes(1);
|
|
171
|
+
jest.useRealTimers();
|
|
172
|
+
});
|
|
173
|
+
it('should handle HTTP URLs with ports and paths', async () => {
|
|
174
|
+
const mockDoc = createMockDocumentation('complex-http');
|
|
175
|
+
const mockFetch = jest.fn().mockResolvedValue({
|
|
176
|
+
status: 200,
|
|
177
|
+
statusText: 'OK',
|
|
178
|
+
data: JSON.stringify(mockDoc),
|
|
179
|
+
headers: new Map(),
|
|
180
|
+
});
|
|
181
|
+
HttpClient.prototype.fetch = mockFetch;
|
|
182
|
+
loader = new DocumentationLoader({
|
|
183
|
+
path: 'http://localhost:8080/api/v1/docs.json',
|
|
184
|
+
watchForChanges: false,
|
|
185
|
+
});
|
|
186
|
+
const result = await loader.load();
|
|
187
|
+
expect(result.success).toBe(true);
|
|
188
|
+
expect(mockFetch).toHaveBeenCalledWith('http://localhost:8080/api/v1/docs.json', undefined);
|
|
189
|
+
});
|
|
190
|
+
});
|
|
191
|
+
describe('HTTPS URL Loading (Requirement 1.5)', () => {
|
|
192
|
+
it('should load documentation from HTTPS URL', async () => {
|
|
193
|
+
const mockDoc = createMockDocumentation('https1');
|
|
194
|
+
const mockFetch = jest.fn().mockResolvedValue({
|
|
195
|
+
status: 200,
|
|
196
|
+
statusText: 'OK',
|
|
197
|
+
data: JSON.stringify(mockDoc),
|
|
198
|
+
headers: new Map(),
|
|
199
|
+
});
|
|
200
|
+
HttpClient.prototype.fetch = mockFetch;
|
|
201
|
+
loader = new DocumentationLoader({
|
|
202
|
+
path: 'https://secure.example.com/docs.json',
|
|
203
|
+
watchForChanges: false,
|
|
204
|
+
});
|
|
205
|
+
const result = await loader.load();
|
|
206
|
+
expect(result.success).toBe(true);
|
|
207
|
+
expect(result.data).toBeDefined();
|
|
208
|
+
expect(result.data?.components).toHaveLength(1);
|
|
209
|
+
expect(result.data?.components[0].name).toBe('Componenthttps1');
|
|
210
|
+
expect(mockFetch).toHaveBeenCalledWith('https://secure.example.com/docs.json', undefined);
|
|
211
|
+
});
|
|
212
|
+
it('should automatically select RemoteDocumentationSource for HTTPS URLs', async () => {
|
|
213
|
+
const mockDoc = createMockDocumentation('auto-https');
|
|
214
|
+
const mockFetch = jest.fn().mockResolvedValue({
|
|
215
|
+
status: 200,
|
|
216
|
+
statusText: 'OK',
|
|
217
|
+
data: JSON.stringify(mockDoc),
|
|
218
|
+
headers: new Map(),
|
|
219
|
+
});
|
|
220
|
+
HttpClient.prototype.fetch = mockFetch;
|
|
221
|
+
loader = new DocumentationLoader({
|
|
222
|
+
path: 'https://api.example.com/documentation.json',
|
|
223
|
+
timeout: 8000,
|
|
224
|
+
maxRetries: 2,
|
|
225
|
+
pollingInterval: 30000,
|
|
226
|
+
});
|
|
227
|
+
const result = await loader.load();
|
|
228
|
+
expect(result.success).toBe(true);
|
|
229
|
+
expect(result.data?.components[0].name).toBe('Componentauto-https');
|
|
230
|
+
});
|
|
231
|
+
it('should poll HTTPS URLs when monitoring is started', async () => {
|
|
232
|
+
jest.useFakeTimers();
|
|
233
|
+
const mockDoc = createMockDocumentation('poll-https');
|
|
234
|
+
const mockFetch = jest.fn().mockResolvedValue({
|
|
235
|
+
status: 200,
|
|
236
|
+
statusText: 'OK',
|
|
237
|
+
data: JSON.stringify(mockDoc),
|
|
238
|
+
headers: new Map(),
|
|
239
|
+
});
|
|
240
|
+
HttpClient.prototype.fetch = mockFetch;
|
|
241
|
+
loader = new DocumentationLoader({
|
|
242
|
+
path: 'https://example.com/docs.json',
|
|
243
|
+
pollingInterval: 15000,
|
|
244
|
+
});
|
|
245
|
+
await loader.load();
|
|
246
|
+
mockFetch.mockClear();
|
|
247
|
+
// Start monitoring
|
|
248
|
+
loader.source.startMonitoring();
|
|
249
|
+
// Advance time to trigger poll
|
|
250
|
+
jest.advanceTimersByTime(15000);
|
|
251
|
+
await Promise.resolve();
|
|
252
|
+
expect(mockFetch).toHaveBeenCalledTimes(1);
|
|
253
|
+
jest.useRealTimers();
|
|
254
|
+
});
|
|
255
|
+
it('should handle HTTPS URLs with query parameters', async () => {
|
|
256
|
+
const mockDoc = createMockDocumentation('query-https');
|
|
257
|
+
const mockFetch = jest.fn().mockResolvedValue({
|
|
258
|
+
status: 200,
|
|
259
|
+
statusText: 'OK',
|
|
260
|
+
data: JSON.stringify(mockDoc),
|
|
261
|
+
headers: new Map(),
|
|
262
|
+
});
|
|
263
|
+
HttpClient.prototype.fetch = mockFetch;
|
|
264
|
+
loader = new DocumentationLoader({
|
|
265
|
+
path: 'https://api.example.com/docs.json?version=latest&format=json',
|
|
266
|
+
watchForChanges: false,
|
|
267
|
+
});
|
|
268
|
+
const result = await loader.load();
|
|
269
|
+
expect(result.success).toBe(true);
|
|
270
|
+
expect(mockFetch).toHaveBeenCalledWith('https://api.example.com/docs.json?version=latest&format=json', undefined);
|
|
271
|
+
});
|
|
272
|
+
});
|
|
273
|
+
describe('Automatic Source Selection (Requirement 1.5, 6.5)', () => {
|
|
274
|
+
it('should select LocalDocumentationSource for absolute file paths', async () => {
|
|
275
|
+
const mockDoc = createMockDocumentation('absolute');
|
|
276
|
+
fs.writeFileSync(testFilePath, JSON.stringify(mockDoc));
|
|
277
|
+
loader = new DocumentationLoader({
|
|
278
|
+
path: testFilePath, // Absolute path
|
|
279
|
+
watchForChanges: false,
|
|
280
|
+
});
|
|
281
|
+
const result = await loader.load();
|
|
282
|
+
expect(result.success).toBe(true);
|
|
283
|
+
// Verify it's using local source by checking that no HTTP fetch was made
|
|
284
|
+
expect(result.data?.components[0].name).toBe('Componentabsolute');
|
|
285
|
+
});
|
|
286
|
+
it('should select LocalDocumentationSource for relative file paths', async () => {
|
|
287
|
+
const mockDoc = createMockDocumentation('relative');
|
|
288
|
+
fs.writeFileSync(testFilePath, JSON.stringify(mockDoc));
|
|
289
|
+
const relativePath = path.relative(process.cwd(), testFilePath);
|
|
290
|
+
loader = new DocumentationLoader({
|
|
291
|
+
path: relativePath,
|
|
292
|
+
watchForChanges: false,
|
|
293
|
+
});
|
|
294
|
+
const result = await loader.load();
|
|
295
|
+
expect(result.success).toBe(true);
|
|
296
|
+
expect(result.data?.components[0].name).toBe('Componentrelative');
|
|
297
|
+
});
|
|
298
|
+
it('should select RemoteDocumentationSource for http:// URLs', async () => {
|
|
299
|
+
const mockDoc = createMockDocumentation('http-auto');
|
|
300
|
+
const mockFetch = jest.fn().mockResolvedValue({
|
|
301
|
+
status: 200,
|
|
302
|
+
statusText: 'OK',
|
|
303
|
+
data: JSON.stringify(mockDoc),
|
|
304
|
+
headers: new Map(),
|
|
305
|
+
});
|
|
306
|
+
HttpClient.prototype.fetch = mockFetch;
|
|
307
|
+
loader = new DocumentationLoader({
|
|
308
|
+
path: 'http://example.com/docs.json',
|
|
309
|
+
watchForChanges: false,
|
|
310
|
+
});
|
|
311
|
+
const result = await loader.load();
|
|
312
|
+
expect(result.success).toBe(true);
|
|
313
|
+
expect(mockFetch).toHaveBeenCalled();
|
|
314
|
+
expect(result.data?.components[0].name).toBe('Componenthttp-auto');
|
|
315
|
+
});
|
|
316
|
+
it('should select RemoteDocumentationSource for https:// URLs', async () => {
|
|
317
|
+
const mockDoc = createMockDocumentation('https-auto');
|
|
318
|
+
const mockFetch = jest.fn().mockResolvedValue({
|
|
319
|
+
status: 200,
|
|
320
|
+
statusText: 'OK',
|
|
321
|
+
data: JSON.stringify(mockDoc),
|
|
322
|
+
headers: new Map(),
|
|
323
|
+
});
|
|
324
|
+
HttpClient.prototype.fetch = mockFetch;
|
|
325
|
+
loader = new DocumentationLoader({
|
|
326
|
+
path: 'https://secure.example.com/docs.json',
|
|
327
|
+
watchForChanges: false,
|
|
328
|
+
});
|
|
329
|
+
const result = await loader.load();
|
|
330
|
+
expect(result.success).toBe(true);
|
|
331
|
+
expect(mockFetch).toHaveBeenCalled();
|
|
332
|
+
expect(result.data?.components[0].name).toBe('Componenthttps-auto');
|
|
333
|
+
});
|
|
334
|
+
it('should pass correct options to LocalDocumentationSource', async () => {
|
|
335
|
+
const mockDoc = createMockDocumentation('local-opts');
|
|
336
|
+
fs.writeFileSync(testFilePath, JSON.stringify(mockDoc));
|
|
337
|
+
const onReloadSpy = jest.fn();
|
|
338
|
+
const onErrorSpy = jest.fn();
|
|
339
|
+
loader = new DocumentationLoader({
|
|
340
|
+
path: testFilePath,
|
|
341
|
+
watchForChanges: true,
|
|
342
|
+
reloadDebounce: 300,
|
|
343
|
+
onReload: onReloadSpy,
|
|
344
|
+
onError: onErrorSpy,
|
|
345
|
+
});
|
|
346
|
+
const result = await loader.load();
|
|
347
|
+
expect(result.success).toBe(true);
|
|
348
|
+
// Verify options were passed correctly by testing behavior
|
|
349
|
+
await new Promise(resolve => setTimeout(resolve, 200));
|
|
350
|
+
// Modify file
|
|
351
|
+
fs.writeFileSync(testFilePath, JSON.stringify(createMockDocumentation('v2')));
|
|
352
|
+
// Wait for debounce + extra time
|
|
353
|
+
await new Promise(resolve => setTimeout(resolve, 500));
|
|
354
|
+
expect(onReloadSpy).toHaveBeenCalled();
|
|
355
|
+
});
|
|
356
|
+
it('should pass correct options to RemoteDocumentationSource', async () => {
|
|
357
|
+
const mockDoc = createMockDocumentation('remote-opts');
|
|
358
|
+
const mockFetch = jest.fn().mockResolvedValue({
|
|
359
|
+
status: 200,
|
|
360
|
+
statusText: 'OK',
|
|
361
|
+
data: JSON.stringify(mockDoc),
|
|
362
|
+
headers: new Map(),
|
|
363
|
+
});
|
|
364
|
+
HttpClient.prototype.fetch = mockFetch;
|
|
365
|
+
const onReloadSpy = jest.fn();
|
|
366
|
+
const onErrorSpy = jest.fn();
|
|
367
|
+
loader = new DocumentationLoader({
|
|
368
|
+
path: 'https://example.com/docs.json',
|
|
369
|
+
timeout: 8000,
|
|
370
|
+
maxRetries: 5,
|
|
371
|
+
pollingInterval: 20000,
|
|
372
|
+
onReload: onReloadSpy,
|
|
373
|
+
onError: onErrorSpy,
|
|
374
|
+
});
|
|
375
|
+
const result = await loader.load();
|
|
376
|
+
expect(result.success).toBe(true);
|
|
377
|
+
expect(mockFetch).toHaveBeenCalled();
|
|
378
|
+
});
|
|
379
|
+
});
|
|
380
|
+
describe('End-to-End Scenarios', () => {
|
|
381
|
+
it('should handle switching between local and remote sources', async () => {
|
|
382
|
+
// First, load from local file
|
|
383
|
+
const localDoc = createMockDocumentation('local');
|
|
384
|
+
fs.writeFileSync(testFilePath, JSON.stringify(localDoc));
|
|
385
|
+
loader = new DocumentationLoader({
|
|
386
|
+
path: testFilePath,
|
|
387
|
+
watchForChanges: false,
|
|
388
|
+
});
|
|
389
|
+
const localResult = await loader.load();
|
|
390
|
+
expect(localResult.success).toBe(true);
|
|
391
|
+
expect(localResult.data?.components[0].name).toBe('Componentlocal');
|
|
392
|
+
await loader.dispose();
|
|
393
|
+
// Then, load from remote URL
|
|
394
|
+
const remoteDoc = createMockDocumentation('remote');
|
|
395
|
+
const mockFetch = jest.fn().mockResolvedValue({
|
|
396
|
+
status: 200,
|
|
397
|
+
statusText: 'OK',
|
|
398
|
+
data: JSON.stringify(remoteDoc),
|
|
399
|
+
headers: new Map(),
|
|
400
|
+
});
|
|
401
|
+
HttpClient.prototype.fetch = mockFetch;
|
|
402
|
+
loader = new DocumentationLoader({
|
|
403
|
+
path: 'https://example.com/docs.json',
|
|
404
|
+
watchForChanges: false,
|
|
405
|
+
});
|
|
406
|
+
const remoteResult = await loader.load();
|
|
407
|
+
expect(remoteResult.success).toBe(true);
|
|
408
|
+
expect(remoteResult.data?.components[0].name).toBe('Componentremote');
|
|
409
|
+
});
|
|
410
|
+
it('should properly clean up resources on dispose', async () => {
|
|
411
|
+
const mockDoc = createMockDocumentation('cleanup');
|
|
412
|
+
fs.writeFileSync(testFilePath, JSON.stringify(mockDoc));
|
|
413
|
+
loader = new DocumentationLoader({
|
|
414
|
+
path: testFilePath,
|
|
415
|
+
watchForChanges: true,
|
|
416
|
+
reloadDebounce: 100,
|
|
417
|
+
});
|
|
418
|
+
await loader.load();
|
|
419
|
+
expect(loader.getCurrentData()).toBeDefined();
|
|
420
|
+
await loader.dispose();
|
|
421
|
+
expect(loader.getCurrentData()).toBeUndefined();
|
|
422
|
+
});
|
|
423
|
+
it('should handle errors from local source gracefully', async () => {
|
|
424
|
+
const nonExistentPath = path.join(tempDir, 'nonexistent.json');
|
|
425
|
+
loader = new DocumentationLoader({
|
|
426
|
+
path: nonExistentPath,
|
|
427
|
+
watchForChanges: false,
|
|
428
|
+
});
|
|
429
|
+
const result = await loader.load();
|
|
430
|
+
expect(result.success).toBe(false);
|
|
431
|
+
expect(result.error).toBeDefined();
|
|
432
|
+
expect(result.error).toContain('not found');
|
|
433
|
+
});
|
|
434
|
+
it('should handle errors from remote source gracefully', async () => {
|
|
435
|
+
const mockFetch = jest.fn().mockResolvedValue({
|
|
436
|
+
status: 500,
|
|
437
|
+
statusText: 'Internal Server Error',
|
|
438
|
+
data: '',
|
|
439
|
+
headers: new Map(),
|
|
440
|
+
});
|
|
441
|
+
HttpClient.prototype.fetch = mockFetch;
|
|
442
|
+
loader = new DocumentationLoader({
|
|
443
|
+
path: 'https://example.com/docs.json',
|
|
444
|
+
watchForChanges: false,
|
|
445
|
+
});
|
|
446
|
+
const result = await loader.load();
|
|
447
|
+
expect(result.success).toBe(false);
|
|
448
|
+
expect(result.error).toBeDefined();
|
|
449
|
+
expect(result.error).toContain('500');
|
|
450
|
+
});
|
|
451
|
+
it('should maintain data consistency across multiple loads', async () => {
|
|
452
|
+
const mockDoc1 = createMockDocumentation('v1');
|
|
453
|
+
const mockDoc2 = createMockDocumentation('v2');
|
|
454
|
+
const mockFetch = jest.fn()
|
|
455
|
+
.mockResolvedValueOnce({
|
|
456
|
+
status: 200,
|
|
457
|
+
statusText: 'OK',
|
|
458
|
+
data: JSON.stringify(mockDoc1),
|
|
459
|
+
headers: new Map(),
|
|
460
|
+
})
|
|
461
|
+
.mockResolvedValueOnce({
|
|
462
|
+
status: 200,
|
|
463
|
+
statusText: 'OK',
|
|
464
|
+
data: JSON.stringify(mockDoc2),
|
|
465
|
+
headers: new Map(),
|
|
466
|
+
});
|
|
467
|
+
HttpClient.prototype.fetch = mockFetch;
|
|
468
|
+
loader = new DocumentationLoader({
|
|
469
|
+
path: 'https://example.com/docs.json',
|
|
470
|
+
watchForChanges: false,
|
|
471
|
+
});
|
|
472
|
+
const result1 = await loader.load();
|
|
473
|
+
expect(result1.data?.components[0].name).toBe('Componentv1');
|
|
474
|
+
expect(loader.getCurrentData()?.components[0].name).toBe('Componentv1');
|
|
475
|
+
const result2 = await loader.load();
|
|
476
|
+
expect(result2.data?.components[0].name).toBe('Componentv2');
|
|
477
|
+
expect(loader.getCurrentData()?.components[0].name).toBe('Componentv2');
|
|
478
|
+
});
|
|
479
|
+
it('should use default configuration values when not specified', async () => {
|
|
480
|
+
const mockDoc = createMockDocumentation('defaults');
|
|
481
|
+
const mockFetch = jest.fn().mockResolvedValue({
|
|
482
|
+
status: 200,
|
|
483
|
+
statusText: 'OK',
|
|
484
|
+
data: JSON.stringify(mockDoc),
|
|
485
|
+
headers: new Map(),
|
|
486
|
+
});
|
|
487
|
+
HttpClient.prototype.fetch = mockFetch;
|
|
488
|
+
// Create loader with minimal options
|
|
489
|
+
loader = new DocumentationLoader({
|
|
490
|
+
path: 'https://example.com/docs.json',
|
|
491
|
+
});
|
|
492
|
+
const result = await loader.load();
|
|
493
|
+
expect(result.success).toBe(true);
|
|
494
|
+
// Defaults should be applied internally (timeout: 10000, maxRetries: 3, pollingInterval: 60000)
|
|
495
|
+
});
|
|
496
|
+
});
|
|
497
|
+
});
|
|
498
|
+
//# sourceMappingURL=documentation-loader.integration.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"documentation-loader.integration.test.js","sourceRoot":"","sources":["../../../src/loader/__tests__/documentation-loader.integration.test.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAClF,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAEjE,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;AACzB,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAC7B,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;AAEzB,uDAAuD;AACvD,MAAM,uBAAuB,GAAG,CAAC,KAAa,SAAS,EAAyB,EAAE,CAAC,CAAC;IAClF,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,EAAE,EAAE,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,WAAoB,EAAE,UAAU,EAAE,KAAK,EAAE,CAAC;IAC1H,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EAAE,CAAC;YACpC,MAAM,CAAC,OAAO,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;YAC7D,MAAM,CAAC,MAAM,CAAC,cAAc,EAAE,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QAC1E,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,4DAA4D,EAAE,KAAK,IAAI,EAAE;YAC1E,MAAM,OAAO,GAAG,uBAAuB,CAAC,UAAU,CAAC,CAAC;YACpD,MAAM,SAAS,GAAG,IAAI,CAAC,EAAE,EAAsB,CAAC,iBAAiB,CAAC;gBAChE,MAAM,EAAE,GAAG;gBACX,UAAU,EAAE,IAAI;gBAChB,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC;gBAC7B,OAAO,EAAE,IAAI,GAAG,EAAE;aACnB,CAAC,CAAC;YACH,UAAU,CAAC,SAAS,CAAC,KAAK,GAAG,SAAS,CAAC;YAEvC,qCAAqC;YACrC,MAAM,GAAG,IAAI,mBAAmB,CAAC;gBAC/B,IAAI,EAAE,+BAA+B;aACtC,CAAC,CAAC;YAEH,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,IAAI,EAAE,CAAC;YAEnC,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAClC,gGAAgG;QAClG,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"documentation-loader.property.test.d.ts","sourceRoot":"","sources":["../../../src/loader/__tests__/documentation-loader.property.test.ts"],"names":[],"mappings":""}
|