Skip to content

test: cover common logging example controller#1344

Open
brentthomas248 wants to merge 1 commit into
MyFanss:mainfrom
brentthomas248:codex/grantfox-1086
Open

test: cover common logging example controller#1344
brentthomas248 wants to merge 1 commit into
MyFanss:mainfrom
brentthomas248:codex/grantfox-1086

Conversation

@brentthomas248

Copy link
Copy Markdown

Summary

  • adds controller unit coverage for the common logging example controller
  • verifies the happy path logs through mocked LoggerService and RequestContextService dependencies
  • verifies the error path records structured error details before surfacing the thrown error

Closes #1086

Verification

  • npm test --prefix backend -- example.controller.spec.ts
  • npm test --prefix backend -- logger.service.spec.ts example.controller.spec.ts
  • git diff --check HEAD~1..HEAD -- backend/src/common/examples/example.controller.spec.ts
  • cd backend && npx --no-install eslint src/common/examples/example.controller.spec.ts

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.

Backend Common logging: Add controller unit tests with mocked service

1 participant