fix(snapshot): pass refresh context in SDK snapshots

This commit is contained in:
Tianyi Cui
2026-07-28 01:43:40 +08:00
parent 1a623946b9
commit 7503fa896f

View File

@@ -257,7 +257,7 @@ describe('TypeScript SDK snapshots over the jsonrpc runtime', () => {
const existing = expectedContents[index]
const file = files[index]
if (existing === undefined || file === undefined) throw new Error(`no fixture for persisted log ${index}`)
const stable = stabilizeRefreshLog(log.content, existing, replacements)
const stable = stabilizeRefreshLog(log.content, existing, replacements, actualContext)
await writeFile(file, stable)
return stable
}))