test(ui): use toBe(undefined) for persist/hydrate assertions

The UI expect helper does not type toBeUndefined.

Co-authored-by: serkraser <serkraser@gmail.com>
This commit is contained in:
Cursor Agent
2026-08-15 04:30:30 +00:00
co-authored by serkraser
parent c1640522ec
commit ed972d9f9e
@@ -465,7 +465,7 @@ describe("GitHub PR status stale terminal associations", () => {
const persisted = useGitHubPrStatusStore.persist.getOptions().partialize?.(
useGitHubPrStatusStore.getState(),
) as { entries?: Record<string, unknown> } | undefined
expect(persisted?.entries?.[key]).toBeUndefined()
expect(persisted?.entries?.[key]).toBe(undefined)
})
test("still persists an open branch association", () => {
@@ -536,8 +536,8 @@ describe("GitHub PR status stale terminal associations", () => {
repo: "app",
url: "https://github.com/acme/app",
})
expect(hydrated.entries[key]?.status?.checks).toBeUndefined()
expect(hydrated.entries[key]?.status?.canMerge).toBeUndefined()
expect(hydrated.entries[key]?.status?.checks).toBe(undefined)
expect(hydrated.entries[key]?.status?.canMerge).toBe(undefined)
expect(hydrated.entries[key]?.isInitialStatusResolved).toBe(false)
})
})