Skip to main content
Glama
diff.test.ts686 B
import { beforeAll, describe, expect, it } from "vitest"; import { buildIndex } from "../src/indexer.js"; import { diffFrmrDocuments } from "../src/diff.js"; beforeAll(async () => { await buildIndex(true); }); describe("diff", () => { it("detects added and modified items", () => { const diff = diffFrmrDocuments( "FRMR.KSI.previous.json", "FRMR.KSI.sample.json", ); expect(diff.summary.added).toBeGreaterThanOrEqual(1); expect(diff.summary.modified).toBeGreaterThanOrEqual(1); const addedIds = diff.changes .filter((change) => change.type === "added") .map((change) => change.id); expect(addedIds).toContain("KSI-002"); }); });

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/ethanolivertroy/fedramp-docs-mcp'

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