Skip to content

test(errors): cover HttpError and correlation ids through the real error handler - #348

Open
meerpasha59-bit wants to merge 1 commit into
Miracle656:mainfrom
meerpasha59-bit:test/324-error-helper
Open

meerpasha59-bit wants to merge 1 commit into
Miracle656:mainfrom
meerpasha59-bit:test/324-error-helper

Conversation

@meerpasha59-bit

Copy link
Copy Markdown

Closes #324

Tests only; no production code changed. Covers HttpError status/message passthrough via the real API handler, masking of non-HttpError errors, and unique correlation ids appearing in both the response and logs. src/utils/errors.ts coverage: 100% statements/branches/functions/lines. Testing: npx jest --runInBand src/tests/errorHandler.test.ts (11 passed); npx tsc --noEmit -p tsconfig.test.json clean.

This branch has not been deployed

No deployments
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.

The error helper has no tested behaviour

1 participant