mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-29 12:11:09 +00:00
fix: prepublish changes to package names (#1420)
This commit is contained in:
parent
a3c46c0d31
commit
f6c36f75e3
67 changed files with 129 additions and 122 deletions
|
|
@ -7,15 +7,14 @@
|
|||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||
import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest';
|
||||
import { runNonInteractive } from './nonInteractiveCli.js';
|
||||
import { Config, GeminiClient, ToolRegistry } from '@gemini-cli/core';
|
||||
import { Config, GeminiClient, ToolRegistry } from '@google/gemini-cli-core';
|
||||
import { GenerateContentResponse, Part, FunctionCall } from '@google/genai';
|
||||
|
||||
// Mock dependencies
|
||||
vi.mock('@gemini-cli/core', async () => {
|
||||
const actualCore =
|
||||
await vi.importActual<typeof import('@gemini-cli/core')>(
|
||||
'@gemini-cli/core',
|
||||
);
|
||||
vi.mock('@google/gemini-cli-core', async () => {
|
||||
const actualCore = await vi.importActual<
|
||||
typeof import('@google/gemini-cli-core')
|
||||
>('@google/gemini-cli-core');
|
||||
return {
|
||||
...actualCore,
|
||||
GeminiClient: vi.fn(),
|
||||
|
|
@ -110,7 +109,7 @@ describe('runNonInteractive', () => {
|
|||
};
|
||||
|
||||
const { executeToolCall: mockCoreExecuteToolCall } = await import(
|
||||
'@gemini-cli/core'
|
||||
'@google/gemini-cli-core'
|
||||
);
|
||||
vi.mocked(mockCoreExecuteToolCall).mockResolvedValue({
|
||||
callId: 'fc1',
|
||||
|
|
@ -163,7 +162,7 @@ describe('runNonInteractive', () => {
|
|||
};
|
||||
|
||||
const { executeToolCall: mockCoreExecuteToolCall } = await import(
|
||||
'@gemini-cli/core'
|
||||
'@google/gemini-cli-core'
|
||||
);
|
||||
vi.mocked(mockCoreExecuteToolCall).mockResolvedValue({
|
||||
callId: 'fcError',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue