Skip to main content
Glama

MCP Server Firecrawl

by Msparihar
jest-setup.ts674 B
import { jest, expect } from "@jest/globals"; import type { ScrapeUrlArgs } from "../src/types"; declare global { namespace jest { interface Matchers<R> { toHaveBeenCalledWithUrl(url: string): R; } } } expect.extend({ toHaveBeenCalledWithUrl(received: jest.Mock, url: string) { const calls = received.mock.calls; const urlCalls = calls.some((call) => { const arg = call[0] as ScrapeUrlArgs; return arg && arg.url === url; }); return { pass: urlCalls, message: () => `expected ${received.getMockName()} to have been called with URL ${url}`, }; }, }); // Configure Jest globals global.jest = jest;

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/Msparihar/mcp-server-firecrawl'

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