We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0868a0 commit 992d7caCopy full SHA for 992d7ca
src/test/git.test.ts
@@ -33,3 +33,14 @@ describe("git.fetch", () => {
33
});
34
35
36
+
37
+describe("git.cherryPick", () => {
38
+ describe("throws Error", () => {
39
+ it("when failing with an unexpected non-zero exit code", async () => {
40
+ response.exitCode = 1;
41
+ await expect(git.cherryPick(["unknown"], "")).rejects.toThrowError(
42
+ `'git cherry-pick -x unknown' failed with exit code 1`,
43
+ );
44
+ });
45
46
+});
0 commit comments