Skip to content

test: add error handler coverage (#1266)#1324

Open
mittalsonal wants to merge 1 commit into
Priyanshu-byte-coder:mainfrom
mittalsonal:test-error-handler-1266
Open

test: add error handler coverage (#1266)#1324
mittalsonal wants to merge 1 commit into
Priyanshu-byte-coder:mainfrom
mittalsonal:test-error-handler-1266

Conversation

@mittalsonal
Copy link
Copy Markdown

Description\n- add focused Vitest coverage for logError in development mode\n- verify production mode serializes context without exposing stack traces\n- keep the change scoped to a new est/error-handler.test.ts file only\n\n## Related Issue\n- Closes #1266\n\n## Checklist\n- [x] test-only change\n- [x] git diff --check passes\n- [x] follows existing Vitest style in the repo\n\n## Pillar\n- Open Source\n

@vercel
Copy link
Copy Markdown

vercel Bot commented May 27, 2026

@mittalsonal is attempting to deploy a commit to the PRIYANSHU DOSHI's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions github-actions Bot added gssoc26 GSSoC 2026 contribution type:feature GSSoC type bonus: new feature type:testing GSSoC type bonus: tests (+10 pts) labels May 27, 2026
@mittalsonal
Copy link
Copy Markdown
Author

Kind request for GSSoC labels when reviewed: gssoc:approved, one level:* label, and ype:testing if it fits the repo’s scoring rubric. Thanks!

@mittalsonal
Copy link
Copy Markdown
Author

Verification completed locally:

  • git diff --check

Attempted:

  • npx vitest run test/error-handler.test.ts

The targeted Vitest run is currently blocked in this workspace because the repo's local test dependencies are not installed, so vitest.config.ts could not resolve vitest/config here. The change itself is test-only and stays within the repo's existing Vitest pattern.

@github-actions
Copy link
Copy Markdown

GSSoC Label Checklist 🏷️

@Priyanshu-byte-coder — please apply the appropriate labels before merging:

Difficulty (pick one):

  • level:beginner — 20 pts
  • level:intermediate — 35 pts
  • level:advanced — 55 pts
  • level:critical — 80 pts

Quality (optional):

  • quality:clean — ×1.2 multiplier
  • quality:exceptional — ×1.5 multiplier

Validation (required to score):

  • gssoc:approved — counts for points
  • gssoc:invalid / gssoc:spam / gssoc:ai-slop — does not score

Type labels (type:*) are auto-detected from files and title. Review and adjust if needed.
Points formula: (difficulty × quality_multiplier) + type_bonus

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gssoc26 GSSoC 2026 contribution type:feature GSSoC type bonus: new feature type:testing GSSoC type bonus: tests (+10 pts)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test : add unit tests for error-handler.ts middleware

1 participant