From 2fffcf473626534fdb0cacb7dca131eea1bf59c5 Mon Sep 17 00:00:00 2001 From: Colby McHenry Date: Sun, 18 Jan 2026 18:56:10 -0600 Subject: [PATCH] Add embeddings initialization to evaluation tests Co-Authored-By: Claude Opus 4.5 --- __tests__/evaluation/evaluation.test.ts | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/__tests__/evaluation/evaluation.test.ts b/__tests__/evaluation/evaluation.test.ts index 85d69a8..efdbfcf 100644 --- a/__tests__/evaluation/evaluation.test.ts +++ b/__tests__/evaluation/evaluation.test.ts @@ -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