Unify the Editor Mode Switcher, and enable it for template editing in the post editor #95109
Annotations
4 errors and 2 warnings
Running the tests:
packages/edit-post/src/store/test/actions.js#L196
TypeError: registry.dispatch(...).setEditorMode is not a function
at setEditorMode (/home/runner/work/gutenberg/gutenberg/packages/edit-post/src/store/actions.js:196:36)
at action (/home/runner/work/gutenberg/gutenberg/packages/data/src/redux-store/thunk-middleware.js:4:11)
at next (/home/runner/work/gutenberg/gutenberg/packages/redux-routine/src/index.js:24:12)
at next (/home/runner/work/gutenberg/gutenberg/packages/data/src/promise-middleware.js:20:9)
at Object.next [as dispatch] (/home/runner/work/gutenberg/gutenberg/packages/data/src/resolvers-cache-middleware.js:45:10)
at Object.dispatch [as switchEditorMode] (/home/runner/work/gutenberg/gutenberg/packages/data/src/redux-store/index.js:204:29)
at Object.switchEditorMode (/home/runner/work/gutenberg/gutenberg/packages/edit-post/src/store/test/actions.js:109:39)
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)
|
Running the tests:
packages/edit-post/src/store/test/actions.js#L196
TypeError: registry.dispatch(...).setEditorMode is not a function
at setEditorMode (/home/runner/work/gutenberg/gutenberg/packages/edit-post/src/store/actions.js:196:36)
at action (/home/runner/work/gutenberg/gutenberg/packages/data/src/redux-store/thunk-middleware.js:4:11)
at next (/home/runner/work/gutenberg/gutenberg/packages/redux-routine/src/index.js:24:12)
at next (/home/runner/work/gutenberg/gutenberg/packages/data/src/promise-middleware.js:20:9)
at Object.next [as dispatch] (/home/runner/work/gutenberg/gutenberg/packages/data/src/resolvers-cache-middleware.js:45:10)
at Object.dispatch [as switchEditorMode] (/home/runner/work/gutenberg/gutenberg/packages/data/src/redux-store/index.js:204:29)
at Object.switchEditorMode (/home/runner/work/gutenberg/gutenberg/packages/edit-post/src/store/test/actions.js:121:39)
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)
|
Running the tests:
packages/edit-site/src/store/test/actions.js#L510
TypeError: registry.dispatch(...).setEditorMode is not a function
at setEditorMode (/home/runner/work/gutenberg/gutenberg/packages/edit-site/src/store/actions.js:510:36)
at action (/home/runner/work/gutenberg/gutenberg/packages/data/src/redux-store/thunk-middleware.js:4:11)
at next (/home/runner/work/gutenberg/gutenberg/packages/redux-routine/src/index.js:24:12)
at next (/home/runner/work/gutenberg/gutenberg/packages/data/src/promise-middleware.js:20:9)
at Object.next [as dispatch] (/home/runner/work/gutenberg/gutenberg/packages/data/src/resolvers-cache-middleware.js:45:10)
at Object.dispatch [as switchEditorMode] (/home/runner/work/gutenberg/gutenberg/packages/data/src/redux-store/index.js:204:29)
at Object.switchEditorMode (/home/runner/work/gutenberg/gutenberg/packages/edit-site/src/store/test/actions.js:102:39)
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)
|
Running the tests
Process completed with exit code 1.
|
|
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c, actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
The logs for this run have expired and are no longer available.
Loading