The error boundary components (web/components/error/ErrorBoundary.tsx) have no tests.
What to do:
- Read
ErrorBoundary.tsx to understand the component API
- Create
web/components/error/__tests__/ErrorBoundary.test.tsx
- Test cases to cover:
- Renders children when no error
- Shows fallback UI when child throws
- Custom fallback prop is used
- onError callback is called
- Reset button clears the error state
- StreamingErrorBoundary renders with retry button
- Run:
pnpm -C web run test -- --run components/error
Skills needed: React testing, Vitest + React Testing Library
Reference: See existing component tests at web/components/agent/__tests__/ConversationView.empty-state.test.tsx
Estimated time: 2-3 hours
The error boundary components (
web/components/error/ErrorBoundary.tsx) have no tests.What to do:
ErrorBoundary.tsxto understand the component APIweb/components/error/__tests__/ErrorBoundary.test.tsxpnpm -C web run test -- --run components/errorSkills needed: React testing, Vitest + React Testing Library
Reference: See existing component tests at
web/components/agent/__tests__/ConversationView.empty-state.test.tsxEstimated time: 2-3 hours