Skip to main content
Glama
test.setup.ts849 B
// SPDX-FileCopyrightText: Copyright Orangebot, Inc. and Medplum contributors // SPDX-License-Identifier: Apache-2.0 import '@testing-library/jest-dom'; import { TextDecoder, TextEncoder } from 'node:util'; Object.defineProperty(globalThis.window, 'TextDecoder', { value: TextDecoder }); Object.defineProperty(globalThis.window, 'TextEncoder', { value: TextEncoder }); Object.defineProperty(window, 'matchMedia', { writable: true, value: jest.fn().mockImplementation((query) => ({ matches: false, media: query, onchange: null, addListener: jest.fn(), removeListener: jest.fn(), addEventListener: jest.fn(), removeEventListener: jest.fn(), dispatchEvent: jest.fn(), })), }); class ResizeObserver { observe(): void {} unobserve(): void {} disconnect(): void {} } window.ResizeObserver = ResizeObserver;

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/medplum/medplum'

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