@aashari/mcp-server-aws-sso
Version:
Node.js/TypeScript MCP server for AWS Single Sign-On (SSO). Enables AI systems (LLMs) with tools to initiate SSO login (device auth flow), list accounts/roles, and securely execute AWS CLI commands using temporary credentials. Streamlines AI interaction w
37 lines (36 loc) • 1.21 kB
JavaScript
;
/**
* Jest global setup for suppressing console output during tests
* This file is used to mock console methods to reduce noise in test output
*/
Object.defineProperty(exports, "__esModule", { value: true });
const globals_1 = require("@jest/globals");
// Store original console methods
const originalConsole = {
log: console.log,
info: console.info,
warn: console.warn,
error: console.error,
debug: console.debug,
};
// Global setup to suppress console output during tests
(0, globals_1.beforeEach)(() => {
// Mock console methods to suppress output
console.log = globals_1.jest.fn();
console.info = globals_1.jest.fn();
console.warn = globals_1.jest.fn();
console.error = globals_1.jest.fn();
console.debug = globals_1.jest.fn();
});
(0, globals_1.afterEach)(() => {
// Clear mock calls after each test
globals_1.jest.clearAllMocks();
});
(0, globals_1.afterAll)(() => {
// Restore original console methods after all tests
console.log = originalConsole.log;
console.info = originalConsole.info;
console.warn = originalConsole.warn;
console.error = originalConsole.error;
console.debug = originalConsole.debug;
});