Skip to main content
Glama
skip-wrapper.ts1.11 kB
/** * Test Skip Wrapper Utilities * * Provides easy-to-use wrappers for conditionally skipping tests * based on environment conditions. */ import { shouldSkipLiveTests } from './env-detection.js'; /** * Conditionally skip entire test suites that require live integration */ const describeLiveOnly = shouldSkipLiveTests() ? describe.skip : describe; /** * Conditionally skip individual tests that require live integration */ const itLiveOnly = shouldSkipLiveTests() ? it.skip : it; /** * Wrapper for beforeAll hooks in live-dependent test suites * Returns early if live tests should be skipped */ function beforeAllLive(fn: () => Promise<void> | void) { return beforeAll(async () => { if (shouldSkipLiveTests()) { return; // Skip setup if live tests are disabled } await fn(); }); } /** * Mock-only describe - only runs when live tests are skipped */ const describeMockOnly = shouldSkipLiveTests() ? describe : describe.skip; /** * Mock-only it - only runs when live tests are skipped */ const itMockOnly = shouldSkipLiveTests() ? it : it.skip;

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Blakeem/Navidrome-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server