Skip to content

test: cubrir formatInt/formatDateShort + tooling de cobertura#34

Merged
aitorevi merged 1 commit into
mainfrom
chore/test-audit-fixes
Jun 2, 2026
Merged

test: cubrir formatInt/formatDateShort + tooling de cobertura#34
aitorevi merged 1 commit into
mainfrom
chore/test-audit-fixes

Conversation

@aitorevi

@aitorevi aitorevi commented Jun 2, 2026

Copy link
Copy Markdown
Owner

Fixes de la auditoría de tests.

Cambios

  • format.test.ts: tests para formatInt y formatDateShort (incluido el caso de entrada no-fecha → devuelve el raw). Eran las dos funciones añadidas en el rediseño que quedaban sin cubrir.
  • Tooling de cobertura:
    • Frontend: @vitest/coverage-v8 + config coverage en vitest.config.ts + script test:coverage. coverage/ ignorado en eslint y git.
    • Backend: coverlet.collector en el proyecto de tests → habilita dotnet test --collect:"XPlat Code Coverage".
  • CLAUDE.md: comandos de cobertura documentados.

Estado de tests

  • Frontend 42 · Backend 78 (todos verdes).
  • Cobertura frontend medida: ~92% statements (lib y componentes altos; page/error/loading 0%, esperado).

Verificación

  • npm run test:run ✅ · npm run test:coverage ✅ · lint ✅ · build ✅ · dotnet test ✅ 78/78.

🤖 Generated with Claude Code

Fixes de la auditoría de tests:
- format.test.ts: tests para formatInt y formatDateShort (incl. el caso de
  entrada no-fecha) — antes sin cubrir.
- Frontend: @vitest/coverage-v8 + config de coverage en vitest.config.ts +
  script test:coverage; coverage/ ignorado en eslint y git.
- Backend: coverlet.collector en el proyecto de tests (habilita
  dotnet test --collect 'XPlat Code Coverage').
- CLAUDE.md: comandos de cobertura documentados.

Cobertura frontend medida: ~92% statements. Tests: frontend 42, backend 78.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@vercel

vercel Bot commented Jun 2, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
connect-analyzer Ready Ready Preview, Comment Jun 2, 2026 8:20pm

@aitorevi aitorevi merged commit 4f2d54e into main Jun 2, 2026
4 checks passed
@aitorevi aitorevi deleted the chore/test-audit-fixes branch June 2, 2026 20:21
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