fix(scripts): complete fixture migration diagnostics

This commit is contained in:
Tianyi Cui
2026-07-27 03:54:33 +08:00
parent 4a336ba8d7
commit d7647d9332
8 changed files with 24 additions and 11 deletions

View File

@@ -49,4 +49,9 @@ describe('canonicalSessionFixture', () => {
expect(() => canonicalSessionFixture(`${HEADER}\n{not-json}\n`, 'broken.jsonl'))
.toThrow(/broken\.jsonl:2: invalid JSON/)
})
it('labels malformed packed rows with the fixture path and line', () => {
expect(() => canonicalSessionFixture(`${HEADER}\n{"type":"text-chunks"}\n`, 'broken.jsonl'))
.toThrow(/broken\.jsonl:2: invalid session storage record: malformed text-chunks storage row/)
})
})