From da94b1589c161e18a2e5cd6b39fd9b475e407a8c Mon Sep 17 00:00:00 2001 From: agent_vscode Date: Mon, 6 Jul 2026 17:13:34 +0300 Subject: [PATCH] test(mcp): align nested-list goldens with the #351 loose-container converter fix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The #351 converter fix (79a461f7) made multi-block list items emit a blank-line separator between block children (loose list) to stop silent content merging on re-parse. The prosemirror-markdown goldens were updated in that PR, but the two mcp unit tests asserting the old tight output were missed — packages/mcp re-exports the shared converter, so they broke the develop CI run (test job, `pnpm -r test`, 2/480 failures). - expect "- Parent\n\n - A..." instead of "- Parent\n - A..." - expect "1. Parent\n\n - Child" instead of "1. Parent\n - Child" Full mcp suite: 480/480 green; editor-ext / prosemirror-markdown / client / git-sync suites green as well. Co-Authored-By: Claude Fable 5 --- packages/mcp/test/unit/markdown-converter.test.mjs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/mcp/test/unit/markdown-converter.test.mjs b/packages/mcp/test/unit/markdown-converter.test.mjs index 41ec4b00..fe8378e1 100644 --- a/packages/mcp/test/unit/markdown-converter.test.mjs +++ b/packages/mcp/test/unit/markdown-converter.test.mjs @@ -25,9 +25,11 @@ test("nested bulletList with 3 children keeps all children indented under the pa ), ); + // Block children of a list item are blank-line separated (loose list) since + // the #351 converter fix; the sublist stays nested at the 2-col marker column. assert.equal( convertProseMirrorToMarkdown(input), - "- Parent\n - A\n - B\n - C", + "- Parent\n\n - A\n - B\n - C", ); }); @@ -41,9 +43,10 @@ test("nested list under an ordered item indents 3 spaces", () => { ), ); + // Blank-line separated block children (loose list) per the #351 converter fix. assert.equal( convertProseMirrorToMarkdown(input), - "1. Parent\n - Child", + "1. Parent\n\n - Child", ); });