UNPKG

@tiberriver256/mcp-server-azure-devops

Version:

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

38 lines 1.26 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getTestConfig = getTestConfig; exports.shouldSkipIntegrationTest = shouldSkipIntegrationTest; const auth_1 = require("../../../shared/auth"); /** * Creates test configuration for Azure DevOps tests * * @returns Azure DevOps config */ function getTestConfig() { // If we have real credentials, use them const orgUrl = process.env.AZURE_DEVOPS_ORG_URL; const pat = process.env.AZURE_DEVOPS_PAT; if (orgUrl && pat) { return { organizationUrl: orgUrl, authMethod: auth_1.AuthenticationMethod.PersonalAccessToken, personalAccessToken: pat, defaultProject: process.env.AZURE_DEVOPS_DEFAULT_PROJECT, }; } // If we don't have credentials, return null return null; } /** * Determines if integration tests should be skipped * * @returns true if integration tests should be skipped */ function shouldSkipIntegrationTest() { if (!process.env.AZURE_DEVOPS_ORG_URL || !process.env.AZURE_DEVOPS_PAT) { console.log('Skipping integration test: No real Azure DevOps connection available'); return true; } return false; } //# sourceMappingURL=test-helpers.js.map