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:
tanzhenxin 2026-04-21 10:00:32 +08:00
parent 9d79d81134
commit dfd6c90deb

View file

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