mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-10-11 03:38:07 +00:00
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:
parent
fb280a01b4
commit
0aa617eb79
1 changed files with 4 additions and 0 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue