feat(190): Update for local storage persistance in templates form #40
frontend-tests.yaml
on: pull_request
vitests
17s
playwright-tests
1m 3s
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.
|