Patterns: Add a preference to disable the loading the of the choose pattern modal #88765
Annotations
6 errors and 1 warning
Running the tests:
packages/edit-post/src/components/preferences-modal/test/index.js#L44
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 'filter')]]],[[Error: Uncaught [TypeError: Cannot read properties of undefined (reading 'filter')]]],["The above error occurred in the <EditPostPreferencesModal> component:·
at EditPostPreferencesModal (/home/runner/work/gutenberg/gutenberg/packages/edit-post/src/components/preferences-modal/index.js:44:36)·
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:96: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 _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/edit-post/src/components/preferences-modal/test/index.js#L43
TypeError: Cannot read properties of undefined (reading 'filter')
at filter (/home/runner/work/gutenberg/gutenberg/packages/edit-post/src/components/start-page-options/index.js:43:48)
at mountMemo (/home/runner/work/gutenberg/gutenberg/node_modules/react-dom/cjs/react-dom.development.js:17225:19)
at Object.useMemo (/home/runner/work/gutenberg/gutenberg/node_modules/react-dom/cjs/react-dom.development.js:17670:16)
at useMemo (/home/runner/work/gutenberg/gutenberg/node_modules/react/cjs/react.development.js:1650:21)
at useStartPatterns (/home/runner/work/gutenberg/gutenberg/packages/edit-post/src/components/start-page-options/index.js:40:16)
at EditPostPreferencesModal (/home/runner/work/gutenberg/gutenberg/packages/edit-post/src/components/preferences-modal/index.js:45:42)
at renderWithHooks (/home/runner/work/gutenberg/gutenberg/node_modules/react-dom/cjs/react-dom.development.js:16305:18)
at mountIndeterminateComponent (/home/runner/work/gutenberg/gutenberg/node_modules/react-dom/cjs/react-dom.development.js:20074:13)
at beginWork (/home/runner/work/gutenberg/gutenberg/node_modules/react-dom/cjs/react-dom.development.js:21587:16)
at beginWork$1 (/home/runner/work/gutenberg/gutenberg/node_modules/react-dom/cjs/react-dom.development.js:27426:14)
at performUnitOfWork (/home/runner/work/gutenberg/gutenberg/node_modules/react-dom/cjs/react-dom.development.js:26560:12)
at workLoopSync (/home/runner/work/gutenberg/gutenberg/node_modules/react-dom/cjs/react-dom.development.js:26466:5)
at renderRootSync (/home/runner/work/gutenberg/gutenberg/node_modules/react-dom/cjs/react-dom.development.js:26434:7)
at recoverFromConcurrentError (/home/runner/work/gutenberg/gutenberg/node_modules/react-dom/cjs/react-dom.development.js:25850:20)
at performConcurrentWorkOnRoot (/home/runner/work/gutenberg/gutenberg/node_modules/react-dom/cjs/react-dom.development.js:25750: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:46:25
at renderRoot (/home/runner/work/gutenberg/gutenberg/node_modules/@testing-library/react/dist/pure.js:161:26)
at render (/home/runner/work/gutenberg/gutenberg/node_modules/@testing-library/react/dist/pure.js:247:10)
at Object.<anonymous> (/home/runner/work/gutenberg/gutenberg/packages/edit-post/src/components/preferences-modal/test/index.js:43:10)
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:96:5)
at _runTest (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:251:3)
at _runTestsForDescribeBlock (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:125:9)
at _runTestsForDescribeBlock (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:120:9)
at _runTestsForDescribeBlock (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:120:9)
at run (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:70:3)
at runAndTransformResultsToJestFormat (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
at jestAdapter (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
at runTestInternal (/home/runner/work/gutenberg/gutenberg/node_modules/jest-runner/build/runTest.js:367:16)
at runTest (/home/runner/work/gutenberg/gutenberg/node_modules/
|
Running the tests:
packages/edit-post/src/components/preferences-modal/test/index.js#L44
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 'filter')]]],[[Error: Uncaught [TypeError: Cannot read properties of undefined (reading 'filter')]]],["The above error occurred in the <EditPostPreferencesModal> component:·
at EditPostPreferencesModal (/home/runner/work/gutenberg/gutenberg/packages/edit-post/src/components/preferences-modal/index.js:44:36)·
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:96: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 _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/edit-post/src/components/preferences-modal/test/index.js#L43
TypeError: Cannot read properties of undefined (reading 'filter')
at filter (/home/runner/work/gutenberg/gutenberg/packages/edit-post/src/components/start-page-options/index.js:43:48)
at mountMemo (/home/runner/work/gutenberg/gutenberg/node_modules/react-dom/cjs/react-dom.development.js:17225:19)
at Object.useMemo (/home/runner/work/gutenberg/gutenberg/node_modules/react-dom/cjs/react-dom.development.js:17670:16)
at useMemo (/home/runner/work/gutenberg/gutenberg/node_modules/react/cjs/react.development.js:1650:21)
at useStartPatterns (/home/runner/work/gutenberg/gutenberg/packages/edit-post/src/components/start-page-options/index.js:40:16)
at EditPostPreferencesModal (/home/runner/work/gutenberg/gutenberg/packages/edit-post/src/components/preferences-modal/index.js:45:42)
at renderWithHooks (/home/runner/work/gutenberg/gutenberg/node_modules/react-dom/cjs/react-dom.development.js:16305:18)
at mountIndeterminateComponent (/home/runner/work/gutenberg/gutenberg/node_modules/react-dom/cjs/react-dom.development.js:20074:13)
at beginWork (/home/runner/work/gutenberg/gutenberg/node_modules/react-dom/cjs/react-dom.development.js:21587:16)
at beginWork$1 (/home/runner/work/gutenberg/gutenberg/node_modules/react-dom/cjs/react-dom.development.js:27426:14)
at performUnitOfWork (/home/runner/work/gutenberg/gutenberg/node_modules/react-dom/cjs/react-dom.development.js:26560:12)
at workLoopSync (/home/runner/work/gutenberg/gutenberg/node_modules/react-dom/cjs/react-dom.development.js:26466:5)
at renderRootSync (/home/runner/work/gutenberg/gutenberg/node_modules/react-dom/cjs/react-dom.development.js:26434:7)
at recoverFromConcurrentError (/home/runner/work/gutenberg/gutenberg/node_modules/react-dom/cjs/react-dom.development.js:25850:20)
at performConcurrentWorkOnRoot (/home/runner/work/gutenberg/gutenberg/node_modules/react-dom/cjs/react-dom.development.js:25750: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:46:25
at renderRoot (/home/runner/work/gutenberg/gutenberg/node_modules/@testing-library/react/dist/pure.js:161:26)
at render (/home/runner/work/gutenberg/gutenberg/node_modules/@testing-library/react/dist/pure.js:247:10)
at Object.<anonymous> (/home/runner/work/gutenberg/gutenberg/packages/edit-post/src/components/preferences-modal/test/index.js:74: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:96:5)
at _runTest (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:251:3)
at _runTestsForDescribeBlock (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:125:9)
at _runTestsForDescribeBlock (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:120:9)
at 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-run
|
Running the tests:
packages/edit-post/src/components/preferences-modal/test/index.js#L44
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 'filter')]]],[[Error: Uncaught [TypeError: Cannot read properties of undefined (reading 'filter')]]],["The above error occurred in the <EditPostPreferencesModal> component:·
at EditPostPreferencesModal (/home/runner/work/gutenberg/gutenberg/packages/edit-post/src/components/preferences-modal/index.js:44:36)·
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:96: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.
|
|
The logs for this run have expired and are no longer available.
Loading