Skip to content

feat(190): Update for local storage persistance in templates form #40

feat(190): Update for local storage persistance in templates form

feat(190): Update for local storage persistance in templates form #40

Triggered via pull request September 5, 2024 22:34
Status Failure
Total duration 1m 13s
Artifacts

frontend-tests.yaml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

4 errors
src/pages/SaveTemplate.test.tsx > SaveTemplate Component > should render the SaveTemplate page with all elements: OCR/frontend/src/contexts/AnnotationContext.tsx#L76
Error: useAnnotationContext must be used within an AnnotationProvider ❯ Module.useAnnotationContext src/contexts/AnnotationContext.tsx:76:11 ❯ SaveTemplate src/pages/SaveTemplate.tsx:12:84 ❯ 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 ❯ recoverFromConcurrentError node_modules/react-dom/cjs/react-dom.development.js:25889:20
src/pages/SaveTemplate.test.tsx > SaveTemplate Component > should navigate back when the back button is clicked: OCR/frontend/src/contexts/AnnotationContext.tsx#L76
Error: useAnnotationContext must be used within an AnnotationProvider ❯ Module.useAnnotationContext src/contexts/AnnotationContext.tsx:76:11 ❯ SaveTemplate src/pages/SaveTemplate.tsx:12:84 ❯ 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 ❯ recoverFromConcurrentError node_modules/react-dom/cjs/react-dom.development.js:25889:20
src/pages/SaveTemplate.test.tsx > SaveTemplate Component > should navigate to the home page when the form is submitted: OCR/frontend/src/contexts/AnnotationContext.tsx#L76
Error: useAnnotationContext must be used within an AnnotationProvider ❯ Module.useAnnotationContext src/contexts/AnnotationContext.tsx:76:11 ❯ SaveTemplate src/pages/SaveTemplate.tsx:12:84 ❯ 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 ❯ recoverFromConcurrentError node_modules/react-dom/cjs/react-dom.development.js:25889:20
vitests
Process completed with exit code 1.