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:
@@ -6,6 +6,9 @@
|
||||
"transform": {
|
||||
"^.+\\.(t|j)s$": "ts-jest"
|
||||
},
|
||||
"transformIgnorePatterns": [
|
||||
"/node_modules/(?!(\\.pnpm/)?(nanoid|uuid|image-dimensions|marked|happy-dom|lib0)(@|/))"
|
||||
],
|
||||
"moduleNameMapper": {
|
||||
"^@docmost/db/(.*)$": "<rootDir>/../src/database/$1",
|
||||
"^@docmost/transactional/(.*)$": "<rootDir>/../src/integrations/transactional/$1",
|
||||
|
||||
Reference in New Issue
Block a user