Skip to content

Commit 9db4ad8

Browse files
committed
test
1 parent cffc9a8 commit 9db4ad8

File tree

2 files changed

+15
-8
lines changed

2 files changed

+15
-8
lines changed

.github/workflows/preview.yaml

+8-1
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,18 @@ jobs:
9999
run: |
100100
cd core
101101
npm ci
102+
npm install @lancedb/vectordb-linux-x64-gnu
103+
104+
- name: Install lance
105+
run: |
106+
cd core
107+
npm install @lancedb/vectordb-linux-x64-gnu
108+
if: matrix.os == 'ubuntu-latest'
102109

103110
- name: Run core tests
104111
run: |
105112
cd core
106-
npm run test
113+
npm run test -- ./indexing/CodebaseIndexer.test.ts
107114
env:
108115
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
109116

core/indexing/CodebaseIndexer.test.ts

+7-7
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@ import { execSync } from "node:child_process";
33
import fs from "node:fs";
44
import path from "node:path";
55
import { ContinueServerClient } from "../continueServer/stubs/client.js";
6-
import { CodebaseIndexer, PauseToken } from "./CodebaseIndexer.js";
7-
import { getComputeDeleteAddRemove } from "./refreshIndex.js";
8-
import { TestCodebaseIndex } from "./TestCodebaseIndex.js";
9-
import { CodebaseIndex } from "./types.js";
10-
import { walkDir } from "./walkDir.js";
11-
import { getIndexSqlitePath } from "../util/paths.js";
126
import { testConfigHandler, testIde } from "../test/util/fixtures.js";
137
import {
148
addToTestDir,
159
setUpTestDir,
1610
tearDownTestDir,
1711
TEST_DIR,
1812
} from "../test/util/testDir.js";
13+
import { getIndexSqlitePath } from "../util/paths.js";
14+
import { CodebaseIndexer, PauseToken } from "./CodebaseIndexer.js";
15+
import { getComputeDeleteAddRemove } from "./refreshIndex.js";
16+
import { TestCodebaseIndex } from "./TestCodebaseIndex.js";
17+
import { CodebaseIndex } from "./types.js";
18+
import { walkDir } from "./walkDir.js";
1919

2020
jest.useFakeTimers();
2121

@@ -57,7 +57,7 @@ class TestCodebaseIndexer extends CodebaseIndexer {
5757

5858
// These are more like integration tests, whereas we should separately test
5959
// the individual CodebaseIndex classes
60-
describe.skip("CodebaseIndexer", () => {
60+
describe("CodebaseIndexer", () => {
6161
const pauseToken = new PauseToken(false);
6262
const continueServerClient = new ContinueServerClient(undefined, undefined);
6363
const codebaseIndexer = new TestCodebaseIndexer(

0 commit comments

Comments
 (0)