Skip to content

AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents

257 B
Raw Blame
import { beforeEach, vi } from 'vitest';

const blockNetwork = vi.fn(async (input: unknown): Promise<Response> => {
  throw new Error(`Unexpected network call in tests: ${String(input)}`);
});

beforeEach(() => {
  vi.stubGlobal('fetch', blockNetwork);
});