diff --git a/cli/test/git_unit.test.ts b/cli/test/git_unit.test.ts index 140da33866..2db2834bd2 100644 --- a/cli/test/git_unit.test.ts +++ b/cli/test/git_unit.test.ts @@ -199,6 +199,26 @@ describe("computeGitSyncDeployBranch", () => { }) ).toBe("wm-fork/main/mydev"); }); + + // A throwaway fork OF a dev workspace is named after the tracked (cloned) + // branch, NOT the parent dev's label: the child is not itself a dev + // workspace, so it carries no devWorkspaceLabel. The dev label reaches this + // deploy only as the checkout base + PR target (handled in sync.ts), never as + // the branch name — otherwise the branch would be `wm-fork/