diff options
| author | shishu314 <[email protected]> | 2025-08-07 19:58:18 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-08-07 23:58:18 +0000 |
| commit | bae922a6327a8ae97ca53ac1829ff385ca025460 (patch) | |
| tree | 5250171f5fdbaf8b4d5f6043a1b721df033d0a31 /packages/core/src/code_assist/server.test.ts | |
| parent | 60362e0329febb8811f37d7f68f00843dd51e1ed (diff) | |
fix(cli) - Move logging into CodeAssistServer (#5781)
Co-authored-by: Shi Shu <[email protected]>
Diffstat (limited to 'packages/core/src/code_assist/server.test.ts')
| -rw-r--r-- | packages/core/src/code_assist/server.test.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/packages/core/src/code_assist/server.test.ts b/packages/core/src/code_assist/server.test.ts index 3fc1891f..bc3978fb 100644 --- a/packages/core/src/code_assist/server.test.ts +++ b/packages/core/src/code_assist/server.test.ts @@ -4,7 +4,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -import { describe, it, expect, vi } from 'vitest'; +import { beforeEach, describe, it, expect, vi } from 'vitest'; import { CodeAssistServer } from './server.js'; import { OAuth2Client } from 'google-auth-library'; import { UserTierId } from './types.js'; @@ -12,6 +12,10 @@ import { UserTierId } from './types.js'; vi.mock('google-auth-library'); describe('CodeAssistServer', () => { + beforeEach(() => { + vi.resetAllMocks(); + }); + it('should be able to be constructed', () => { const auth = new OAuth2Client(); const server = new CodeAssistServer( |
