continue-custom/core/test/fixtures.ts
2024-08-14 11:30:36 -07:00

19 lines
562 B
TypeScript

import { ConfigHandler } from "../config/ConfigHandler";
import { ControlPlaneClient } from "../control-plane/client";
import FileSystemIde from "../util/filesystem";
import { TEST_DIR } from "./testUtils/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,
);