move some stuff back
This commit is contained in:
parent
a58b0ff7b5
commit
af5d38e653
16 changed files with 21 additions and 21 deletions
|
|
@ -13,7 +13,7 @@ Use given types to generate mock data if needed.
|
|||
Additional types can be imported from @core/index.d.ts
|
||||
If any needed type declaration is still not found, warn the user.
|
||||
|
||||
Existing test fixtures can be found in @core/test/util/fixtures.ts
|
||||
Existing test fixtures can be found in @core/test/fixtures.ts
|
||||
- import and use `testIde` for any IDE type needs
|
||||
- import and use `testControlPlaneClient` for any ControlPlaneClient needs
|
||||
- import and use `testConfigHandler` for any ConfigHandler needs
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import path from "path";
|
|||
|
||||
import Parser from "web-tree-sitter";
|
||||
import { Position } from "../../../..";
|
||||
import { testIde } from "../../../../test/util/fixtures";
|
||||
import { testIde } from "../../../../test/fixtures";
|
||||
import { getAst, getTreePathAtCursor } from "../../../util/ast";
|
||||
import { ImportDefinitionsService } from "../../ImportDefinitionsService";
|
||||
import { RootPathContextService } from "../RootPathContextService";
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { setUpTestDir, tearDownTestDir } from "../../../test/util/testDir";
|
||||
import { setUpTestDir, tearDownTestDir } from "../../../test/testDir";
|
||||
|
||||
import { TEST_CASES_WITH_DIFF, TEST_CASES_WITHOUT_DIFF } from "./testCases";
|
||||
import {
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import fs from "node:fs";
|
|||
import path from "node:path";
|
||||
|
||||
import Mock from "../../../llm/llms/Mock";
|
||||
import { testConfigHandler, testIde } from "../../../test/util/fixtures";
|
||||
import { testConfigHandler, testIde } from "../../../test/fixtures";
|
||||
import { CompletionProvider } from "../../CompletionProvider";
|
||||
import { AutocompleteInput } from "../../util/types";
|
||||
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
import fs from "node:fs";
|
||||
import path from "node:path";
|
||||
|
||||
import { testConfigHandler } from "../test/util/fixtures";
|
||||
import { TEST_DIR } from "../test/util/testDir";
|
||||
import { testConfigHandler } from "../test/fixtures";
|
||||
import { TEST_DIR } from "../test/testDir";
|
||||
import { getConfigTsPath } from "../util/paths";
|
||||
|
||||
import { defaultConfig } from "./default";
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ import { ConfigHandler } from "../../config/ConfigHandler";
|
|||
import { contextProviderClassFromName } from ".";
|
||||
import { ControlPlaneClient } from "../../control-plane/client";
|
||||
import FileSystemIde from "../../util/filesystem";
|
||||
import { TEST_DIR } from "../../test/util/testDir";
|
||||
import { TEST_DIR } from "../../test/testDir";
|
||||
|
||||
const CONTEXT_PROVIDERS_TO_TEST: ContextProviderWithParams[] = [
|
||||
{ name: "diff", params: {} },
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import { jest } from "@jest/globals";
|
||||
|
||||
import { testIde } from "../test/util/fixtures";
|
||||
import { testIde } from "../test/fixtures";
|
||||
import {
|
||||
insertMockChunks,
|
||||
mockPathAndCacheKey,
|
||||
|
|
|
|||
|
|
@ -5,13 +5,13 @@ import path from "node:path";
|
|||
import { jest } from "@jest/globals";
|
||||
|
||||
import { ContinueServerClient } from "../continueServer/stubs/client.js";
|
||||
import { testConfigHandler, testIde } from "../test/util/fixtures.js";
|
||||
import { testConfigHandler, testIde } from "../test/fixtures.js";
|
||||
import {
|
||||
addToTestDir,
|
||||
setUpTestDir,
|
||||
tearDownTestDir,
|
||||
TEST_DIR,
|
||||
} from "../test/util/testDir.js";
|
||||
} from "../test/testDir.js";
|
||||
import { getIndexSqlitePath } from "../util/paths.js";
|
||||
|
||||
import { CodebaseIndexer, PauseToken } from "./CodebaseIndexer.js";
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import { jest } from "@jest/globals";
|
||||
import lance from "vectordb";
|
||||
|
||||
import { testConfigHandler, testIde } from "../test/util/fixtures";
|
||||
import { testConfigHandler, testIde } from "../test/fixtures";
|
||||
import {
|
||||
mockPathAndCacheKey,
|
||||
mockTag,
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import { jest } from "@jest/globals";
|
||||
|
||||
import { testIde } from "../../test/util/fixtures";
|
||||
import { testIde } from "../../test/fixtures";
|
||||
import {
|
||||
mockFileContents,
|
||||
mockFilename,
|
||||
|
|
@ -8,7 +8,7 @@ import {
|
|||
testContinueServerClient,
|
||||
updateIndexAndAwaitGenerator,
|
||||
} from "../test/indexing";
|
||||
import { addToTestDir } from "../../test/util/testDir";
|
||||
import { addToTestDir } from "../../test/testDir";
|
||||
import { DatabaseConnection, SqliteDb } from "../refreshIndex";
|
||||
import { IndexResultType } from "../types";
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import os from "os";
|
|||
import { jest } from "@jest/globals";
|
||||
|
||||
import { ContinueConfig } from "../..";
|
||||
import { testConfigHandler } from "../../test/util/fixtures";
|
||||
import { testConfigHandler } from "../../test/fixtures";
|
||||
import FileSystemIde from "../../util/filesystem";
|
||||
|
||||
import DocsCrawler, { ChromiumInstaller, type PageData } from "./DocsCrawler";
|
||||
|
|
|
|||
|
|
@ -6,8 +6,8 @@ import { ChunkCodebaseIndex } from "../chunk/ChunkCodebaseIndex";
|
|||
import { tagToString } from "../refreshIndex";
|
||||
import { CodebaseIndex, PathAndCacheKey, RefreshIndexResults } from "../types";
|
||||
|
||||
import { testIde } from "../../test/util/fixtures";
|
||||
import { addToTestDir, TEST_DIR } from "../../test/util/testDir";
|
||||
import { testIde } from "../../test/fixtures";
|
||||
import { addToTestDir, TEST_DIR } from "../../test/testDir";
|
||||
|
||||
export const mockFilename = "test.py";
|
||||
export const mockPathAndCacheKey = {
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import {
|
|||
setUpTestDir,
|
||||
tearDownTestDir,
|
||||
addToTestDir,
|
||||
} from "../test/util/testDir";
|
||||
} from "../test/testDir";
|
||||
import FileSystemIde from "../util/filesystem";
|
||||
|
||||
const ide = new FileSystemIde(TEST_DIR);
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@
|
|||
"comment-json": "^4.2.3",
|
||||
"dbinfoz": "^0.14.0",
|
||||
"diff": "^7.0.0",
|
||||
"dotenv": "^16.4.7",
|
||||
"dotenv": "^16.4.5",
|
||||
"fastest-levenshtein": "^1.0.16",
|
||||
"follow-redirects": "^1.15.5",
|
||||
"google-auth-library": "^9.14.2",
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import { ConfigHandler } from "../../config/ConfigHandler";
|
||||
import { ControlPlaneClient } from "../../control-plane/client";
|
||||
import FileSystemIde from "../../util/filesystem";
|
||||
import { ConfigHandler } from "../config/ConfigHandler";
|
||||
import { ControlPlaneClient } from "../control-plane/client";
|
||||
import FileSystemIde from "../util/filesystem";
|
||||
|
||||
import { TEST_DIR } from "./testDir";
|
||||
|
||||
Loading…
Add table
Reference in a new issue