import { readSourceTextAsync } from "./readSourceText.js"; import { describe, expect, it } from "vitest"; describe("settings MCP scope badge", () => { const toolCountClass = "inline-flex rounded-md bg-surface px-1.5 py-0.5 text-ui-sm text-foreground-subtle ring-1 ring-border"; const compactToolCountClass = toolCountClass.replace( "text-ui-sm", "text-ui-xs", ); it("matches the Skill icon-and-label scope treatment", async () => { const source = await readSourceTextAsync( new URL("../src/settings/McpServerList.tsx", import.meta.url)); const badgeSource = await readSourceTextAsync( new URL("../src/settings/SettingsScopeBadge.tsx", import.meta.url)); expect(source).toContain("