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.
This commit is contained in:
Gergő Magyar 2026-10-03 18:17:18 +01:00 • committed by GitHub
parent fb280a01b4
commit 0aa617eb79
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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();
}