fix: mcp tests
This commit is contained in:
parent
839b03e719
commit
6d1e901bb8
4 changed files with 2 additions and 11 deletions
|
|
@ -12,8 +12,6 @@ import {
|
|||
import { processCommandFlags } from "../flags/flagProcessor.js";
|
||||
import { configureLogger } from "../logger.js";
|
||||
import * as logging from "../logging.js";
|
||||
// initializeWithOnboarding is now handled internally by initializeServices
|
||||
// import { initializeWithOnboarding } from "../onboarding.js";
|
||||
import { sentryService } from "../sentry.js";
|
||||
import { initializeServices } from "../services/index.js";
|
||||
import { serviceContainer } from "../services/ServiceContainer.js";
|
||||
|
|
|
|||
|
|
@ -42,13 +42,6 @@ describe("serve command", () => {
|
|||
model: { name: "test-model" },
|
||||
})
|
||||
),
|
||||
runOnboardingFlow: vi.fn(() =>
|
||||
Promise.resolve({
|
||||
config: { models: [] },
|
||||
llmApi: { chat: vi.fn() },
|
||||
model: { name: "test-model" },
|
||||
})
|
||||
),
|
||||
}));
|
||||
|
||||
vi.mock("../session.js", () => ({
|
||||
|
|
|
|||
|
|
@ -100,7 +100,7 @@ export async function initialize(
|
|||
const config = result.config;
|
||||
const [llmApi, model] = getLlmApi(config, authConfig);
|
||||
const mcpService = new MCPService();
|
||||
await mcpService.initialize(config);
|
||||
await mcpService.initialize(config, false);
|
||||
|
||||
return { config, llmApi, model, mcpService, apiClient };
|
||||
}
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ export async function createOrUpdateConfig(apiKey: string): Promise<void> {
|
|||
fs.writeFileSync(CONFIG_PATH, updatedContent);
|
||||
}
|
||||
|
||||
export async function runOnboardingFlow(
|
||||
async function runOnboardingFlow(
|
||||
configPath: string | undefined,
|
||||
authConfig: AuthConfig,
|
||||
): Promise<OnboardingResult> {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue