15 lines
502 B
TypeScript
15 lines
502 B
TypeScript
import test from "node:test";
|
|
import assert from "node:assert/strict";
|
|
import { spawnSync } from "node:child_process";
|
|
|
|
test("CLI help prints the Atlassian skill banner", () => {
|
|
const result = spawnSync("pnpm", ["exec", "tsx", "src/cli.ts", "--help"], {
|
|
cwd: new URL("../", import.meta.url),
|
|
encoding: "utf8",
|
|
});
|
|
|
|
assert.equal(result.status, 0, result.stderr);
|
|
assert.match(result.stdout, /Portable Atlassian CLI for multi-agent skills/);
|
|
assert.match(result.stdout, /Usage:/);
|
|
});
|