test(cli): exercise adaptive S3 pack reads

This commit is contained in:
vorotamoroz
2026-08-02 07:47:59 +00:00
parent d74e37559c
commit 44c52aa2dd
3 changed files with 73 additions and 12 deletions
@@ -76,12 +76,13 @@ describe("NodeKeyValueDBService.openSimpleStore", () => {
await expect(store.get("key")).rejects.toThrow("KeyValueDB is not initialized yet");
});
it("preserves bigint values used by Adaptive Journal writer state", async () => {
it("preserves bigint values used by Adaptive Journal state", async () => {
const tempDir = await fs.mkdtemp(path.join(os.tmpdir(), "livesync-node-kv-bigint-"));
const filePath = path.join(tempDir, "keyvalue-db.json");
const writerState = {
writerEpoch: 9007199254740993n,
nested: [0n, { sequence: 18446744073709551615n }],
lastCommittedSequence: 9007199254740993n,
pendingCommit: { sequence: 18446744073709551615n },
writerEpoch: "test-writer-epoch",
};
try {