Remove the dead errorHandlingTest.ts file from src/utils
Labels / Complexity: Frontend · Trivial — Trivial
Summary
src/utils/errorHandlingTest.ts is a 'use client' file that exercises the error-handling system (logger, errorMonitoring, ErrorCategory, ErrorSeverity) but is never imported — a workspace grep for errorHandlingTest / testErrorHandling returns only the file itself and its own content. It ships in the production bundle ('use client'), adding dead code and confusion: a contributor reading src/utils/ sees a "Test file to verify the new error handling implementation" and reasonably assumes the system is exercised in CI, when nothing runs it.
Proposal
- Delete
src/utils/errorHandlingTest.ts.
- If any of its assertions are valuable, move them into a real
*.test.ts under src/utils/__tests__/.
Acceptance criteria
src/utils/errorHandlingTest.ts is gone; no import of it remains.
npm run build and npm test pass.
Getting started
Files: src/utils/errorHandlingTest.ts. Verify with npm run build and npm test. Pattern-match src/utils/__tests__/earlyErrorSuppression.test.ts for where real tests live.
Remove the dead errorHandlingTest.ts file from src/utils
Labels / Complexity: Frontend · Trivial — Trivial
Summary
src/utils/errorHandlingTest.tsis a'use client'file that exercises the error-handling system (logger,errorMonitoring,ErrorCategory,ErrorSeverity) but is never imported — a workspace grep forerrorHandlingTest/testErrorHandlingreturns only the file itself and its own content. It ships in the production bundle ('use client'), adding dead code and confusion: a contributor readingsrc/utils/sees a "Test file to verify the new error handling implementation" and reasonably assumes the system is exercised in CI, when nothing runs it.Proposal
src/utils/errorHandlingTest.ts.*.test.tsundersrc/utils/__tests__/.Acceptance criteria
src/utils/errorHandlingTest.tsis gone; no import of it remains.npm run buildandnpm testpass.Getting started
Files:
src/utils/errorHandlingTest.ts. Verify withnpm run buildandnpm test. Pattern-matchsrc/utils/__tests__/earlyErrorSuppression.test.tsfor where real tests live.