mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-20 08:47:44 +00:00
Merge tag 'v0.3.0' into chore/sync-gemini-cli-v0.3.0
This commit is contained in:
@@ -4,11 +4,17 @@
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest';
|
||||
import {
|
||||
validateNonInteractiveAuth,
|
||||
NonInteractiveConfig,
|
||||
} from './validateNonInterActiveAuth.js';
|
||||
describe,
|
||||
it,
|
||||
expect,
|
||||
vi,
|
||||
beforeEach,
|
||||
afterEach,
|
||||
type MockedFunction,
|
||||
} from 'vitest';
|
||||
import type { NonInteractiveConfig } from './validateNonInterActiveAuth.js';
|
||||
import { validateNonInteractiveAuth } from './validateNonInterActiveAuth.js';
|
||||
import { AuthType } from '@qwen-code/qwen-code-core';
|
||||
import * as auth from './config/auth.js';
|
||||
|
||||
@@ -19,9 +25,7 @@ describe('validateNonInterActiveAuth', () => {
|
||||
let originalEnvOpenAiApiKey: string | undefined;
|
||||
let consoleErrorSpy: ReturnType<typeof vi.spyOn>;
|
||||
let processExitSpy: ReturnType<typeof vi.spyOn>;
|
||||
let refreshAuthMock: jest.MockedFunction<
|
||||
(authType: AuthType) => Promise<unknown>
|
||||
>;
|
||||
let refreshAuthMock: MockedFunction<(authType: AuthType) => Promise<unknown>>;
|
||||
|
||||
beforeEach(() => {
|
||||
originalEnvGeminiApiKey = process.env['GEMINI_API_KEY'];
|
||||
|
||||
Reference in New Issue
Block a user