mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-05-02 21:50:52 +00:00
Auto-update notifications (#1110)
This commit is contained in:
parent
bc3fa71234
commit
c3971754bf
10 changed files with 715 additions and 9 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue