Skip to content

Update url we change to when location changes #5332

Update url we change to when location changes

Update url we change to when location changes #5332

Triggered via push December 13, 2024 14:40
Status Failure
Total duration 4m 40s
Artifacts
Build and test packages
3m 19s
Build and test packages
Package bygger
0s
Package bygger
Package fyllut
0s
Package fyllut
Deploy bygger to prod
0s
Deploy bygger to prod
Trigger deploy fyllut to dev
0s
Trigger deploy fyllut to dev
Fit to window
Zoom out
Zoom in

Annotations

9 errors
src/components/submission/DigitalSubmissionWithPrompt.test.tsx > DigitalSubmissionWithPrompt > renders "Send to Nav"-button: packages/shared-components/src/context/languages/languages-context.tsx#L26
Error: useLocation() may be used only in the context of a <Router> component. ❯ Object.invariant [as UNSAFE_invariant] ../../node_modules/@remix-run/router/history.ts:494:11 ❯ Proxy.useLocation ../../node_modules/react-router/lib/hooks.tsx:105:3 ❯ LanguagesProvider src/context/languages/languages-context.tsx:26:20 ❯ renderWithHooks ../../node_modules/react-dom/cjs/react-dom.development.js:15486:18 ❯ mountIndeterminateComponent ../../node_modules/react-dom/cjs/react-dom.development.js:20103:13 ❯ beginWork ../../node_modules/react-dom/cjs/react-dom.development.js:21626:16 ❯ beginWork$1 ../../node_modules/react-dom/cjs/react-dom.development.js:27465:14 ❯ performUnitOfWork ../../node_modules/react-dom/cjs/react-dom.development.js:26599:12 ❯ workLoopSync ../../node_modules/react-dom/cjs/react-dom.development.js:26505:5 ❯ renderRootSync ../../node_modules/react-dom/cjs/react-dom.development.js:26473:7
src/components/submission/DigitalSubmissionWithPrompt.test.tsx > DigitalSubmissionWithPrompt > renders modal with "DigitalSubmissionButton" when "Send to Nav" is clicked: packages/shared-components/src/context/languages/languages-context.tsx#L26
Error: useLocation() may be used only in the context of a <Router> component. ❯ Object.invariant [as UNSAFE_invariant] ../../node_modules/@remix-run/router/history.ts:494:11 ❯ Proxy.useLocation ../../node_modules/react-router/lib/hooks.tsx:105:3 ❯ LanguagesProvider src/context/languages/languages-context.tsx:26:20 ❯ renderWithHooks ../../node_modules/react-dom/cjs/react-dom.development.js:15486:18 ❯ mountIndeterminateComponent ../../node_modules/react-dom/cjs/react-dom.development.js:20103:13 ❯ beginWork ../../node_modules/react-dom/cjs/react-dom.development.js:21626:16 ❯ beginWork$1 ../../node_modules/react-dom/cjs/react-dom.development.js:27465:14 ❯ performUnitOfWork ../../node_modules/react-dom/cjs/react-dom.development.js:26599:12 ❯ workLoopSync ../../node_modules/react-dom/cjs/react-dom.development.js:26505:5 ❯ renderRootSync ../../node_modules/react-dom/cjs/react-dom.development.js:26473:7
src/components/select/enhet/EnhetSelector.test.tsx > EnhetSelector > When enhetsListe is provided > renders each option: packages/shared-components/src/context/languages/languages-context.tsx#L26
Error: useLocation() may be used only in the context of a <Router> component. ❯ Object.invariant [as UNSAFE_invariant] ../../node_modules/@remix-run/router/history.ts:494:11 ❯ Proxy.useLocation ../../node_modules/react-router/lib/hooks.tsx:105:3 ❯ LanguagesProvider src/context/languages/languages-context.tsx:26:20 ❯ renderWithHooks ../../node_modules/react-dom/cjs/react-dom.development.js:15486:18 ❯ mountIndeterminateComponent ../../node_modules/react-dom/cjs/react-dom.development.js:20103:13 ❯ beginWork ../../node_modules/react-dom/cjs/react-dom.development.js:21626:16 ❯ beginWork$1 ../../node_modules/react-dom/cjs/react-dom.development.js:27465:14 ❯ performUnitOfWork ../../node_modules/react-dom/cjs/react-dom.development.js:26599:12 ❯ workLoopSync ../../node_modules/react-dom/cjs/react-dom.development.js:26505:5 ❯ renderRootSync ../../node_modules/react-dom/cjs/react-dom.development.js:26473:7
src/components/select/enhet/EnhetSelector.test.tsx > EnhetSelector > When enhetsListe is provided > renders each option: packages/shared-components/src/context/languages/languages-context.tsx#L26
Error: useLocation() may be used only in the context of a <Router> component. ❯ Object.invariant [as UNSAFE_invariant] ../../node_modules/@remix-run/router/history.ts:494:11 ❯ Proxy.useLocation ../../node_modules/react-router/lib/hooks.tsx:105:3 ❯ LanguagesProvider src/context/languages/languages-context.tsx:26:20 ❯ renderWithHooks ../../node_modules/react-dom/cjs/react-dom.development.js:15486:18 ❯ mountIndeterminateComponent ../../node_modules/react-dom/cjs/react-dom.development.js:20103:13 ❯ beginWork ../../node_modules/react-dom/cjs/react-dom.development.js:21626:16 ❯ beginWork$1 ../../node_modules/react-dom/cjs/react-dom.development.js:27465:14 ❯ performUnitOfWork ../../node_modules/react-dom/cjs/react-dom.development.js:26599:12 ❯ workLoopSync ../../node_modules/react-dom/cjs/react-dom.development.js:26505:5 ❯ renderRootSync ../../node_modules/react-dom/cjs/react-dom.development.js:26473:7
src/components/select/enhet/EnhetSelector.test.tsx > EnhetSelector > When enhetsListe is provided > renders each option: packages/shared-components/src/context/languages/languages-context.tsx#L26
Error: useLocation() may be used only in the context of a <Router> component. ❯ Object.invariant [as UNSAFE_invariant] ../../node_modules/@remix-run/router/history.ts:494:11 ❯ Proxy.useLocation ../../node_modules/react-router/lib/hooks.tsx:105:3 ❯ LanguagesProvider src/context/languages/languages-context.tsx:26:20 ❯ renderWithHooks ../../node_modules/react-dom/cjs/react-dom.development.js:15486:18 ❯ mountIndeterminateComponent ../../node_modules/react-dom/cjs/react-dom.development.js:20103:13 ❯ beginWork ../../node_modules/react-dom/cjs/react-dom.development.js:21626:16 ❯ beginWork$1 ../../node_modules/react-dom/cjs/react-dom.development.js:27465:14 ❯ performUnitOfWork ../../node_modules/react-dom/cjs/react-dom.development.js:26599:12 ❯ workLoopSync ../../node_modules/react-dom/cjs/react-dom.development.js:26505:5 ❯ renderRootSync ../../node_modules/react-dom/cjs/react-dom.development.js:26473:7
src/components/select/enhet/EnhetSelector.test.tsx > EnhetSelector > When enhetsListe is provided > renders each option: packages/shared-components/src/context/languages/languages-context.tsx#L26
Error: useLocation() may be used only in the context of a <Router> component. ❯ Object.invariant [as UNSAFE_invariant] ../../node_modules/@remix-run/router/history.ts:494:11 ❯ Proxy.useLocation ../../node_modules/react-router/lib/hooks.tsx:105:3 ❯ LanguagesProvider src/context/languages/languages-context.tsx:26:20 ❯ renderWithHooks ../../node_modules/react-dom/cjs/react-dom.development.js:15486:18 ❯ mountIndeterminateComponent ../../node_modules/react-dom/cjs/react-dom.development.js:20103:13 ❯ beginWork ../../node_modules/react-dom/cjs/react-dom.development.js:21626:16 ❯ beginWork$1 ../../node_modules/react-dom/cjs/react-dom.development.js:27465:14 ❯ performUnitOfWork ../../node_modules/react-dom/cjs/react-dom.development.js:26599:12 ❯ workLoopSync ../../node_modules/react-dom/cjs/react-dom.development.js:26505:5 ❯ renderRootSync ../../node_modules/react-dom/cjs/react-dom.development.js:26473:7
src/components/select/enhet/EnhetSelector.test.tsx > EnhetSelector > When enhetsListe is provided > returns the selected enhet when selected: packages/shared-components/src/context/languages/languages-context.tsx#L26
Error: useLocation() may be used only in the context of a <Router> component. ❯ Object.invariant [as UNSAFE_invariant] ../../node_modules/@remix-run/router/history.ts:494:11 ❯ Proxy.useLocation ../../node_modules/react-router/lib/hooks.tsx:105:3 ❯ LanguagesProvider src/context/languages/languages-context.tsx:26:20 ❯ renderWithHooks ../../node_modules/react-dom/cjs/react-dom.development.js:15486:18 ❯ mountIndeterminateComponent ../../node_modules/react-dom/cjs/react-dom.development.js:20103:13 ❯ beginWork ../../node_modules/react-dom/cjs/react-dom.development.js:21626:16 ❯ beginWork$1 ../../node_modules/react-dom/cjs/react-dom.development.js:27465:14 ❯ performUnitOfWork ../../node_modules/react-dom/cjs/react-dom.development.js:26599:12 ❯ workLoopSync ../../node_modules/react-dom/cjs/react-dom.development.js:26505:5 ❯ renderRootSync ../../node_modules/react-dom/cjs/react-dom.development.js:26473:7
src/components/select/enhet/EnhetSelector.test.tsx > EnhetSelector > When enhetsListe is empty > does not render the select: packages/shared-components/src/context/languages/languages-context.tsx#L26
Error: useLocation() may be used only in the context of a <Router> component. ❯ Object.invariant [as UNSAFE_invariant] ../../node_modules/@remix-run/router/history.ts:494:11 ❯ Proxy.useLocation ../../node_modules/react-router/lib/hooks.tsx:105:3 ❯ LanguagesProvider src/context/languages/languages-context.tsx:26:20 ❯ renderWithHooks ../../node_modules/react-dom/cjs/react-dom.development.js:15486:18 ❯ mountIndeterminateComponent ../../node_modules/react-dom/cjs/react-dom.development.js:20103:13 ❯ beginWork ../../node_modules/react-dom/cjs/react-dom.development.js:21626:16 ❯ beginWork$1 ../../node_modules/react-dom/cjs/react-dom.development.js:27465:14 ❯ performUnitOfWork ../../node_modules/react-dom/cjs/react-dom.development.js:26599:12 ❯ workLoopSync ../../node_modules/react-dom/cjs/react-dom.development.js:26505:5 ❯ renderRootSync ../../node_modules/react-dom/cjs/react-dom.development.js:26473:7
Build and test packages
Process completed with exit code 1.