Skip to content

Provide default algorithm for section root in block editor #121196

Provide default algorithm for section root in block editor

Provide default algorithm for section root in block editor #121196

Triggered via pull request December 5, 2024 10:22
Status Failure
Total duration 8m 4s
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 50s
Build JavaScript assets for PHP unit tests
PHP coding standards
18s
PHP coding standards
Matrix: unit-js-date
Matrix: unit-js
Matrix: test-php
Fit to window
Zoom out
Zoom in

Annotations

18 errors and 32 warnings
JavaScript (Node.js 20) 4/4: packages/block-editor/src/store/test/selectors.js#L280
TypeError: Cannot read properties of undefined (reading 'get') at get (/home/runner/work/gutenberg/gutenberg/packages/block-editor/src/store/selectors.js:280:37) at callSelector (/home/runner/work/gutenberg/gutenberg/node_modules/rememo/rememo.cjs:270:18) at getClientIdsOfDescendants (/home/runner/work/gutenberg/gutenberg/packages/block-editor/src/store/selectors.js:313:2) at getClientIdsWithDescendants (/home/runner/work/gutenberg/gutenberg/packages/block-editor/src/store/selectors.js:358:21) at callSelector (/home/runner/work/gutenberg/gutenberg/node_modules/rememo/rememo.cjs:270:18) at getSectionRootClientId (/home/runner/work/gutenberg/gutenberg/packages/block-editor/src/store/private-selectors.js:581:18) at /home/runner/work/gutenberg/gutenberg/packages/block-editor/src/store/utils.js:122:26 at /home/runner/work/gutenberg/gutenberg/packages/block-editor/src/store/selectors.js:1801:42 at callSelector (/home/runner/work/gutenberg/gutenberg/node_modules/rememo/rememo.cjs:221:40) at selector (/home/runner/work/gutenberg/gutenberg/packages/data/src/factory.js:56:10) at Object.canInsertBlockType (/home/runner/work/gutenberg/gutenberg/packages/block-editor/src/store/test/selectors.js:2673:12) 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 _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) 4/4: packages/block-editor/src/store/test/selectors.js#L280
TypeError: Cannot read properties of undefined (reading 'get') at get (/home/runner/work/gutenberg/gutenberg/packages/block-editor/src/store/selectors.js:280:37) at callSelector (/home/runner/work/gutenberg/gutenberg/node_modules/rememo/rememo.cjs:270:18) at getClientIdsOfDescendants (/home/runner/work/gutenberg/gutenberg/packages/block-editor/src/store/selectors.js:313:2) at getClientIdsWithDescendants (/home/runner/work/gutenberg/gutenberg/packages/block-editor/src/store/selectors.js:358:21) at callSelector (/home/runner/work/gutenberg/gutenberg/node_modules/rememo/rememo.cjs:270:18) at getSectionRootClientId (/home/runner/work/gutenberg/gutenberg/packages/block-editor/src/store/private-selectors.js:581:18) at /home/runner/work/gutenberg/gutenberg/packages/block-editor/src/store/utils.js:122:26 at /home/runner/work/gutenberg/gutenberg/packages/block-editor/src/store/selectors.js:1801:42 at callSelector (/home/runner/work/gutenberg/gutenberg/node_modules/rememo/rememo.cjs:221:40) at selector (/home/runner/work/gutenberg/gutenberg/packages/data/src/factory.js:56:10) at Object.canInsertBlockType (/home/runner/work/gutenberg/gutenberg/packages/block-editor/src/store/test/selectors.js:2687:12) 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 _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) 4/4: packages/block-editor/src/components/default-block-appender/test/index.js#L581
TypeError: (0 , _selectors.getBlocksByName) is not a function at getSectionRootClientId (/home/runner/work/gutenberg/gutenberg/packages/block-editor/src/store/private-selectors.js:581:18) at /home/runner/work/gutenberg/gutenberg/packages/block-editor/src/store/utils.js:122:26 at /home/runner/work/gutenberg/gutenberg/packages/block-editor/src/store/selectors.js:2372:45 at callSelector (/home/runner/work/gutenberg/gutenberg/node_modules/rememo/rememo.cjs:221:40) at selector (/home/runner/work/gutenberg/gutenberg/packages/data/src/factory.js:56:10) at selector (/home/runner/work/gutenberg/gutenberg/packages/data/src/redux-store/index.js:249:13) at getAllowedBlocks (/home/runner/work/gutenberg/gutenberg/packages/block-editor/src/components/inserter/index.js:241:26) at mapSelectToProps (/home/runner/work/gutenberg/gutenberg/packages/data/src/components/with-select/index.js:58:6) at mapSelect (/home/runner/work/gutenberg/gutenberg/packages/data/src/components/use-select/index.js:154:11) at call (/home/runner/work/gutenberg/gutenberg/packages/data/src/registry.js:123:20) at Object.apply [as __unstableMarkListeningStores] (/home/runner/work/gutenberg/gutenberg/packages/data/src/registry.js:204:30) at __unstableMarkListeningStores (/home/runner/work/gutenberg/gutenberg/packages/data/src/components/use-select/index.js:153:31) at updateValue (/home/runner/work/gutenberg/gutenberg/packages/data/src/components/use-select/index.js:203:3) at store (/home/runner/work/gutenberg/gutenberg/packages/data/src/components/use-select/index.js:227:34) at _useMappingSelect (/home/runner/work/gutenberg/gutenberg/packages/data/src/components/use-select/index.js:315:5) at /home/runner/work/gutenberg/gutenberg/packages/data/src/components/with-select/index.js:59:33 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/default-block-appender/test/index.js:30:31) 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
JavaScript (Node.js 20) 4/4: packages/block-editor/src/components/default-block-appender/test/index.js#L59
Error: expect(jest.fn()).not.toHaveErrored(expected) Expected mock function not to be called but it was called with: [[Error: Uncaught [TypeError: (0 , _selectors.getBlocksByName) is not a function]]],[[Error: Uncaught [TypeError: (0 , _selectors.getBlocksByName) is not a function]]],["The above error occurred in one of your React components:· at /home/runner/work/gutenberg/gutenberg/packages/data/src/components/with-select/index.js:59:33 at WithSelect(WithDispatch(IfCondition(Inserter))) (/home/runner/work/gutenberg/gutenberg/packages/compose/src/higher-order/pure/index.tsx:37:9) at div at rootClientId (/home/runner/work/gutenberg/gutenberg/packages/block-editor/src/components/default-block-appender/index.js:26:49)· 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) 4/4: packages/block-editor/src/components/default-block-appender/test/index.js#L581
TypeError: (0 , _selectors.getBlocksByName) is not a function at getSectionRootClientId (/home/runner/work/gutenberg/gutenberg/packages/block-editor/src/store/private-selectors.js:581:18) at /home/runner/work/gutenberg/gutenberg/packages/block-editor/src/store/utils.js:122:26 at /home/runner/work/gutenberg/gutenberg/packages/block-editor/src/store/selectors.js:2372:45 at callSelector (/home/runner/work/gutenberg/gutenberg/node_modules/rememo/rememo.cjs:221:40) at selector (/home/runner/work/gutenberg/gutenberg/packages/data/src/factory.js:56:10) at selector (/home/runner/work/gutenberg/gutenberg/packages/data/src/redux-store/index.js:249:13) at getAllowedBlocks (/home/runner/work/gutenberg/gutenberg/packages/block-editor/src/components/inserter/index.js:241:26) at mapSelectToProps (/home/runner/work/gutenberg/gutenberg/packages/data/src/components/with-select/index.js:58:6) at mapSelect (/home/runner/work/gutenberg/gutenberg/packages/data/src/components/use-select/index.js:154:11) at call (/home/runner/work/gutenberg/gutenberg/packages/data/src/registry.js:123:20) at Object.apply [as __unstableMarkListeningStores] (/home/runner/work/gutenberg/gutenberg/packages/data/src/registry.js:204:30) at __unstableMarkListeningStores (/home/runner/work/gutenberg/gutenberg/packages/data/src/components/use-select/index.js:153:31) at updateValue (/home/runner/work/gutenberg/gutenberg/packages/data/src/components/use-select/index.js:203:3) at store (/home/runner/work/gutenberg/gutenberg/packages/data/src/components/use-select/index.js:227:34) at _useMappingSelect (/home/runner/work/gutenberg/gutenberg/packages/data/src/components/use-select/index.js:315:5) at /home/runner/work/gutenberg/gutenberg/packages/data/src/components/with-select/index.js:59:33 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/default-block-appender/test/index.js:39:31) 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
JavaScript (Node.js 20) 4/4: packages/block-editor/src/components/default-block-appender/test/index.js#L59
Error: expect(jest.fn()).not.toHaveErrored(expected) Expected mock function not to be called but it was called with: [[Error: Uncaught [TypeError: (0 , _selectors.getBlocksByName) is not a function]]],[[Error: Uncaught [TypeError: (0 , _selectors.getBlocksByName) is not a function]]],["The above error occurred in one of your React components:· at /home/runner/work/gutenberg/gutenberg/packages/data/src/components/with-select/index.js:59:33 at WithSelect(WithDispatch(IfCondition(Inserter))) (/home/runner/work/gutenberg/gutenberg/packages/compose/src/higher-order/pure/index.tsx:37:9) at div at rootClientId (/home/runner/work/gutenberg/gutenberg/packages/block-editor/src/components/default-block-appender/index.js:26:49)· 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) 4/4: packages/block-editor/src/components/default-block-appender/test/index.js#L581
TypeError: (0 , _selectors.getBlocksByName) is not a function at getSectionRootClientId (/home/runner/work/gutenberg/gutenberg/packages/block-editor/src/store/private-selectors.js:581:18) at /home/runner/work/gutenberg/gutenberg/packages/block-editor/src/store/utils.js:122:26 at /home/runner/work/gutenberg/gutenberg/packages/block-editor/src/store/selectors.js:2372:45 at callSelector (/home/runner/work/gutenberg/gutenberg/node_modules/rememo/rememo.cjs:221:40) at selector (/home/runner/work/gutenberg/gutenberg/packages/data/src/factory.js:56:10) at selector (/home/runner/work/gutenberg/gutenberg/packages/data/src/redux-store/index.js:249:13) at getAllowedBlocks (/home/runner/work/gutenberg/gutenberg/packages/block-editor/src/components/inserter/index.js:241:26) at mapSelectToProps (/home/runner/work/gutenberg/gutenberg/packages/data/src/components/with-select/index.js:58:6) at mapSelect (/home/runner/work/gutenberg/gutenberg/packages/data/src/components/use-select/index.js:154:11) at call (/home/runner/work/gutenberg/gutenberg/packages/data/src/registry.js:123:20) at Object.apply [as __unstableMarkListeningStores] (/home/runner/work/gutenberg/gutenberg/packages/data/src/registry.js:204:30) at __unstableMarkListeningStores (/home/runner/work/gutenberg/gutenberg/packages/data/src/components/use-select/index.js:153:31) at updateValue (/home/runner/work/gutenberg/gutenberg/packages/data/src/components/use-select/index.js:203:3) at store (/home/runner/work/gutenberg/gutenberg/packages/data/src/components/use-select/index.js:227:34) at _useMappingSelect (/home/runner/work/gutenberg/gutenberg/packages/data/src/components/use-select/index.js:315:5) at /home/runner/work/gutenberg/gutenberg/packages/data/src/components/with-select/index.js:59:33 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/default-block-appender/test/index.js:56:31) 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
JavaScript (Node.js 20) 4/4: packages/block-editor/src/components/default-block-appender/test/index.js#L59
Error: expect(jest.fn()).not.toHaveErrored(expected) Expected mock function not to be called but it was called with: [[Error: Uncaught [TypeError: (0 , _selectors.getBlocksByName) is not a function]]],[[Error: Uncaught [TypeError: (0 , _selectors.getBlocksByName) is not a function]]],["The above error occurred in one of your React components:· at /home/runner/work/gutenberg/gutenberg/packages/data/src/components/with-select/index.js:59:33 at WithSelect(WithDispatch(IfCondition(Inserter))) (/home/runner/work/gutenberg/gutenberg/packages/compose/src/higher-order/pure/index.tsx:37:9) at div at rootClientId (/home/runner/work/gutenberg/gutenberg/packages/block-editor/src/components/default-block-appender/index.js:26:49)· 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) 4/4
Process completed with exit code 1.
JavaScript (Node.js 22) 4/4: packages/block-editor/src/store/test/selectors.js#L280
TypeError: Cannot read properties of undefined (reading 'get') at get (/home/runner/work/gutenberg/gutenberg/packages/block-editor/src/store/selectors.js:280:37) at callSelector (/home/runner/work/gutenberg/gutenberg/node_modules/rememo/rememo.cjs:270:18) at getClientIdsOfDescendants (/home/runner/work/gutenberg/gutenberg/packages/block-editor/src/store/selectors.js:313:2) at getClientIdsWithDescendants (/home/runner/work/gutenberg/gutenberg/packages/block-editor/src/store/selectors.js:358:21) at callSelector (/home/runner/work/gutenberg/gutenberg/node_modules/rememo/rememo.cjs:270:18) at getSectionRootClientId (/home/runner/work/gutenberg/gutenberg/packages/block-editor/src/store/private-selectors.js:581:18) at /home/runner/work/gutenberg/gutenberg/packages/block-editor/src/store/utils.js:122:26 at /home/runner/work/gutenberg/gutenberg/packages/block-editor/src/store/selectors.js:1801:42 at callSelector (/home/runner/work/gutenberg/gutenberg/node_modules/rememo/rememo.cjs:221:40) at selector (/home/runner/work/gutenberg/gutenberg/packages/data/src/factory.js:56:10) at Object.canInsertBlockType (/home/runner/work/gutenberg/gutenberg/packages/block-editor/src/store/test/selectors.js:2673:12) 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 _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) 4/4: packages/block-editor/src/store/test/selectors.js#L280
TypeError: Cannot read properties of undefined (reading 'get') at get (/home/runner/work/gutenberg/gutenberg/packages/block-editor/src/store/selectors.js:280:37) at callSelector (/home/runner/work/gutenberg/gutenberg/node_modules/rememo/rememo.cjs:270:18) at getClientIdsOfDescendants (/home/runner/work/gutenberg/gutenberg/packages/block-editor/src/store/selectors.js:313:2) at getClientIdsWithDescendants (/home/runner/work/gutenberg/gutenberg/packages/block-editor/src/store/selectors.js:358:21) at callSelector (/home/runner/work/gutenberg/gutenberg/node_modules/rememo/rememo.cjs:270:18) at getSectionRootClientId (/home/runner/work/gutenberg/gutenberg/packages/block-editor/src/store/private-selectors.js:581:18) at /home/runner/work/gutenberg/gutenberg/packages/block-editor/src/store/utils.js:122:26 at /home/runner/work/gutenberg/gutenberg/packages/block-editor/src/store/selectors.js:1801:42 at callSelector (/home/runner/work/gutenberg/gutenberg/node_modules/rememo/rememo.cjs:221:40) at selector (/home/runner/work/gutenberg/gutenberg/packages/data/src/factory.js:56:10) at Object.canInsertBlockType (/home/runner/work/gutenberg/gutenberg/packages/block-editor/src/store/test/selectors.js:2687:12) 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 _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) 4/4: packages/block-editor/src/components/default-block-appender/test/index.js#L581
TypeError: (0 , _selectors.getBlocksByName) is not a function at getSectionRootClientId (/home/runner/work/gutenberg/gutenberg/packages/block-editor/src/store/private-selectors.js:581:18) at /home/runner/work/gutenberg/gutenberg/packages/block-editor/src/store/utils.js:122:26 at /home/runner/work/gutenberg/gutenberg/packages/block-editor/src/store/selectors.js:2372:45 at callSelector (/home/runner/work/gutenberg/gutenberg/node_modules/rememo/rememo.cjs:221:40) at selector (/home/runner/work/gutenberg/gutenberg/packages/data/src/factory.js:56:10) at selector (/home/runner/work/gutenberg/gutenberg/packages/data/src/redux-store/index.js:249:13) at getAllowedBlocks (/home/runner/work/gutenberg/gutenberg/packages/block-editor/src/components/inserter/index.js:241:26) at mapSelectToProps (/home/runner/work/gutenberg/gutenberg/packages/data/src/components/with-select/index.js:58:6) at mapSelect (/home/runner/work/gutenberg/gutenberg/packages/data/src/components/use-select/index.js:154:11) at call (/home/runner/work/gutenberg/gutenberg/packages/data/src/registry.js:123:20) at Object.apply [as __unstableMarkListeningStores] (/home/runner/work/gutenberg/gutenberg/packages/data/src/registry.js:204:30) at __unstableMarkListeningStores (/home/runner/work/gutenberg/gutenberg/packages/data/src/components/use-select/index.js:153:31) at updateValue (/home/runner/work/gutenberg/gutenberg/packages/data/src/components/use-select/index.js:203:3) at store (/home/runner/work/gutenberg/gutenberg/packages/data/src/components/use-select/index.js:227:34) at _useMappingSelect (/home/runner/work/gutenberg/gutenberg/packages/data/src/components/use-select/index.js:315:5) at /home/runner/work/gutenberg/gutenberg/packages/data/src/components/with-select/index.js:59:33 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/default-block-appender/test/index.js:30:31) 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
JavaScript (Node.js 22) 4/4: packages/block-editor/src/components/default-block-appender/test/index.js#L59
Error: expect(jest.fn()).not.toHaveErrored(expected) Expected mock function not to be called but it was called with: [[Error: Uncaught [TypeError: (0 , _selectors.getBlocksByName) is not a function]]],[[Error: Uncaught [TypeError: (0 , _selectors.getBlocksByName) is not a function]]],["The above error occurred in one of your React components:· at /home/runner/work/gutenberg/gutenberg/packages/data/src/components/with-select/index.js:59:33 at WithSelect(WithDispatch(IfCondition(Inserter))) (/home/runner/work/gutenberg/gutenberg/packages/compose/src/higher-order/pure/index.tsx:37:9) at div at rootClientId (/home/runner/work/gutenberg/gutenberg/packages/block-editor/src/components/default-block-appender/index.js:26:49)· 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) 4/4: packages/block-editor/src/components/default-block-appender/test/index.js#L581
TypeError: (0 , _selectors.getBlocksByName) is not a function at getSectionRootClientId (/home/runner/work/gutenberg/gutenberg/packages/block-editor/src/store/private-selectors.js:581:18) at /home/runner/work/gutenberg/gutenberg/packages/block-editor/src/store/utils.js:122:26 at /home/runner/work/gutenberg/gutenberg/packages/block-editor/src/store/selectors.js:2372:45 at callSelector (/home/runner/work/gutenberg/gutenberg/node_modules/rememo/rememo.cjs:221:40) at selector (/home/runner/work/gutenberg/gutenberg/packages/data/src/factory.js:56:10) at selector (/home/runner/work/gutenberg/gutenberg/packages/data/src/redux-store/index.js:249:13) at getAllowedBlocks (/home/runner/work/gutenberg/gutenberg/packages/block-editor/src/components/inserter/index.js:241:26) at mapSelectToProps (/home/runner/work/gutenberg/gutenberg/packages/data/src/components/with-select/index.js:58:6) at mapSelect (/home/runner/work/gutenberg/gutenberg/packages/data/src/components/use-select/index.js:154:11) at call (/home/runner/work/gutenberg/gutenberg/packages/data/src/registry.js:123:20) at Object.apply [as __unstableMarkListeningStores] (/home/runner/work/gutenberg/gutenberg/packages/data/src/registry.js:204:30) at __unstableMarkListeningStores (/home/runner/work/gutenberg/gutenberg/packages/data/src/components/use-select/index.js:153:31) at updateValue (/home/runner/work/gutenberg/gutenberg/packages/data/src/components/use-select/index.js:203:3) at store (/home/runner/work/gutenberg/gutenberg/packages/data/src/components/use-select/index.js:227:34) at _useMappingSelect (/home/runner/work/gutenberg/gutenberg/packages/data/src/components/use-select/index.js:315:5) at /home/runner/work/gutenberg/gutenberg/packages/data/src/components/with-select/index.js:59:33 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/default-block-appender/test/index.js:39:31) 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
JavaScript (Node.js 22) 4/4: packages/block-editor/src/components/default-block-appender/test/index.js#L59
Error: expect(jest.fn()).not.toHaveErrored(expected) Expected mock function not to be called but it was called with: [[Error: Uncaught [TypeError: (0 , _selectors.getBlocksByName) is not a function]]],[[Error: Uncaught [TypeError: (0 , _selectors.getBlocksByName) is not a function]]],["The above error occurred in one of your React components:· at /home/runner/work/gutenberg/gutenberg/packages/data/src/components/with-select/index.js:59:33 at WithSelect(WithDispatch(IfCondition(Inserter))) (/home/runner/work/gutenberg/gutenberg/packages/compose/src/higher-order/pure/index.tsx:37:9) at div at rootClientId (/home/runner/work/gutenberg/gutenberg/packages/block-editor/src/components/default-block-appender/index.js:26:49)· 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) 4/4: packages/block-editor/src/components/default-block-appender/test/index.js#L581
TypeError: (0 , _selectors.getBlocksByName) is not a function at getSectionRootClientId (/home/runner/work/gutenberg/gutenberg/packages/block-editor/src/store/private-selectors.js:581:18) at /home/runner/work/gutenberg/gutenberg/packages/block-editor/src/store/utils.js:122:26 at /home/runner/work/gutenberg/gutenberg/packages/block-editor/src/store/selectors.js:2372:45 at callSelector (/home/runner/work/gutenberg/gutenberg/node_modules/rememo/rememo.cjs:221:40) at selector (/home/runner/work/gutenberg/gutenberg/packages/data/src/factory.js:56:10) at selector (/home/runner/work/gutenberg/gutenberg/packages/data/src/redux-store/index.js:249:13) at getAllowedBlocks (/home/runner/work/gutenberg/gutenberg/packages/block-editor/src/components/inserter/index.js:241:26) at mapSelectToProps (/home/runner/work/gutenberg/gutenberg/packages/data/src/components/with-select/index.js:58:6) at mapSelect (/home/runner/work/gutenberg/gutenberg/packages/data/src/components/use-select/index.js:154:11) at call (/home/runner/work/gutenberg/gutenberg/packages/data/src/registry.js:123:20) at Object.apply [as __unstableMarkListeningStores] (/home/runner/work/gutenberg/gutenberg/packages/data/src/registry.js:204:30) at __unstableMarkListeningStores (/home/runner/work/gutenberg/gutenberg/packages/data/src/components/use-select/index.js:153:31) at updateValue (/home/runner/work/gutenberg/gutenberg/packages/data/src/components/use-select/index.js:203:3) at store (/home/runner/work/gutenberg/gutenberg/packages/data/src/components/use-select/index.js:227:34) at _useMappingSelect (/home/runner/work/gutenberg/gutenberg/packages/data/src/components/use-select/index.js:315:5) at /home/runner/work/gutenberg/gutenberg/packages/data/src/components/with-select/index.js:59:33 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/default-block-appender/test/index.js:56:31) 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
JavaScript (Node.js 22) 4/4: packages/block-editor/src/components/default-block-appender/test/index.js#L59
Error: expect(jest.fn()).not.toHaveErrored(expected) Expected mock function not to be called but it was called with: [[Error: Uncaught [TypeError: (0 , _selectors.getBlocksByName) is not a function]]],[[Error: Uncaught [TypeError: (0 , _selectors.getBlocksByName) is not a function]]],["The above error occurred in one of your React components:· at /home/runner/work/gutenberg/gutenberg/packages/data/src/components/with-select/index.js:59:33 at WithSelect(WithDispatch(IfCondition(Inserter))) (/home/runner/work/gutenberg/gutenberg/packages/compose/src/higher-order/pure/index.tsx:37:9) at div at rootClientId (/home/runner/work/gutenberg/gutenberg/packages/block-editor/src/components/default-block-appender/index.js:26:49)· 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) 4/4
Process completed with exit code 1.
Compute previous WordPress version
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
PHP coding standards
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
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 22) 2/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 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
JavaScript (Node.js 22) 4/4
Both node-version and node-version-file inputs are specified, only node-version will be used
Mobile
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Build JavaScript assets for PHP unit tests
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
PHP 7.2 (WP previous major version) on ubuntu-latest
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
PHP 7.4 (WP previous major version) on ubuntu-latest
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
PHP 8.3 (WP previous major version) on ubuntu-latest
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
PHP 7.4 multisite on ubuntu-latest
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
PHP 7.2 on ubuntu-latest
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
PHP 8.1 multisite on ubuntu-latest
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
PHP 8.2 multisite on ubuntu-latest
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
PHP 8.3 on ubuntu-latest
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
PHP 7.4 on ubuntu-latest
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
PHP 7.3 multisite on ubuntu-latest
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
PHP 8.0 on ubuntu-latest
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
PHP 8.0 multisite on ubuntu-latest
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
PHP 8.1 on ubuntu-latest
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
PHP 8.2 on ubuntu-latest
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
PHP 8.3 multisite on ubuntu-latest
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
PHP 7.2 multisite on ubuntu-latest
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
PHP 7.3 on ubuntu-latest
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
PHP
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636

Artifacts

Produced during runtime
Name Size
build-assets
14 MB