diff options
| author | Tommaso Sciortino <[email protected]> | 2025-07-18 15:38:04 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-07-18 22:38:04 +0000 |
| commit | 003609239fe81c8a2920ed0c63b7f5142bb4f7e5 (patch) | |
| tree | 9dcce05e79a6f1bbe58d8074232212e2495130c5 /packages/cli/src/ui/App.test.tsx | |
| parent | 04bbc60b97809b4200c5dd09ba849e4d097d1d1f (diff) | |
Add /background commands (when background agent is configured) (#4407)
Co-authored-by: Bryan Morgan <[email protected]>
Diffstat (limited to 'packages/cli/src/ui/App.test.tsx')
| -rw-r--r-- | packages/cli/src/ui/App.test.tsx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/cli/src/ui/App.test.tsx b/packages/cli/src/ui/App.test.tsx index e03c80ae..24d30f74 100644 --- a/packages/cli/src/ui/App.test.tsx +++ b/packages/cli/src/ui/App.test.tsx @@ -9,6 +9,7 @@ import { render } from 'ink-testing-library'; import { AppWrapper as App } from './App.js'; import { Config as ServerConfig, + BackgroundAgentManager, MCPServerConfig, ApprovalMode, ToolRegistry, @@ -51,6 +52,7 @@ interface MockServerConfig { getSandbox: Mock<() => SandboxConfig | undefined>; getTargetDir: Mock<() => string>; getToolRegistry: Mock<() => ToolRegistry>; // Use imported ToolRegistry type + getBackgroundAgentManager: Mock<() => BackgroundAgentManager>; getDebugMode: Mock<() => boolean>; getQuestion: Mock<() => string | undefined>; getFullContext: Mock<() => boolean>; @@ -117,6 +119,7 @@ vi.mock('@google/gemini-cli-core', async (importOriginal) => { getSandbox: vi.fn(() => opts.sandbox), getTargetDir: vi.fn(() => opts.targetDir || '/test/dir'), getToolRegistry: vi.fn(() => ({}) as ToolRegistry), // Simple mock + getBackgroundAgentManager: vi.fn(() => new BackgroundAgentManager([])), getDebugMode: vi.fn(() => opts.debugMode || false), getQuestion: vi.fn(() => opts.question), getFullContext: vi.fn(() => opts.fullContext ?? false), |
