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 9dd629f5ca
commit b420e0c847
9 changed files with 61 additions and 49 deletions
@@ -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());