Skip to content

Rich text: refactor toTree #88360

Rich text: refactor toTree

Rich text: refactor toTree #88360

Triggered via pull request November 14, 2023 20:18
Status Failure
Total duration 9m 57s
Artifacts

unit-test.yml

on: pull_request
Compute previous WordPress version
3s
PHP coding standards
25s
Matrix: JavaScript
Matrix: test-php

Annotations

4 errors and 1 warning
Mobile
Process completed with exit code 1.
JavaScript (16): packages/block-editor/src/store/test/actions.js#L130
TypeError: Cannot read properties of undefined (reading 'forEach') at forEach (/home/runner/work/gutenberg/gutenberg/packages/rich-text/src/to-tree.js:130:11) at toHTMLString (/home/runner/work/gutenberg/gutenberg/packages/rich-text/src/to-html-string.js:28:21) at /home/runner/work/gutenberg/gutenberg/packages/block-editor/src/store/actions.js:1105:59 at Object.<anonymous> (/home/runner/work/gutenberg/gutenberg/packages/block-editor/src/store/test/actions.js:1059:5) at Promise.then.completed (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/utils.js:300:28) at new Promise (<anonymous>) at callAsyncCircusFn (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/utils.js:233:10) at _callCircusTest (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:315:40) at runMicrotasks (<anonymous>) at processTicksAndRejections (node:internal/process/task_queues:96:5) at _runTest (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:251:3) at _runTestsForDescribeBlock (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:125:9) at _runTestsForDescribeBlock (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:120:9) at _runTestsForDescribeBlock (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:120:9) at run (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:70:3) at runAndTransformResultsToJestFormat (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21) at jestAdapter (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19) at runTestInternal (/home/runner/work/gutenberg/gutenberg/node_modules/jest-runner/build/runTest.js:367:16) at runTest (/home/runner/work/gutenberg/gutenberg/node_modules/jest-runner/build/runTest.js:444:34) at Object.worker (/home/runner/work/gutenberg/gutenberg/node_modules/jest-runner/build/testWorker.js:106:12)
JavaScript (16): packages/block-editor/src/store/test/actions.js#L130
TypeError: Cannot read properties of undefined (reading 'forEach') at forEach (/home/runner/work/gutenberg/gutenberg/packages/rich-text/src/to-tree.js:130:11) at toHTMLString (/home/runner/work/gutenberg/gutenberg/packages/rich-text/src/to-html-string.js:28:21) at /home/runner/work/gutenberg/gutenberg/packages/block-editor/src/store/actions.js:1105:59 at Object.<anonymous> (/home/runner/work/gutenberg/gutenberg/packages/block-editor/src/store/test/actions.js:1136:5) at Promise.then.completed (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/utils.js:300:28) at new Promise (<anonymous>) at callAsyncCircusFn (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/utils.js:233:10) at _callCircusTest (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:315:40) at runMicrotasks (<anonymous>) at processTicksAndRejections (node:internal/process/task_queues:96:5) at _runTest (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:251:3) at _runTestsForDescribeBlock (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:125:9) at _runTestsForDescribeBlock (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:120:9) at _runTestsForDescribeBlock (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:120:9) at run (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:70:3) at runAndTransformResultsToJestFormat (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21) at jestAdapter (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19) at runTestInternal (/home/runner/work/gutenberg/gutenberg/node_modules/jest-runner/build/runTest.js:367:16) at runTest (/home/runner/work/gutenberg/gutenberg/node_modules/jest-runner/build/runTest.js:444:34) at Object.worker (/home/runner/work/gutenberg/gutenberg/node_modules/jest-runner/build/testWorker.js:106:12)
JavaScript (16)
Process completed with exit code 1.
JavaScript (16)
Both node-version and node-version-file inputs are specified, only node-version will be used