Skip to content

[codex] test(error-boundary): cover fallback and recovery#68

Draft
prettyboyvic wants to merge 2 commits into
Grainlify:mainfrom
prettyboyvic:test/error-boundary
Draft

[codex] test(error-boundary): cover fallback and recovery#68
prettyboyvic wants to merge 2 commits into
Grainlify:mainfrom
prettyboyvic:test/error-boundary

Conversation

@prettyboyvic

@prettyboyvic prettyboyvic commented Jun 19, 2026

Copy link
Copy Markdown

Summary

  • add component tests for fallback rendering, light/dark themes, guarded logging, reset recovery, home navigation, and production-safe error details
  • route caught errors through the shared logger instead of raw console.error
  • reset the boundary without forcing a full page reload
  • keep dependency tests excluded from Vitest collection

Security notes

  • production fallback UI does not expose error messages or stack context
  • caught errors are reported through the guarded application logger
  • recovery clears only boundary state and re-renders the current child tree

Validation

  • targeted ErrorBoundary tests — 6 passed
  • targeted coverage — 100% statements, branches, functions, and lines
  • full suite — 16 files / 198 tests passed
  • Prettier check — passed
  • ESLint — 0 errors; one existing Fast Refresh warning on the class-component export shape
  • git diff --check — passed

Closes #38

@prettyboyvic prettyboyvic changed the title [codex] test ErrorBoundary fallback recovery [codex] test(error-boundary): cover fallback and recovery Jun 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add component tests for ErrorBoundary themed fallback and recovery reset

1 participant