test(cli): add cutover exports to update-instrumentation mock

Refs #2129
This commit is contained in:
harshitsinghbhandari 2026-06-18 01:01:04 +05:30
parent 1b721328e2
commit 71b4fdf2c5
No known key found for this signature in database
1 changed files with 4 additions and 0 deletions

View File

@ -37,6 +37,10 @@ vi.mock("../../src/lib/update-check.js", () => ({
getUpdateCommand: (...args: unknown[]) => mockGetUpdateCommand(...args),
readCachedUpdateInfo: vi.fn(() => undefined),
resolveUpdateChannel: vi.fn(() => "stable"),
// No cutover target → these tests exercise the normal-update instrumentation.
resolveCutoverTarget: vi.fn(async () => null),
isLegacyVersion: vi.fn(() => false),
getCutoverInstallCommand: vi.fn(() => null),
}));
const { mockPromptConfirm } = vi.hoisted(() => ({