feat: install development build globally
This commit is contained in:
1 parent
7cfb68e434
commit
3e072b490e
9 files changed
+249
-9
No files matched your search
@@ -88,4 +88,14 @@ describe("CLI runner - version and help aliases", () => {
|
||||
expect(command.stdout).toContain("publish");
|
||||
expect(command.stdout).toContain("发布并启用工作流");
|
||||
});
|
||||
|
||||
it("keeps help and version machine-readable when --json is requested", async () => {
|
||||
const help = await runCli(["help", "workflow", "--json"]);
|
||||
const version = await runCli(["version", "--json"]);
|
||||
|
||||
expect(JSON.parse(help.stdout).help).toContain("workflow -");
|
||||
expect(JSON.parse(version.stdout)).toEqual({ name: "hose-use", version: VERSION });
|
||||
expect(help.stderr).toBe("");
|
||||
expect(version.stderr).toBe("");
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user