Skip to content

Add missing test coverage for GlobalExceptionFilter Prisma error mapping and problem details response #925

Open

Description

@nonsobethel0-dev

Summary

GlobalExceptionFilter maps Prisma errors to safe HTTP responses and builds RFC 7807 problem details. Tests should verify:

  • Each Prisma error code maps to the correct status
  • Connection strings are scrubbed from error messages
  • Validation errors are extracted from class-validator responses
  • retryAfter is extracted from 429 responses
  • BigInt values are serialized in error responses

Severity

Low

Suggested Fix

Add unit tests with mocked ArgumentsHost and Prisma errors.

Activity

  1. added
    enhancement
    on Nov 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions