Files
openclaw/test/scripts/kova-ci-summary.test.ts
2026-05-27 06:11:57 +02:00

16 lines
532 B
TypeScript

import { spawnSync } from "node:child_process";
import { describe, expect, it } from "vitest";
describe("scripts/kova-ci-summary", () => {
it("prints help without treating --help as a valued option", () => {
const result = spawnSync(process.execPath, ["scripts/kova-ci-summary.mjs", "--help"], {
cwd: process.cwd(),
encoding: "utf8",
});
expect(result.status).toBe(0);
expect(result.stderr).toBe("");
expect(result.stdout).toContain("usage: node scripts/kova-ci-summary.mjs --report");
});
});