Add embeddings initialization to evaluation tests

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Colby McHenry
2026-01-18 18:56:10 -06:00
co-authored by Claude Opus 4.5
parent 3fa2d1b4af
commit 2fffcf4736
+10 -2
View File
@@ -225,7 +225,11 @@ describe('CodeGraph Evaluation', () => {
// Initialize and index
cg = await CodeGraph.init(fixturePath, { index: true });
}, 60000);
// Initialize embeddings for semantic search
await cg.initializeEmbeddings();
await cg.generateEmbeddings();
}, 120000);
afterAll(() => {
// Print summary table after all tests
@@ -266,7 +270,11 @@ describe('CodeGraph Evaluation', () => {
// Initialize and index
cg = await CodeGraph.init(fixturePath, { index: true });
}, 60000);
// Initialize embeddings for semantic search
await cg.initializeEmbeddings();
await cg.generateEmbeddings();
}, 120000);
afterAll(() => {
// Print summary table after all tests