From c3971754bf4bd5877d7a57c523b981c09d4fa35d Mon Sep 17 00:00:00 2001
From: Eddie Santos <9561596+eddie-santos@users.noreply.github.com>
Date: Tue, 17 Jun 2025 08:24:07 -0700
Subject: Auto-update notifications (#1110)

---
 packages/cli/src/gemini.test.tsx | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

(limited to 'packages/cli/src/gemini.test.tsx')

diff --git a/packages/cli/src/gemini.test.tsx b/packages/cli/src/gemini.test.tsx
index f77f9577..952b4a77 100644
--- a/packages/cli/src/gemini.test.tsx
+++ b/packages/cli/src/gemini.test.tsx
@@ -44,11 +44,17 @@ vi.mock('./config/config.js', () => ({
 
 vi.mock('read-package-up', () => ({
   readPackageUp: vi.fn().mockResolvedValue({
-    packageJson: { version: 'test-version' },
+    packageJson: { name: 'test-pkg', version: 'test-version' },
     path: '/fake/path/package.json',
   }),
 }));
 
+vi.mock('update-notifier', () => ({
+  default: vi.fn(() => ({
+    notify: vi.fn(),
+  })),
+}));
+
 vi.mock('./utils/sandbox.js', () => ({
   sandbox_command: vi.fn(() => ''), // Default to no sandbox command
   start_sandbox: vi.fn(() => Promise.resolve()), // Mock as an async function that resolves
-- 
cgit v1.2.3

