Move selected layout set to global ux-editor context #7897
Annotations
3 errors
Running Unit Tests:
frontend/packages/ux-editor/src/testing/mocks.tsx#L127
Expected test not to call console.error().
If the error is expected, test for it explicitly by mocking it out using jest.spyOn(console, 'error').mockImplementation() and test that the warning occurs.
Error: Uncaught [TypeError: Cannot convert undefined or null to object]
at reportException (../node_modules/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js:66:24)
at innerInvokeEventListeners (../node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:353:9)
at invokeEventListeners (../node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:286:3)
at HTMLUnknownElementImpl._dispatch (../node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:233:9)
at HTMLUnknownElementImpl.dispatchEvent (../node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:104:17)
at HTMLUnknownElement.dispatchEvent (../node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:241:34)
at Object.invokeGuardedCallbackDev (../node_modules/react-dom/cjs/react-dom.development.js:4213:16)
at invokeGuardedCallback (../node_modules/react-dom/cjs/react-dom.development.js:4277:31)
at beginWork$1 (../node_modules/react-dom/cjs/react-dom.development.js:27451:7)
at performUnitOfWork (../node_modules/react-dom/cjs/react-dom.development.js:26560:12)
at workLoopSync (../node_modules/react-dom/cjs/react-dom.development.js:26466:5)
at renderRootSync (../node_modules/react-dom/cjs/react-dom.development.js:26434:7)
at performConcurrentWorkOnRoot (../node_modules/react-dom/cjs/react-dom.development.js:25738:74)
at flushActQueue (../node_modules/react/cjs/react.development.js:2667:24)
at act (../node_modules/react/cjs/react.development.js:2582:11)
at ../node_modules/@testing-library/react/dist/act-compat.js:46:25
at renderRoot (../node_modules/@testing-library/react/dist/pure.js:161:26)
at render (../node_modules/@testing-library/react/dist/pure.js:247:10)
at packages/ux-editor/src/testing/mocks.tsx:127:32
at queries (packages/ux-editor/src/App.test.tsx:14:34)
at Object.render (packages/ux-editor/src/App.test.tsx:36:5)
detail: TypeError: Cannot convert undefined or null to object
at Function.values (<anonymous>)
at values (packages/ux-editor/src/selectors/formLayoutSelectors.ts:12:6)
at ConditionalRenderingModal (packages/ux-editor/src/components/toolbar/ConditionalRenderingModal.tsx:36:50)
at renderWithHooks (../node_modules/react-dom/cjs/react-dom.development.js:16305:18)
at mountIndeterminateComponent (../node_modules/react-dom/cjs/react-dom.development.js:20074:13)
at beginWork (../node_modules/react-dom/cjs/react-dom.development.js:21587:16)
at HTMLUnknownElement.callCallback (../node_modules/react-dom/cjs/react-dom.development.js:4164:14)
at HTMLUnknownElement.callTheUserObjectsOperation (../node_modules/jsdom/lib/jsdom/living/generated/EventListener.js:26:30)
at innerInvokeEventListeners (../node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:350:25)
at invokeEventListeners (../node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:286:3)
at HTMLUnknownElementImpl._dispatch (../node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:233:9)
at HTMLUnknownElementImpl.dispatchEvent (../node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:104:17)
at HTMLUnknownElement.dispatchEvent (../node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:241:34)
at Object.invokeGuardedCallbackDev (../node_modules/react-dom/cjs/react-dom.development.js:4213:16)
at invokeGuardedCallback (../node_modules/react-dom/cjs/react-dom.development.js:4277:31)
at beginWork$1 (../node_modules/react-dom/cjs/react-dom.development.js:27451:7)
at performUnitOfWork (../node_modules/react-dom/cjs/react-dom.development.js:26560:12)
at workLoopSync (../node_modules/react-dom/cjs/react-dom.development.js:26466:5)
at renderRootSync (../node_modules/react-dom/cjs/react-dom.development.js:26434:7)
at performConcurrentWorkOnR
|
Running Unit Tests:
frontend/packages/ux-editor/src/testing/mocks.tsx#L127
Expected test not to call console.error().
If the error is expected, test for it explicitly by mocking it out using jest.spyOn(console, 'error').mockImplementation() and test that the warning occurs.
Error: Uncaught [TypeError: Cannot convert undefined or null to object]
at reportException (../node_modules/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js:66:24)
at innerInvokeEventListeners (../node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:353:9)
at invokeEventListeners (../node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:286:3)
at HTMLUnknownElementImpl._dispatch (../node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:233:9)
at HTMLUnknownElementImpl.dispatchEvent (../node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:104:17)
at HTMLUnknownElement.dispatchEvent (../node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:241:34)
at Object.invokeGuardedCallbackDev (../node_modules/react-dom/cjs/react-dom.development.js:4213:16)
at invokeGuardedCallback (../node_modules/react-dom/cjs/react-dom.development.js:4277:31)
at beginWork$1 (../node_modules/react-dom/cjs/react-dom.development.js:27451:7)
at performUnitOfWork (../node_modules/react-dom/cjs/react-dom.development.js:26560:12)
at workLoopSync (../node_modules/react-dom/cjs/react-dom.development.js:26466:5)
at renderRootSync (../node_modules/react-dom/cjs/react-dom.development.js:26434:7)
at performConcurrentWorkOnRoot (../node_modules/react-dom/cjs/react-dom.development.js:25738:74)
at flushActQueue (../node_modules/react/cjs/react.development.js:2667:24)
at act (../node_modules/react/cjs/react.development.js:2582:11)
at ../node_modules/@testing-library/react/dist/act-compat.js:46:25
at renderRoot (../node_modules/@testing-library/react/dist/pure.js:161:26)
at render (../node_modules/@testing-library/react/dist/pure.js:247:10)
at packages/ux-editor/src/testing/mocks.tsx:127:32
at queries (packages/ux-editor/src/containers/FormDesigner.test.tsx:20:34)
at Object.render (packages/ux-editor/src/containers/FormDesigner.test.tsx:38:5) {
detail: TypeError: Cannot convert undefined or null to object
at Function.values (<anonymous>)
at values (packages/ux-editor/src/selectors/formLayoutSelectors.ts:12:6)
at ConditionalRenderingModal (packages/ux-editor/src/components/toolbar/ConditionalRenderingModal.tsx:36:50)
at renderWithHooks (../node_modules/react-dom/cjs/react-dom.development.js:16305:18)
at mountIndeterminateComponent (../node_modules/react-dom/cjs/react-dom.development.js:20074:13)
at beginWork (../node_modules/react-dom/cjs/react-dom.development.js:21587:16)
at HTMLUnknownElement.callCallback (../node_modules/react-dom/cjs/react-dom.development.js:4164:14)
at HTMLUnknownElement.callTheUserObjectsOperation (../node_modules/jsdom/lib/jsdom/living/generated/EventListener.js:26:30)
at innerInvokeEventListeners (../node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:350:25)
at invokeEventListeners (../node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:286:3)
at HTMLUnknownElementImpl._dispatch (../node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:233:9)
at HTMLUnknownElementImpl.dispatchEvent (../node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:104:17)
at HTMLUnknownElement.dispatchEvent (../node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:241:34)
at Object.invokeGuardedCallbackDev (../node_modules/react-dom/cjs/react-dom.development.js:4213:16)
at invokeGuardedCallback (../node_modules/react-dom/cjs/react-dom.development.js:4277:31)
at beginWork$1 (../node_modules/react-dom/cjs/react-dom.development.js:27451:7)
at performUnitOfWork (../node_modules/react-dom/cjs/react-dom.development.js:26560:12)
at workLoopSync (../node_modules/react-dom/cjs/react-dom.development.js:26466:5)
at renderRootSync (../node_modules/react-dom/cjs/react-dom.development.js:
|
Running Unit Tests
Process completed with exit code 1.
|
The logs for this run have expired and are no longer available.
Loading