import { describe, it, expect } from "vitest";
import { MODULE_SCHEMAS } from "../schemas";
import { buildModuleCheckTargets } from "./targets";

describe("buildModuleCheckTargets", () => {
  it("generates module targets", () => {
    const targets = buildModuleCheckTargets("modules");
    expect(targets).toEqual([
      { glob: "modules/[a-zA-Z]*/docs/feature/*.md", schemaPath: MODULE_SCHEMAS.feature },
      { glob: "modules/[a-zA-Z]*/docs/command/*.md", schemaPath: MODULE_SCHEMAS.command },
      { glob: "modules/[a-zA-Z]*/docs/model/*.md", schemaPath: MODULE_SCHEMAS.model },
      { glob: "modules/[a-zA-Z]*/docs/query/*.md", schemaPath: MODULE_SCHEMAS.query },
      { glob: "modules/[a-zA-Z]*/README.md", schemaPath: MODULE_SCHEMAS.module },
    ]);
  });
});
