mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-30 04:30:48 +00:00
fix: add model resolution warnings to start warnings
This commit is contained in:
parent
740f4e0949
commit
42a5b4d1e0
8 changed files with 29 additions and 13 deletions
|
|
@ -48,6 +48,7 @@ vi.mock('./config/config.js', () => ({
|
|||
getSandbox: vi.fn(() => false),
|
||||
getQuestion: vi.fn(() => ''),
|
||||
isInteractive: () => false,
|
||||
getWarnings: vi.fn(() => []),
|
||||
} as unknown as Config),
|
||||
parseArguments: vi.fn().mockResolvedValue({}),
|
||||
isDebugMode: vi.fn(() => false),
|
||||
|
|
@ -177,6 +178,7 @@ describe('gemini.tsx main function', () => {
|
|||
getGeminiMdFileCount: () => 0,
|
||||
getProjectRoot: () => '/',
|
||||
getOutputFormat: () => OutputFormat.TEXT,
|
||||
getWarnings: () => [],
|
||||
} as unknown as Config;
|
||||
});
|
||||
vi.mocked(loadSettings).mockReturnValue({
|
||||
|
|
@ -341,6 +343,7 @@ describe('gemini.tsx main function', () => {
|
|||
getProjectRoot: () => '/',
|
||||
getInputFormat: () => 'stream-json',
|
||||
getContentGeneratorConfig: () => ({ authType: 'test-auth' }),
|
||||
getWarnings: () => [],
|
||||
} as unknown as Config;
|
||||
|
||||
vi.mocked(loadCliConfig).mockResolvedValue(configStub);
|
||||
|
|
@ -438,6 +441,7 @@ describe('gemini.tsx main function kitty protocol', () => {
|
|||
getExperimentalZedIntegration: () => false,
|
||||
getScreenReader: () => false,
|
||||
getGeminiMdFileCount: () => 0,
|
||||
getWarnings: () => [],
|
||||
} as unknown as Config);
|
||||
vi.mocked(loadSettings).mockReturnValue({
|
||||
errors: [],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue