Auto-update notifications (#1110)

This commit is contained in:
Eddie Santos
2025-06-17 08:24:07 -07:00
committed by GitHub
parent bc3fa71234
commit c3971754bf
10 changed files with 715 additions and 9 deletions

View File

@@ -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