This commit is contained in:
Nate Sesti 2024-08-19 07:46:38 -07:00
parent cffc9a803d
commit 9db4ad886a
2 changed files with 15 additions and 8 deletions

View file

@ -99,11 +99,18 @@ jobs:
run: |
cd core
npm ci
npm install @lancedb/vectordb-linux-x64-gnu
- name: Install lance
run: |
cd core
npm install @lancedb/vectordb-linux-x64-gnu
if: matrix.os == 'ubuntu-latest'
- name: Run core tests
run: |
cd core
npm run test
npm run test -- ./indexing/CodebaseIndexer.test.ts
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}

View file

@ -3,12 +3,6 @@ import { execSync } from "node:child_process";
import fs from "node:fs";
import path from "node:path";
import { ContinueServerClient } from "../continueServer/stubs/client.js";
import { CodebaseIndexer, PauseToken } from "./CodebaseIndexer.js";
import { getComputeDeleteAddRemove } from "./refreshIndex.js";
import { TestCodebaseIndex } from "./TestCodebaseIndex.js";
import { CodebaseIndex } from "./types.js";
import { walkDir } from "./walkDir.js";
import { getIndexSqlitePath } from "../util/paths.js";
import { testConfigHandler, testIde } from "../test/util/fixtures.js";
import {
addToTestDir,
@ -16,6 +10,12 @@ import {
tearDownTestDir,
TEST_DIR,
} from "../test/util/testDir.js";
import { getIndexSqlitePath } from "../util/paths.js";
import { CodebaseIndexer, PauseToken } from "./CodebaseIndexer.js";
import { getComputeDeleteAddRemove } from "./refreshIndex.js";
import { TestCodebaseIndex } from "./TestCodebaseIndex.js";
import { CodebaseIndex } from "./types.js";
import { walkDir } from "./walkDir.js";
jest.useFakeTimers();
@ -57,7 +57,7 @@ class TestCodebaseIndexer extends CodebaseIndexer {
// These are more like integration tests, whereas we should separately test
// the individual CodebaseIndex classes
describe.skip("CodebaseIndexer", () => {
describe("CodebaseIndexer", () => {
const pauseToken = new PauseToken(false);
const continueServerClient = new ContinueServerClient(undefined, undefined);
const codebaseIndexer = new TestCodebaseIndexer(