test(e2e): fix failing server and mcp e2e suites
Two unrelated CI failures on the 0.94.0 release PR: - server e2e: jest-e2e.json lacked transformIgnorePatterns, so the ESM-only nanoid@5 package was loaded as CommonJS and crashed with "Cannot use import statement outside a module". Add the same node_modules whitelist already present in the unit and integration jest configs (nanoid|uuid|image-dimensions|marked|happy-dom|lib0). - mcp e2e: test-e2e.mjs read editRes.edits, but editPageText() returns the per-edit results under `applied` (not `edits`), so editRes.edits was undefined and .every() threw. Read editRes.applied instead. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -104,7 +104,7 @@ async function main() {
|
||||
{ find: "БУКВОЕД", replace: "КНИГОЛЮБ" },
|
||||
{ find: "[1]", replace: "[42]" },
|
||||
]);
|
||||
check("edit_page_text: both edits applied", editRes.edits.every((e) => e.replacements === 1));
|
||||
check("edit_page_text: both edits applied", editRes.applied.every((e) => e.replacements === 1));
|
||||
await new Promise((r) => setTimeout(r, 16000)); // wait for server persistence
|
||||
const pj2 = await client.getPageJson(pageId);
|
||||
const text2 = JSON.stringify(pj2.content);
|
||||
|
||||
Reference in New Issue
Block a user