From 33d57df894b732bc795f89cebf367efe93ea740c Mon Sep 17 00:00:00 2001 From: Jinjing <6427696+AmethystLiang@users.noreply.github.com> Date: Wed, 28 Oct 2026 13:42:02 -0700 Subject: [PATCH] test(preflight): align enabled agent detection mock --- src/main/ipc/preflight-agent-detection.test.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/ipc/preflight-agent-detection.test.ts b/src/main/ipc/preflight-agent-detection.test.ts index 919b5472065..15b7e74fa60 100644 --- a/src/main/ipc/preflight-agent-detection.test.ts +++ b/src/main/ipc/preflight-agent-detection.test.ts @@ -152,7 +152,10 @@ describe('preflight', () => { expect(isCommandOnLocalPathMock.mock.calls.map(([command]) => command)).not.toContain( 'kiro-cli' ) - expect(resolveCliCommandsMock).toHaveBeenCalledWith(expect.not.arrayContaining(['kiro-cli'])) + expect(resolveCliCommandsMock).toHaveBeenCalledWith( + expect.not.arrayContaining(['kiro-cli']), + { skipPathSearch: true } + ) isCommandOnLocalPathMock.mockClear() await expect(