Skip to content

fix: image cropping svg + compat mode (#8710) #32

fix: image cropping svg + compat mode (#8710)

fix: image cropping svg + compat mode (#8710) #32

Triggered via pull request October 28, 2024 16:32
Status Failure
Total duration 2m 2s
Artifacts

test-coverage-pr.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

12 errors and 2 warnings
excalidraw-app/tests/LanguageList.test.tsx: packages/excalidraw/tests/helpers/api.ts#L45
TypeError: createTestHook is not a function ❯ packages/excalidraw/tests/helpers/api.ts:45:1 ❯ packages/excalidraw/tests/helpers/ui.ts:5:31
excalidraw-app/tests/MobileMenu.test.tsx: packages/excalidraw/main.js#L6
Error: Cannot find module './dist/excalidraw.production.min.js' Require stack: - /home/runner/work/excalidraw/excalidraw/packages/excalidraw/main.js ❯ packages/excalidraw/main.js:6:20 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 'MODULE_NOT_FOUND', requireStack: [ '/home/runner/work/excalidraw/excalidraw/packages/excalidraw/main.js' ] }
excalidraw-app/tests/collab.test.tsx: packages/excalidraw/tests/helpers/api.ts#L45
TypeError: createTestHook is not a function ❯ packages/excalidraw/tests/helpers/api.ts:45:1 ❯ packages/excalidraw/tests/helpers/ui.ts:5:31
packages/excalidraw/clipboard.test.ts: packages/excalidraw/tests/helpers/ui.ts#L42
TypeError: createTestHook is not a function ❯ packages/excalidraw/tests/helpers/ui.ts:42:1 ❯ packages/excalidraw/tests/test-utils.ts:7:31
packages/excalidraw/frame.test.tsx: packages/excalidraw/tests/helpers/ui.ts#L42
TypeError: createTestHook is not a function ❯ packages/excalidraw/tests/helpers/ui.ts:42:1 ❯ packages/excalidraw/tests/test-utils.ts:7:31
packages/utils/export.test.ts > exportToSvg > with default arguments: packages/utils/export.test.ts#L91
Error: Snapshot `exportToSvg > with default arguments 1` mismatched - Expected + Received @@ -4,11 +4,14 @@ "customType": null, "lastActiveTool": null, "locked": false, "type": "selection", }, - "collaborators": Map {}, + "allowPinchZoom": false, + "allowWheelZoom": false, + "collaborators": Map {}, + "colorPalette": undefined, "contextMenu": null, "croppingElementId": null, "currentChartType": "bar", "currentHoveredFontFamily": null, "currentItemArrowType": "round", @@ -23,12 +26,15 @@ "currentItemStartArrowhead": null, "currentItemStrokeColor": "#1e1e1e", "currentItemStrokeStyle": "solid", "currentItemStrokeWidth": 2, "currentItemTextAlign": "left", + "currentStrokeOptions": null, "cursorButton": "up", + "customPens": [], "defaultSidebarDockedPreference": false, + "dynamicStyle": {}, "editingFrame": null, "editingGroupId": null, "editingLinearElement": null, "editingTextElement": null, "elementsToHighlight": null, @@ -38,26 +44,38 @@ "exportPadding": undefined, "exportScale": 1, "exportWithDarkMode": false, "fileHandle": null, "followedBy": Set {}, + "frameColor": { + "fill": "rgba(0, 0, 200, 0.04)", + "nameColor": "#999999", + "stroke": "#bbb", + }, "frameRendering": { "clip": true, "enabled": true, "name": true, "outline": true, }, "frameToHighlight": null, - "gridModeEnabled": false, - "gridSize": 20, - "gridStep": 5, + "gridColor": { + "Bold": "#cccccc", + "Regular": "#e5e5e5", + }, + "gridModeEnabled": false, + "gridSize": 20, + "gridStep": 5, + "highlightSearchResult": false, + "invertBindingBehaviour": false, "isBindingEnabled": true, "isCropping": false, "isLoading": false, "isResizing": false, "isRotating": false, "lastPointerDownWith": "mouse", + "linkOpacity": 1, "multiElement": null, "name": "name", "newElement": null, "objectsSnapModeEnabled": false, "openDialog": null, @@ -73,11 +91,13 @@ "shown": false, }, "penDetected": false, "penMode": false, "pendingImageElementId": null, + "pinnedScripts": [], "previousSelectedElementIds": {}, + "resetCustomPen": null, "resizingElement": null, "scrollX": 0, "scrollY": 0, "scrolledOutside": false, "searchMatches": [], @@ -96,10 +116,11 @@ "panels": 3, }, "suggestedBindings": [], "theme": "light", "toast": null, + "trayModeEnabled": false, "userToFollow": null, "viewBackgroundColor": "#ffffff", "viewModeEnabled": false, "zenModeEnabled": false, "zoom": { ❯ packages/utils/export.test.ts:91:38
packages/utils/utils.unmocked.test.ts: packages/excalidraw/tests/helpers/ui.ts#L42
TypeError: createTestHook is not a function ❯ packages/excalidraw/tests/helpers/ui.ts:42:1 ❯ packages/excalidraw/tests/test-utils.ts:7:31
packages/utils/withinBounds.test.ts: packages/excalidraw/tests/helpers/ui.ts#L42
TypeError: createTestHook is not a function ❯ packages/excalidraw/tests/helpers/ui.ts:42:1 ❯ packages/excalidraw/tests/test-utils.ts:7:31
packages/excalidraw/actions/actionElementLock.test.tsx: packages/excalidraw/tests/helpers/api.ts#L45
TypeError: createTestHook is not a function ❯ packages/excalidraw/tests/helpers/api.ts:45:1 ❯ packages/excalidraw/tests/helpers/ui.ts:5:31
packages/excalidraw/actions/actionFlip.test.tsx: packages/excalidraw/tests/helpers/api.ts#L45
TypeError: createTestHook is not a function ❯ packages/excalidraw/tests/helpers/api.ts:45:1 ❯ packages/excalidraw/tests/helpers/ui.ts:5:31
coverage
Failed to parse the json-summary at path "/home/runner/work/excalidraw/excalidraw/coverage/coverage-summary.json." Make sure to run vitest before this action and to include the "json-summary" reporter. Original Error: Error: ENOENT: no such file or directory, open '/home/runner/work/excalidraw/excalidraw/coverage/coverage-summary.json' at async open (node:internal/fs/promises:636:25) at async readFile (node:internal/fs/promises:1246:14) at async Iy (/home/runner/work/_actions/davelosert/vitest-coverage-report-action/v2/dist/index.js:70:1156) at async Cu (/home/runner/work/_actions/davelosert/vitest-coverage-report-action/v2/dist/index.js:70:1237) at async WO (/home/runner/work/_actions/davelosert/vitest-coverage-report-action/v2/dist/index.js:148:626)
coverage
Error: ENOENT: no such file or directory, open '/home/runner/work/excalidraw/excalidraw/coverage/coverage-summary.json'
coverage
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-node@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
coverage
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2, actions/setup-node@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/