Skip to content

Adjust studioContentMenu #18759

Adjust studioContentMenu

Adjust studioContentMenu #18759

Triggered via push October 30, 2024 11:18
Status Failure
Total duration 10m 9s
Artifacts
Fit to window
Zoom out
Zoom in

Annotations

10 errors
Typechecking and linting: frontend/libs/studio-content-library/src/ContentLibrary/LibraryContent/InfoBox/InfoBox.tsx#L5
Cannot find module '../../types/PageName' or its corresponding type declarations.
Typechecking and linting: frontend/libs/studio-content-library/src/ContentLibrary/LibraryContent/InfoBox/infoBoxConfigs.ts#L1
Cannot find module '../../types/PageName' or its corresponding type declarations.
Typechecking and linting: frontend/libs/studio-content-library/src/ContentLibrary/LibraryContent/InfoBox/infoBoxConfigs.ts#L2
Cannot find module '../../types/InfoBoxProps' or its corresponding type declarations.
Typechecking and linting: frontend/libs/studio-content-library/src/types/PagesProps.ts#L1
Cannot find module '../ContentLibrary/pages/CodeList' or its corresponding type declarations.
Typechecking and linting: frontend/libs/studio-content-library/src/types/PagesProps.ts#L3
Cannot find module '../ContentLibrary/pages/Images' or its corresponding type declarations.
Typechecking and linting
Process completed with exit code 2.
AppContentLibrary › renders the AppContentLibrary with codeLists and images resources: frontend/app-development/features/appContentLibrary/AppContentLibrary.test.tsx#L23
TypeError: Cannot destructure property 'basename' of 'React__namespace.useContext(...)' as it is null. at LinkWithRef (../node_modules/react-router-dom/dist/umd/react-router-dom.development.js:816:7) at renderWithHooks (../node_modules/react-dom/cjs/react-dom.development.js:2656:157) at updateForwardRef (../node_modules/react-dom/cjs/react-dom.development.js:3152:200) at beginWork (../node_modules/react-dom/cjs/react-dom.development.js:3640:1559) at beginWork$1 (../node_modules/react-dom/cjs/react-dom.development.js:4696:93) at performUnitOfWork (../node_modules/react-dom/cjs/react-dom.development.js:4522:270) at workLoopSync (../node_modules/react-dom/cjs/react-dom.development.js:4508:30) at renderRootSync (../node_modules/react-dom/cjs/react-dom.development.js:4504:159) at recoverFromConcurrentError (../node_modules/react-dom/cjs/react-dom.development.js:4383:170) at performConcurrentWorkOnRoot (../node_modules/react-dom/cjs/react-dom.development.js:4347:126) at flushActQueue (../node_modules/react/cjs/react.development.js:2337:28) at act (../node_modules/react/cjs/react.development.js:2261:15) at ../node_modules/@testing-library/react/dist/act-compat.js:70:25 at renderRoot (../node_modules/@testing-library/react/dist/pure.js:204:26) at render (../node_modules/@testing-library/react/dist/pure.js:296:10) at renderAppContentLibrary (app-development/features/appContentLibrary/AppContentLibrary.test.tsx:23:9) at Object.renderAppContentLibrary (app-development/features/appContentLibrary/AppContentLibrary.test.tsx:8:5)
AppContentLibrary › renders the AppContentLibrary with codeLists and images resources: frontend/app-development/features/appContentLibrary/AppContentLibrary.test.tsx#L23
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 destructure property 'basename' of 'React__namespace.useContext(...)' as it is null.] 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:750:45) at invokeGuardedCallback (../node_modules/react-dom/cjs/react-dom.development.js:771:126) at beginWork$1 (../node_modules/react-dom/cjs/react-dom.development.js:4706:1) at performUnitOfWork (../node_modules/react-dom/cjs/react-dom.development.js:4522:270) at workLoopSync (../node_modules/react-dom/cjs/react-dom.development.js:4508:30) at renderRootSync (../node_modules/react-dom/cjs/react-dom.development.js:4504:159) at performConcurrentWorkOnRoot (../node_modules/react-dom/cjs/react-dom.development.js:4343:166) at flushActQueue (../node_modules/react/cjs/react.development.js:2337:28) at act (../node_modules/react/cjs/react.development.js:2261:15) at ../node_modules/@testing-library/react/dist/act-compat.js:70:25 at renderRoot (../node_modules/@testing-library/react/dist/pure.js:204:26) at render (../node_modules/@testing-library/react/dist/pure.js:296:10) at renderAppContentLibrary (app-development/features/appContentLibrary/AppContentLibrary.test.tsx:23:9) at Object.renderAppContentLibrary (app-development/features/appContentLibrary/AppContentLibrary.test.tsx:8:5) detail: TypeError: Cannot destructure property 'basename' of 'React__namespace.useContext(...)' as it is null. at LinkWithRef (../node_modules/react-router-dom/dist/umd/react-router-dom.development.js:816:7) at renderWithHooks (../node_modules/react-dom/cjs/react-dom.development.js:2656:157) at updateForwardRef (../node_modules/react-dom/cjs/react-dom.development.js:3152:200) at beginWork (../node_modules/react-dom/cjs/react-dom.development.js:3640:1559) at HTMLUnknownElement.callCallback (../node_modules/react-dom/cjs/react-dom.development.js:730:119) 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:750:45) at invokeGuardedCallback (../node_modules/react-dom/cjs/react-dom.development.js:771:126) at beginWork$1 (../node_modules/react-dom/cjs/react-dom.development.js:4706:1) at performUnitOfWork (../node_modules/react-dom/cjs/react-dom.development.js:4522:270) at workLoopSync (../node_modules/react-dom/cjs/react-dom.development.js:4508:30) at renderRootSync (../node_modules/react-dom/cjs/react-dom.development.js:4504:159) at performConcurrentWorkOnR
Testing
Process completed with exit code 1.