continue-custom/core/test/fixtures.ts
2024-12-06 00:41:13 -08:00

27 lines
699 B
TypeScript

import { ConfigHandler } from "../config/ConfigHandler";
import { ControlPlaneClient } from "../control-plane/client";
import Mock from "../llm/llms/Mock";
import FileSystemIde from "../util/filesystem";
import { TEST_DIR } from "./testDir";
export const testIde = new FileSystemIde(TEST_DIR);
export const ideSettingsPromise = testIde.getIdeSettings();
export const testControlPlaneClient = new ControlPlaneClient(
Promise.resolve(undefined),
);
export const testConfigHandler = new ConfigHandler(
testIde,
ideSettingsPromise,
async (text) => {},
testControlPlaneClient,
);
export const testLLM = new Mock({
model: "mock-model",
title: "Mock LLM",
uniqueId: "not-unique",
});