Skip to content

test(coverage): increase branch coverage for errors and controllers#12

Merged
john-dalmolin merged 2 commits intomainfrom
test/branch-coverage-errors-controllers
Feb 11, 2026
Merged

test(coverage): increase branch coverage for errors and controllers#12
john-dalmolin merged 2 commits intomainfrom
test/branch-coverage-errors-controllers

Conversation

@john-dalmolin
Copy link
Owner

Resumo

  • adiciona testes unitários para authController e healthController
  • adiciona testes para classes de erro customizadas
  • adiciona testes para errorHandler (AppError e erro genérico)
  • aumenta cobertura de branch e reduz lacunas de caminhos de erro

Resultado de cobertura

  • branch global: 74.13% -> 83.62%
  • controllers: 69.23% -> 100%
  • errors: 0% -> 80%
  • middleware/errorHandler: 33.33% -> 83.33%

Validação

  • npm run lint
  • npm run test:coverage:jest

@john-dalmolin john-dalmolin merged commit 624b69f into main Feb 11, 2026
1 check passed
@john-dalmolin john-dalmolin deleted the test/branch-coverage-errors-controllers branch February 11, 2026 14:22
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.

1 participant