fix tsc errors

This commit is contained in:
Nate 2025-02-18 15:46:12 -08:00
parent a488526e90
commit e34a56748d
3 changed files with 3 additions and 14 deletions

View file

@ -7,7 +7,6 @@ import {
IContextProvider,
} from "../..";
import { ConfigHandler } from "../../config/ConfigHandler";
import { ControlPlaneClient } from "../../control-plane/client";
import { TEST_DIR } from "../../test/testDir";
import FileSystemIde from "../../util/filesystem";
@ -31,7 +30,7 @@ async function getContextProviderExtras(
ide,
ideSettingsPromise,
async (text) => {},
new ControlPlaneClient(Promise.resolve(undefined), ideSettingsPromise),
Promise.resolve(undefined),
);
const { config } = await configHandler.loadConfig();
if (!config) {

View file

@ -2,7 +2,6 @@
* @jest-environment jsdom
*/
import { ConfigHandler } from "../../config/ConfigHandler.js";
import { ControlPlaneClient } from "../../control-plane/client.js";
import { SiteIndexingConfig } from "../../index.js";
import FileSystemIde from "../../util/filesystem.js";
import { editConfigJson } from "../../util/paths.js";
@ -50,16 +49,7 @@ describe.skip("DocsService Integration Tests", () => {
ide,
ideSettingsPromise,
async () => {},
new ControlPlaneClient(
Promise.resolve({
accessToken: "",
account: {
id: "",
label: "",
},
}),
ideSettingsPromise,
),
Promise.resolve(undefined),
);
docsService = DocsService.createSingleton(configHandler, ide);

View file

@ -18,7 +18,7 @@ export const testConfigHandler = new ConfigHandler(
testIde,
ideSettingsPromise,
async (text) => {},
testControlPlaneClient,
Promise.resolve(undefined),
);
export const testLLM = new Mock({