Provide default algorithm for section root in block editor #121196
Annotations
9 errors and 1 warning
Running the tests:
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)
|
Running the tests:
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)
|
Running the tests:
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
|
Running the tests:
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)
|
Running the tests:
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
|
Running the tests:
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)
|
Running the tests:
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
|
Running the tests:
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)
|
Running the tests
Process completed with exit code 1.
|
Setup Node.js and install dependencies
Both node-version and node-version-file inputs are specified, only node-version will be used
|
Loading