Skip to content

Extensibility: Make Block Bindings work with editor.BlockEdit hook #120514

Extensibility: Make Block Bindings work with editor.BlockEdit hook

Extensibility: Make Block Bindings work with editor.BlockEdit hook #120514

Triggered via pull request November 28, 2024 08:15
Status Failure
Total duration 8m 37s
Artifacts 1

unit-test.yml

on: pull_request
Compute previous WordPress version
0s
Compute previous WordPress version
Build JavaScript assets for PHP unit tests
4m 41s
Build JavaScript assets for PHP unit tests
PHP coding standards
20s
PHP coding standards
Matrix: unit-js-date
Matrix: unit-js
Matrix: test-php
Fit to window
Zoom out
Zoom in

Annotations

13 errors and 10 warnings
JavaScript (Node.js 22) 3/4: packages/block-editor/src/components/block-controls/test/index.js#L65
Error: expect(jest.fn()).not.toHaveErrored(expected) Expected mock function not to be called but it was called with: [[Error: Uncaught [TypeError: Cannot read properties of undefined (reading 'metadata')]]],[[Error: Uncaught [TypeError: Cannot read properties of undefined (reading 'metadata')]]],["The above error occurred in the <WithBlockBindingSupport(EditWithGeneratedProps)> component:· at /home/runner/work/gutenberg/gutenberg/packages/block-editor/src/components/block-edit/with-block-bindings-attributes.js:65:31 at mayDisplayControls (/home/runner/work/gutenberg/gutenberg/packages/block-editor/src/components/block-edit/index.js:37:2) at children (/home/runner/work/gutenberg/gutenberg/packages/components/src/slot-fill/bubbles-virtually/slot-fill-provider.tsx:109:2) at children (/home/runner/work/gutenberg/gutenberg/packages/components/src/slot-fill/provider.tsx:111:37) at children (/home/runner/work/gutenberg/gutenberg/packages/components/src/slot-fill/index.tsx:59:2)· Consider adding an error boundary to your tree to customize error handling behavior. Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries."] console.error() should not be used unless explicitly expected See https://www.npmjs.com/package/@wordpress/jest-console for details. at Object.assertExpectedCalls (/home/runner/work/gutenberg/gutenberg/packages/jest-console/src/index.js:32:40) 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 _callCircusHook (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:280:40) at processTicksAndRejections (node:internal/process/task_queues:105:5) at _runTest (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:253:5) 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 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 (Node.js 22) 3/4: packages/block-editor/src/components/block-controls/test/index.js#L77
TypeError: Cannot read properties of undefined (reading 'metadata') at metadata (/home/runner/work/gutenberg/gutenberg/packages/block-editor/src/components/block-edit/with-block-bindings-attributes.js:77:23) at renderWithHooks (/home/runner/work/gutenberg/gutenberg/node_modules/react-dom/cjs/react-dom.development.js:15486:18) at mountIndeterminateComponent (/home/runner/work/gutenberg/gutenberg/node_modules/react-dom/cjs/react-dom.development.js:20103:13) at beginWork (/home/runner/work/gutenberg/gutenberg/node_modules/react-dom/cjs/react-dom.development.js:21626:16) at beginWork$1 (/home/runner/work/gutenberg/gutenberg/node_modules/react-dom/cjs/react-dom.development.js:27465:14) at performUnitOfWork (/home/runner/work/gutenberg/gutenberg/node_modules/react-dom/cjs/react-dom.development.js:26599:12) at workLoopSync (/home/runner/work/gutenberg/gutenberg/node_modules/react-dom/cjs/react-dom.development.js:26505:5) at renderRootSync (/home/runner/work/gutenberg/gutenberg/node_modules/react-dom/cjs/react-dom.development.js:26473:7) at recoverFromConcurrentError (/home/runner/work/gutenberg/gutenberg/node_modules/react-dom/cjs/react-dom.development.js:25889:20) at performConcurrentWorkOnRoot (/home/runner/work/gutenberg/gutenberg/node_modules/react-dom/cjs/react-dom.development.js:25789:22) at flushActQueue (/home/runner/work/gutenberg/gutenberg/node_modules/react/cjs/react.development.js:2667:24) at act (/home/runner/work/gutenberg/gutenberg/node_modules/react/cjs/react.development.js:2582:11) at /home/runner/work/gutenberg/gutenberg/node_modules/@testing-library/react/dist/act-compat.js:47:25 at renderRoot (/home/runner/work/gutenberg/gutenberg/node_modules/@testing-library/react/dist/pure.js:180:26) at render (/home/runner/work/gutenberg/gutenberg/node_modules/@testing-library/react/dist/pure.js:271:10) at Object.<anonymous> (/home/runner/work/gutenberg/gutenberg/packages/block-editor/src/components/block-controls/test/index.js:85:9) 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 processTicksAndRejections (node:internal/process/task_queues:105: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 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 (Node.js 22) 3/4: packages/block-editor/src/components/block-controls/test/index.js#L65
Error: expect(jest.fn()).not.toHaveErrored(expected) Expected mock function not to be called but it was called with: [[Error: Uncaught [TypeError: Cannot read properties of undefined (reading 'metadata')]]],[[Error: Uncaught [TypeError: Cannot read properties of undefined (reading 'metadata')]]],["The above error occurred in the <WithBlockBindingSupport(EditWithGeneratedProps)> component:· at /home/runner/work/gutenberg/gutenberg/packages/block-editor/src/components/block-edit/with-block-bindings-attributes.js:65:31 at mayDisplayControls (/home/runner/work/gutenberg/gutenberg/packages/block-editor/src/components/block-edit/index.js:37:2) at children (/home/runner/work/gutenberg/gutenberg/packages/components/src/slot-fill/bubbles-virtually/slot-fill-provider.tsx:109:2) at children (/home/runner/work/gutenberg/gutenberg/packages/components/src/slot-fill/provider.tsx:111:37) at children (/home/runner/work/gutenberg/gutenberg/packages/components/src/slot-fill/index.tsx:59:2)· Consider adding an error boundary to your tree to customize error handling behavior. Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries."] console.error() should not be used unless explicitly expected See https://www.npmjs.com/package/@wordpress/jest-console for details. at Object.assertExpectedCalls (/home/runner/work/gutenberg/gutenberg/packages/jest-console/src/index.js:32:40) 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 _callCircusHook (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:280:40) at processTicksAndRejections (node:internal/process/task_queues:105:5) at _runTest (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:253:5) 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 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 (Node.js 22) 3/4: packages/block-editor/src/components/block-controls/test/index.js#L77
TypeError: Cannot read properties of undefined (reading 'metadata') at metadata (/home/runner/work/gutenberg/gutenberg/packages/block-editor/src/components/block-edit/with-block-bindings-attributes.js:77:23) at renderWithHooks (/home/runner/work/gutenberg/gutenberg/node_modules/react-dom/cjs/react-dom.development.js:15486:18) at mountIndeterminateComponent (/home/runner/work/gutenberg/gutenberg/node_modules/react-dom/cjs/react-dom.development.js:20103:13) at beginWork (/home/runner/work/gutenberg/gutenberg/node_modules/react-dom/cjs/react-dom.development.js:21626:16) at beginWork$1 (/home/runner/work/gutenberg/gutenberg/node_modules/react-dom/cjs/react-dom.development.js:27465:14) at performUnitOfWork (/home/runner/work/gutenberg/gutenberg/node_modules/react-dom/cjs/react-dom.development.js:26599:12) at workLoopSync (/home/runner/work/gutenberg/gutenberg/node_modules/react-dom/cjs/react-dom.development.js:26505:5) at renderRootSync (/home/runner/work/gutenberg/gutenberg/node_modules/react-dom/cjs/react-dom.development.js:26473:7) at recoverFromConcurrentError (/home/runner/work/gutenberg/gutenberg/node_modules/react-dom/cjs/react-dom.development.js:25889:20) at performConcurrentWorkOnRoot (/home/runner/work/gutenberg/gutenberg/node_modules/react-dom/cjs/react-dom.development.js:25789:22) at flushActQueue (/home/runner/work/gutenberg/gutenberg/node_modules/react/cjs/react.development.js:2667:24) at act (/home/runner/work/gutenberg/gutenberg/node_modules/react/cjs/react.development.js:2582:11) at /home/runner/work/gutenberg/gutenberg/node_modules/@testing-library/react/dist/act-compat.js:47:25 at renderRoot (/home/runner/work/gutenberg/gutenberg/node_modules/@testing-library/react/dist/pure.js:180:26) at render (/home/runner/work/gutenberg/gutenberg/node_modules/@testing-library/react/dist/pure.js:271:10) at Object.<anonymous> (/home/runner/work/gutenberg/gutenberg/packages/block-editor/src/components/block-controls/test/index.js:100:9) 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 processTicksAndRejections (node:internal/process/task_queues:105: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 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 (Node.js 22) 3/4: packages/block-editor/src/components/block-controls/test/index.js#L65
Error: expect(jest.fn()).not.toHaveErrored(expected) Expected mock function not to be called but it was called with: [[Error: Uncaught [TypeError: Cannot read properties of undefined (reading 'metadata')]]],[[Error: Uncaught [TypeError: Cannot read properties of undefined (reading 'metadata')]]],["The above error occurred in the <WithBlockBindingSupport(EditWithGeneratedProps)> component:· at /home/runner/work/gutenberg/gutenberg/packages/block-editor/src/components/block-edit/with-block-bindings-attributes.js:65:31 at mayDisplayControls (/home/runner/work/gutenberg/gutenberg/packages/block-editor/src/components/block-edit/index.js:37:2) at children (/home/runner/work/gutenberg/gutenberg/packages/components/src/slot-fill/bubbles-virtually/slot-fill-provider.tsx:109:2) at children (/home/runner/work/gutenberg/gutenberg/packages/components/src/slot-fill/provider.tsx:111:37) at children (/home/runner/work/gutenberg/gutenberg/packages/components/src/slot-fill/index.tsx:59:2)· Consider adding an error boundary to your tree to customize error handling behavior. Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries."] console.error() should not be used unless explicitly expected See https://www.npmjs.com/package/@wordpress/jest-console for details. at Object.assertExpectedCalls (/home/runner/work/gutenberg/gutenberg/packages/jest-console/src/index.js:32:40) 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 _callCircusHook (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:280:40) at processTicksAndRejections (node:internal/process/task_queues:105:5) at _runTest (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:253:5) 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 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 (Node.js 22) 3/4
Process completed with exit code 1.
JavaScript (Node.js 20) 3/4: packages/block-editor/src/components/block-controls/test/index.js#L65
Error: expect(jest.fn()).not.toHaveErrored(expected) Expected mock function not to be called but it was called with: [[Error: Uncaught [TypeError: Cannot read properties of undefined (reading 'metadata')]]],[[Error: Uncaught [TypeError: Cannot read properties of undefined (reading 'metadata')]]],["The above error occurred in the <WithBlockBindingSupport(EditWithGeneratedProps)> component:· at /home/runner/work/gutenberg/gutenberg/packages/block-editor/src/components/block-edit/with-block-bindings-attributes.js:65:31 at mayDisplayControls (/home/runner/work/gutenberg/gutenberg/packages/block-editor/src/components/block-edit/index.js:37:2) at children (/home/runner/work/gutenberg/gutenberg/packages/components/src/slot-fill/bubbles-virtually/slot-fill-provider.tsx:109:2) at children (/home/runner/work/gutenberg/gutenberg/packages/components/src/slot-fill/provider.tsx:111:37) at children (/home/runner/work/gutenberg/gutenberg/packages/components/src/slot-fill/index.tsx:59:2)· Consider adding an error boundary to your tree to customize error handling behavior. Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries."] console.error() should not be used unless explicitly expected See https://www.npmjs.com/package/@wordpress/jest-console for details. at Object.assertExpectedCalls (/home/runner/work/gutenberg/gutenberg/packages/jest-console/src/index.js:32:40) 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 _callCircusHook (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:280:40) at processTicksAndRejections (node:internal/process/task_queues:95:5) at _runTest (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:253:5) 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 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 (Node.js 20) 3/4: packages/block-editor/src/components/block-controls/test/index.js#L77
TypeError: Cannot read properties of undefined (reading 'metadata') at metadata (/home/runner/work/gutenberg/gutenberg/packages/block-editor/src/components/block-edit/with-block-bindings-attributes.js:77:23) at renderWithHooks (/home/runner/work/gutenberg/gutenberg/node_modules/react-dom/cjs/react-dom.development.js:15486:18) at mountIndeterminateComponent (/home/runner/work/gutenberg/gutenberg/node_modules/react-dom/cjs/react-dom.development.js:20103:13) at beginWork (/home/runner/work/gutenberg/gutenberg/node_modules/react-dom/cjs/react-dom.development.js:21626:16) at beginWork$1 (/home/runner/work/gutenberg/gutenberg/node_modules/react-dom/cjs/react-dom.development.js:27465:14) at performUnitOfWork (/home/runner/work/gutenberg/gutenberg/node_modules/react-dom/cjs/react-dom.development.js:26599:12) at workLoopSync (/home/runner/work/gutenberg/gutenberg/node_modules/react-dom/cjs/react-dom.development.js:26505:5) at renderRootSync (/home/runner/work/gutenberg/gutenberg/node_modules/react-dom/cjs/react-dom.development.js:26473:7) at recoverFromConcurrentError (/home/runner/work/gutenberg/gutenberg/node_modules/react-dom/cjs/react-dom.development.js:25889:20) at performConcurrentWorkOnRoot (/home/runner/work/gutenberg/gutenberg/node_modules/react-dom/cjs/react-dom.development.js:25789:22) at flushActQueue (/home/runner/work/gutenberg/gutenberg/node_modules/react/cjs/react.development.js:2667:24) at act (/home/runner/work/gutenberg/gutenberg/node_modules/react/cjs/react.development.js:2582:11) at /home/runner/work/gutenberg/gutenberg/node_modules/@testing-library/react/dist/act-compat.js:47:25 at renderRoot (/home/runner/work/gutenberg/gutenberg/node_modules/@testing-library/react/dist/pure.js:180:26) at render (/home/runner/work/gutenberg/gutenberg/node_modules/@testing-library/react/dist/pure.js:271:10) at Object.<anonymous> (/home/runner/work/gutenberg/gutenberg/packages/block-editor/src/components/block-controls/test/index.js:85:9) 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 processTicksAndRejections (node:internal/process/task_queues:95: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 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 (Node.js 20) 3/4: packages/block-editor/src/components/block-controls/test/index.js#L65
Error: expect(jest.fn()).not.toHaveErrored(expected) Expected mock function not to be called but it was called with: [[Error: Uncaught [TypeError: Cannot read properties of undefined (reading 'metadata')]]],[[Error: Uncaught [TypeError: Cannot read properties of undefined (reading 'metadata')]]],["The above error occurred in the <WithBlockBindingSupport(EditWithGeneratedProps)> component:· at /home/runner/work/gutenberg/gutenberg/packages/block-editor/src/components/block-edit/with-block-bindings-attributes.js:65:31 at mayDisplayControls (/home/runner/work/gutenberg/gutenberg/packages/block-editor/src/components/block-edit/index.js:37:2) at children (/home/runner/work/gutenberg/gutenberg/packages/components/src/slot-fill/bubbles-virtually/slot-fill-provider.tsx:109:2) at children (/home/runner/work/gutenberg/gutenberg/packages/components/src/slot-fill/provider.tsx:111:37) at children (/home/runner/work/gutenberg/gutenberg/packages/components/src/slot-fill/index.tsx:59:2)· Consider adding an error boundary to your tree to customize error handling behavior. Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries."] console.error() should not be used unless explicitly expected See https://www.npmjs.com/package/@wordpress/jest-console for details. at Object.assertExpectedCalls (/home/runner/work/gutenberg/gutenberg/packages/jest-console/src/index.js:32:40) 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 _callCircusHook (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:280:40) at processTicksAndRejections (node:internal/process/task_queues:95:5) at _runTest (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:253:5) 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 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 (Node.js 20) 3/4: packages/block-editor/src/components/block-controls/test/index.js#L77
TypeError: Cannot read properties of undefined (reading 'metadata') at metadata (/home/runner/work/gutenberg/gutenberg/packages/block-editor/src/components/block-edit/with-block-bindings-attributes.js:77:23) at renderWithHooks (/home/runner/work/gutenberg/gutenberg/node_modules/react-dom/cjs/react-dom.development.js:15486:18) at mountIndeterminateComponent (/home/runner/work/gutenberg/gutenberg/node_modules/react-dom/cjs/react-dom.development.js:20103:13) at beginWork (/home/runner/work/gutenberg/gutenberg/node_modules/react-dom/cjs/react-dom.development.js:21626:16) at beginWork$1 (/home/runner/work/gutenberg/gutenberg/node_modules/react-dom/cjs/react-dom.development.js:27465:14) at performUnitOfWork (/home/runner/work/gutenberg/gutenberg/node_modules/react-dom/cjs/react-dom.development.js:26599:12) at workLoopSync (/home/runner/work/gutenberg/gutenberg/node_modules/react-dom/cjs/react-dom.development.js:26505:5) at renderRootSync (/home/runner/work/gutenberg/gutenberg/node_modules/react-dom/cjs/react-dom.development.js:26473:7) at recoverFromConcurrentError (/home/runner/work/gutenberg/gutenberg/node_modules/react-dom/cjs/react-dom.development.js:25889:20) at performConcurrentWorkOnRoot (/home/runner/work/gutenberg/gutenberg/node_modules/react-dom/cjs/react-dom.development.js:25789:22) at flushActQueue (/home/runner/work/gutenberg/gutenberg/node_modules/react/cjs/react.development.js:2667:24) at act (/home/runner/work/gutenberg/gutenberg/node_modules/react/cjs/react.development.js:2582:11) at /home/runner/work/gutenberg/gutenberg/node_modules/@testing-library/react/dist/act-compat.js:47:25 at renderRoot (/home/runner/work/gutenberg/gutenberg/node_modules/@testing-library/react/dist/pure.js:180:26) at render (/home/runner/work/gutenberg/gutenberg/node_modules/@testing-library/react/dist/pure.js:271:10) at Object.<anonymous> (/home/runner/work/gutenberg/gutenberg/packages/block-editor/src/components/block-controls/test/index.js:100:9) 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 processTicksAndRejections (node:internal/process/task_queues:95: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 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 (Node.js 20) 3/4: packages/block-editor/src/components/block-controls/test/index.js#L65
Error: expect(jest.fn()).not.toHaveErrored(expected) Expected mock function not to be called but it was called with: [[Error: Uncaught [TypeError: Cannot read properties of undefined (reading 'metadata')]]],[[Error: Uncaught [TypeError: Cannot read properties of undefined (reading 'metadata')]]],["The above error occurred in the <WithBlockBindingSupport(EditWithGeneratedProps)> component:· at /home/runner/work/gutenberg/gutenberg/packages/block-editor/src/components/block-edit/with-block-bindings-attributes.js:65:31 at mayDisplayControls (/home/runner/work/gutenberg/gutenberg/packages/block-editor/src/components/block-edit/index.js:37:2) at children (/home/runner/work/gutenberg/gutenberg/packages/components/src/slot-fill/bubbles-virtually/slot-fill-provider.tsx:109:2) at children (/home/runner/work/gutenberg/gutenberg/packages/components/src/slot-fill/provider.tsx:111:37) at children (/home/runner/work/gutenberg/gutenberg/packages/components/src/slot-fill/index.tsx:59:2)· Consider adding an error boundary to your tree to customize error handling behavior. Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries."] console.error() should not be used unless explicitly expected See https://www.npmjs.com/package/@wordpress/jest-console for details. at Object.assertExpectedCalls (/home/runner/work/gutenberg/gutenberg/packages/jest-console/src/index.js:32:40) 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 _callCircusHook (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:280:40) at processTicksAndRejections (node:internal/process/task_queues:95:5) at _runTest (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:253:5) 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 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 (Node.js 20) 3/4
Process completed with exit code 1.
Mobile
Process completed with exit code 1.
JavaScript Date Tests (Node.js 20)
Both node-version and node-version-file inputs are specified, only node-version will be used
JavaScript Date Tests (Node.js 22)
Both node-version and node-version-file inputs are specified, only node-version will be used
JavaScript (Node.js 22) 3/4
Both node-version and node-version-file inputs are specified, only node-version will be used
JavaScript (Node.js 20) 3/4
Both node-version and node-version-file inputs are specified, only node-version will be used
JavaScript (Node.js 22) 2/4
Both node-version and node-version-file inputs are specified, only node-version will be used
JavaScript (Node.js 22) 4/4
Both node-version and node-version-file inputs are specified, only node-version will be used
JavaScript (Node.js 20) 4/4
Both node-version and node-version-file inputs are specified, only node-version will be used
JavaScript (Node.js 20) 2/4
Both node-version and node-version-file inputs are specified, only node-version will be used
JavaScript (Node.js 20) 1/4
Both node-version and node-version-file inputs are specified, only node-version will be used
JavaScript (Node.js 22) 1/4
Both node-version and node-version-file inputs are specified, only node-version will be used

Artifacts

Produced during runtime
Name Size
build-assets
14 MB