UNPKG

@tiberriver256/mcp-server-azure-devops

Version:

Azure DevOps reference server for the Model Context Protocol (MCP)

36 lines 1.41 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const feature_1 = require("./feature"); const test_helpers_1 = require("@/shared/test/test-helpers"); describe('getWikis integration', () => { let connection = null; let projectName; beforeAll(async () => { // Get a real connection using environment variables connection = await (0, test_helpers_1.getTestConnection)(); projectName = process.env.AZURE_DEVOPS_DEFAULT_PROJECT || 'DefaultProject'; }); test('should retrieve wikis from Azure DevOps', async () => { // Skip if no connection is available if ((0, test_helpers_1.shouldSkipIntegrationTest)()) { return; } // This connection must be available if we didn't skip if (!connection) { throw new Error('Connection should be available when test is not skipped'); } // Get the wikis const result = await (0, feature_1.getWikis)(connection, { projectId: projectName, }); // Verify the result expect(result).toBeDefined(); expect(Array.isArray(result)).toBe(true); if (result.length > 0) { expect(result[0].name).toBeDefined(); expect(result[0].id).toBeDefined(); expect(result[0].type).toBeDefined(); } }); }); //# sourceMappingURL=feature.spec.int.js.map