Break down complex functions in src/components/error/RouteErrorBoundary.tsx into smaller, testable helpers. Add unit tests and maintain readability.
Acceptance Criteria
- Given the current state of the codebase, when this issue is implemented, then the described behavior is reproducible and covered by automated tests.
- The feature/bugfix includes unit and/or integration tests demonstrating expected behavior and edge cases.
- No new console.log or debug-only statements remain in production code.
- Documentation updated: README or relevant docs/stories updated with usage and examples.
- Peer-reviewed and merged to
main with passing CI.
Definition of Done
- Code has tests and passes existing test suite.
- Types are correct or improved if applicable.
- Performance characteristics are acceptable (no major regressions).
- Accessibility considerations reviewed if UI changes.
Break down complex functions in
src/components/error/RouteErrorBoundary.tsxinto smaller, testable helpers. Add unit tests and maintain readability.Acceptance Criteria
mainwith passing CI.Definition of Done