fix(tooling): add committer help output

This commit is contained in:
Vincent Koc
2026-04-12 05:14:43 +01:00
parent c5c50ad37a
commit 69be261a87
2 changed files with 24 additions and 2 deletions

View File

@@ -160,4 +160,14 @@ describe("scripts/committer", () => {
expect(output).toContain('Committed "test: fast hook env" with 1 files');
expect(committedPaths(repo)).toEqual(["note.txt"]);
});
it("prints usage for --help", () => {
const repo = createRepo();
const output = commitWithHelperArgs(repo, "--help");
expect(output).toContain(
'Usage: committer [--force] [--fast] "commit message" "file" ["file" ...]',
);
});
});