From 0aa617eb79ed1bed0ee1eca5e4bed2bf9bfc78c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gerg=C5=91=20Magyar?= Date: Sat, 3 Oct 2026 18:17:18 +0100 Subject: [PATCH] test(embeddings): verify opt-out publishes the staged database The new publication assertion failed without a real staging fixture and passes with it. All four related opt-out/handoff cases pass. Graph mapping remains partial for this anonymous test callback after refresh and retry; the four-line test-only diff was inspected manually. --- gitnexus/test/unit/run-analyze-fts-repair.test.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gitnexus/test/unit/run-analyze-fts-repair.test.ts b/gitnexus/test/unit/run-analyze-fts-repair.test.ts index 6070e5814..6ebfd3c6f 100644 --- a/gitnexus/test/unit/run-analyze-fts-repair.test.ts +++ b/gitnexus/test/unit/run-analyze-fts-repair.test.ts @@ -3259,9 +3259,13 @@ describe('runFullAnalysis embedding-checkpoint resilience (#2790 review)', () => return cleanResult(); }, }); + await mockStagedFiles(); expect(await runAnalyze(tmpRepo.dbPath, { force: true, embeddings: true }, [])).toBeNull(); expect((await loadMeta(storagePath))?.embeddingCheckpoint).toBeUndefined(); expect((await loadMeta(storagePath))?.stats?.embeddings).toBe(9); + expect(await fs.readFile(getStoragePaths(tmpRepo.dbPath).lbugPath, 'utf8')).toBe( + 'staged fixture', + ); } finally { await tmpRepo.cleanup(); }