mirror of
https://github.com/DayuanJiang/next-ai-draw-io.git
synced 2026-10-11 20:19:51 +08:00
test(mcp-server): port the preview protocol tests to the sync core
The recovery, thumbnail, size limit and History cases of tests/unit/mcp-preview-recovery.test.ts, driven against mcp-sync-core.ts with a stubbed server and canvas, plus the stale 409 recovery, an export request answered once, a projection that ignores edits and restores the document, the thumbnail of a write loaded before draw.io was ready, writes taken in place as commits (draw.io's own copy is not pushed), and the commit-or-load decision table of decideLoad.
This commit is contained in: