Skip to main content
Glama
object-in-es5-env.test.tsโ€ข778 B
// @ts-ignore TS6133 import { expect, test } from "vitest"; import * as z from "zod/v3"; const RealSet = Set; const RealMap = Map; const RealDate = Date; test("doesnโ€™t throw when Date is undefined", () => { delete (globalThis as any).Date; const result = z.object({}).safeParse({}); expect(result.success).toEqual(true); globalThis.Date = RealDate; }); test("doesnโ€™t throw when Set is undefined", () => { delete (globalThis as any).Set; const result = z.object({}).safeParse({}); expect(result.success).toEqual(true); globalThis.Set = RealSet; }); test("doesnโ€™t throw when Map is undefined", () => { delete (globalThis as any).Map; const result = z.object({}).safeParse({}); expect(result.success).toEqual(true); globalThis.Map = RealMap; });

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/airmcp-com/mcp-standards'

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