diff options
| author | Shreya Keshive <[email protected]> | 2025-08-05 18:52:58 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-08-05 22:52:58 +0000 |
| commit | 268627469b384ba3fa8dfe2e05b5186248013070 (patch) | |
| tree | 27d6421c6d7cc7986d284fa8f7bf0fece9c607e3 /packages/cli/src/ui/commands/ideCommand.test.ts | |
| parent | 6a72cd064bccb5fda4618671c2da63c4e22c1ef9 (diff) | |
Refactor IDE client state management, improve user-facing error messages, and add logging of connection events (#5591)
Co-authored-by: matt korwel <[email protected]>
Diffstat (limited to 'packages/cli/src/ui/commands/ideCommand.test.ts')
| -rw-r--r-- | packages/cli/src/ui/commands/ideCommand.test.ts | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/packages/cli/src/ui/commands/ideCommand.test.ts b/packages/cli/src/ui/commands/ideCommand.test.ts index 4f2b7af2..9898b1e8 100644 --- a/packages/cli/src/ui/commands/ideCommand.test.ts +++ b/packages/cli/src/ui/commands/ideCommand.test.ts @@ -42,9 +42,15 @@ describe('ideCommand', () => { mockConfig = { getIdeModeFeature: vi.fn(), getIdeMode: vi.fn(), - getIdeClient: vi.fn(), + getIdeClient: vi.fn(() => ({ + reconnect: vi.fn(), + disconnect: vi.fn(), + getCurrentIde: vi.fn(), + getDetectedIdeDisplayName: vi.fn(), + getConnectionStatus: vi.fn(), + })), + setIdeModeAndSyncConnection: vi.fn(), setIdeMode: vi.fn(), - setIdeClientDisconnected: vi.fn(), } as unknown as Config; platformSpy = vi.spyOn(process, 'platform', 'get'); |
