mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-28 21:46:48 +00:00
16 lines
532 B
TypeScript
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");
|
|
});
|
|
});
|