MCPcopy
hub / github.com/upstash/context7 / setup.test.ts

File setup.test.ts

packages/cli/src/__tests__/setup.test.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { describe, test, expect, vi, beforeEach, afterEach } from "vitest";
2import { mkdir, readFile, writeFile, rm } from "fs/promises";
3import { join } from "path";
4import { tmpdir } from "os";

Callers

nothing calls this directly

Calls 15

getRuleContentFunction · 0.85
mergeServerEntryFunction · 0.85
removeServerEntryFunction · 0.85
readJsonConfigFunction · 0.85
writeJsonConfigFunction · 0.85
resolveMcpPathFunction · 0.85
buildTomlServerBlockFunction · 0.85
readTomlServerExistsFunction · 0.85
appendTomlServerFunction · 0.85
removeTomlServerFunction · 0.85
appendRuleFunction · 0.85
getAgentFunction · 0.85

Tested by

no test coverage detected