mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-01 00:40:42 -07:00
refactor(core): Move getPackageJson utility to core package (#12224)
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user