mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-05-15 09:41:20 +00:00
test(cli): add hasUnfinalizedAgents/abortAll to registry mock
The nonInteractiveCli test stub was missing two methods that the runtime now calls when draining background agents on shutdown, causing every runNonInteractive test to fail with TypeError.
This commit is contained in:
parent
9d79d81134
commit
dfd6c90deb
1 changed files with 2 additions and 0 deletions
|
|
@ -150,6 +150,8 @@ describe('runNonInteractive', () => {
|
|||
setNotificationCallback: vi.fn(),
|
||||
setRegisterCallback: vi.fn(),
|
||||
getRunning: vi.fn().mockReturnValue([]),
|
||||
hasUnfinalizedAgents: vi.fn().mockReturnValue(false),
|
||||
abortAll: vi.fn(),
|
||||
}),
|
||||
} as unknown as Config;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue