// Command path match tests cover CLI command path matching and normalization. import { describe, expect, it } from "vitest"; import { matchesCommandPath } from "./command-path-matches.js"; describe("command-path-matches", () => { it("matches prefix and exact command paths", () => { expect(matchesCommandPath(["status"], ["status"])).toBe(true); expect(matchesCommandPath(["status", "watch"], ["status"])).toBe(true); expect(matchesCommandPath(["status", "watch"], ["status"], { exact: true })).toBe(false); expect(matchesCommandPath(["config", "get"], ["config", "get"], { exact: true })).toBe(true); }); });