We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/robert7/remnote-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
setup.ts•620 B
/**
* Global test setup file
* Runs before all test suites
*/
import { beforeEach, afterEach, vi } from 'vitest';
// Mock console methods to prevent pollution of test output
// while still capturing logs for verification
const originalConsoleError = console.error;
beforeEach(() => {
// Suppress console.error during tests unless explicitly testing logging
vi.spyOn(console, 'error').mockImplementation(() => {});
});
afterEach(() => {
vi.restoreAllMocks();
});
// Export utilities for tests that need to verify logging
export const restoreConsoleError = () => {
console.error = originalConsoleError;
};