Skip to content

Codebase intelligence for AI and humans: code health scores, auto-generated docs, git analytics, dead code detection, and architectural decisions via MCP.

354 B
Raw Blame
import { describe, expect, it } from "vitest";
import { isFileNodeId } from "../../src/graph/node-id";

describe("isFileNodeId", () => {
  it("accepts a bare file path only", () => {
    expect(isFileNodeId("src/a.ts")).toBe(true);
    expect(isFileNodeId("src/a.ts::load")).toBe(false);
    expect(isFileNodeId("external:react")).toBe(false);
  });
});