Update url we change to when location changes #5332
build-and-test.yaml
on: push
Build and test packages
3m 19s
Package bygger
0s
Package fyllut
0s
Deploy bygger to prod
0s
Trigger deploy fyllut to dev
0s
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.
|