import { spawnSync } from "node:child_process"; import { join } from "node:path"; import { describe, expect, it } from "vitest"; import { ROOT } from "./lib/common.ts"; describe("skill validation CLI", () => { it("executes main and reports the validated skill count", () => { const result = spawnSync( process.execPath, [join(ROOT, "scripts/check_skills.ts")], { cwd: ROOT, encoding: "utf8", timeout: 10_000 }, ); expect(result.error).toBeUndefined(); expect(result.status).toBe(0); expect(result.stdout).toMatch(/^OK skills \d+\r?\n$/u); }); });