diff options
| author | Richie Foreman <[email protected]> | 2025-08-12 14:31:59 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-08-12 18:31:59 +0000 |
| commit | 7cc6b8c270a67803f9387eeead0d3d7ac914303a (patch) | |
| tree | 982fa440c974512961670cb4ee43a62641950ce6 /packages/cli/src | |
| parent | c5c6966d08b042b3b287c1909afa60f950bca147 (diff) | |
chore(usage telemetry): Freshen up Clearcut logging (#6013)
Co-authored-by: christine betts <[email protected]>
Co-authored-by: Jacob Richman <[email protected]>
Co-authored-by: matt korwel <[email protected]>
Diffstat (limited to 'packages/cli/src')
| -rw-r--r-- | packages/cli/src/config/config.integration.test.ts | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/packages/cli/src/config/config.integration.test.ts b/packages/cli/src/config/config.integration.test.ts index 5d83986e..87a74578 100644 --- a/packages/cli/src/config/config.integration.test.ts +++ b/packages/cli/src/config/config.integration.test.ts @@ -13,6 +13,25 @@ import { ConfigParameters, ContentGeneratorConfig, } from '@google/gemini-cli-core'; +import { http, HttpResponse } from 'msw'; +import { setupServer } from 'msw/node'; + +export const server = setupServer(); + +// TODO(richieforeman): Consider moving this to test setup globally. +beforeAll(() => { + server.listen({}); +}); + +afterEach(() => { + server.resetHandlers(); +}); + +afterAll(() => { + server.close(); +}); + +const CLEARCUT_URL = 'https://play.googleapis.com/log'; const TEST_CONTENT_GENERATOR_CONFIG: ContentGeneratorConfig = { apiKey: 'test-key', @@ -37,6 +56,8 @@ describe('Configuration Integration Tests', () => { let originalEnv: NodeJS.ProcessEnv; beforeEach(() => { + server.resetHandlers(http.post(CLEARCUT_URL, () => HttpResponse.text())); + tempDir = fs.mkdtempSync(path.join(tmpdir(), 'gemini-cli-test-')); originalEnv = { ...process.env }; process.env.GEMINI_API_KEY = 'test-api-key'; |
