From 128d6668ae495dd04ee21a31e02e3e7ae224d427 Mon Sep 17 00:00:00 2001 From: Mohamed Boudra Date: Sun, 19 Apr 2026 15:11:37 +0700 Subject: [PATCH] fix(server): update PR status test for new normalized fields MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit normalizeCheckoutPrStatusPayload always emits the full wire shape now (number, repoOwner, repoName, isDraft, checks, checksStatus, reviewDecision) — the workspace-git-watch test's toEqual assertion still had the pre-PR-pane shape and was failing. Update the expected object to match the actual wire contract. --- .../server/src/server/session.workspace-git-watch.test.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/server/src/server/session.workspace-git-watch.test.ts b/packages/server/src/server/session.workspace-git-watch.test.ts index 66a6f190a..b15994ee1 100644 --- a/packages/server/src/server/session.workspace-git-watch.test.ts +++ b/packages/server/src/server/session.workspace-git-watch.test.ts @@ -345,12 +345,19 @@ describe("workspace git watch targets", () => { ).toEqual({ cwd: "/tmp/repo", status: { + number: undefined, url: "https://github.com/acme/repo/pull/456", title: "Runtime centralization", state: "merged", + repoOwner: undefined, + repoName: undefined, baseRefName: "main", headRefName: "workspace-git-service", isMerged: true, + isDraft: false, + checks: [], + checksStatus: undefined, + reviewDecision: undefined, }, githubFeaturesEnabled: true, error: null,