openclaw/test/copilot-usage.test.ts
2026-01-26 11:05:20 +05:30

14 lines
406 B
TypeScript

import path from "node:path";
import { describe, expect, it } from "vitest";
import { scanCopilotUsage } from "../tools/copilot-enforcement/check-copilot-usage";
describe("Copilot SDK usage", () => {
it("allows only @github/copilot-sdk", async () => {
const repoRoot = path.resolve(process.cwd());
const findings = await scanCopilotUsage(repoRoot);
expect(findings).toEqual([]);
});
});