refactor(core): Move getPackageJson utility to core package (#12224)

This commit is contained in:
Shreya Keshive
2025-10-29 13:23:35 -07:00
committed by GitHub
parent b31b786db7
commit 3e9701861e
9 changed files with 61 additions and 49 deletions

View File

@@ -9,8 +9,12 @@ import { checkForUpdates } from './updateCheck.js';
import type { LoadedSettings } from '../../config/settings.js';
const getPackageJson = vi.hoisted(() => vi.fn());
vi.mock('../../utils/package.js', () => ({
const debugLogger = vi.hoisted(() => ({
warn: vi.fn(),
}));
vi.mock('@google/gemini-cli-core', () => ({
getPackageJson,
debugLogger,
}));
const latestVersion = vi.hoisted(() => vi.fn());