From 71b4fdf2c5b36f050629179fbc7ed327e48f63e7 Mon Sep 17 00:00:00 2001 From: harshitsinghbhandari <24b4506@iitb.ac.in> Date: Thu, 18 Jun 2026 01:01:04 +0530 Subject: [PATCH] test(cli): add cutover exports to update-instrumentation mock Refs #2129 --- .../cli/__tests__/commands/update-instrumentation.test.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/cli/__tests__/commands/update-instrumentation.test.ts b/packages/cli/__tests__/commands/update-instrumentation.test.ts index 30fb22156..388994d79 100644 --- a/packages/cli/__tests__/commands/update-instrumentation.test.ts +++ b/packages/cli/__tests__/commands/update-instrumentation.test.ts @@ -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(() => ({