Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

tsx 4.23.15 drops function coverage below the gate (esbuild-injected helper)

Aperta
#130 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript

Direzione di ricerca

Start with the quality job and the coverage configuration, then run pnpm test:coverage with tsx 4.23.15 and inspect the lcov entries for anonymous_0 in the four named files. Check tsx and esbuild transform options or upstream fixes, and compare any coverage exclusion or alternate transform against real function coverage. Done means the latest tsx passes pnpm test:coverage with the gate unchanged and the pin and Dependabot ignore entry removed.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

testing

Problem

Bumping tsx from 4.23.7 → 4.23.15 (Dependabot group PR #128) fails the quality job's coverage gate even though all 50 tests pass:

# Error: 85.19% function coverage does not meet threshold of 95%.
#   api-utils.ts     |  97.44 |    86.67 |   85.71 | 25
#   booking-dates.ts | 100.00 |    94.12 |   90.00 |
#   email-tokens.ts  | 100.00 |    92.86 |   80.00 |
#   slug.ts          | 100.00 |    90.00 |   80.00 |

main (tsx 4.23.7) reports 100% function coverage on the same tests.

Diagnosis

  • Reproduced locally on the PR head; reverting only tsx to 4.23.7 restores 100%.
  • tsx 4.23.15 ships esbuild 0.28. An lcov report shows exactly one uncovered function per file, named anonymous_0 — a transform-injected helper, not application code. All real functions remain covered.
  • So this is instrumentation noise, not a coverage regression. Lowering the threshold is not an option (ADR-0011).

Interim

tsx is held at 4.23.7 in #128 and Dependabot is told to ignore newer tsx versions until this is resolved.

To resolve

Pick one, then remove the pin + the ignore entry in .github/dependabot.yml:

  1. Find a tsx/esbuild option or upstream fix that stops the helper being counted, or
  2. Exclude the injected helper from coverage without excluding real code, or
  3. Run coverage on a transform that doesn't inject it.

Acceptance: pnpm test:coverage passes on the latest tsx with the gate unchanged.

Lingua principale
TypeScript
Stelle
3
Fork
6
Merge medio
4h 36m
PR unite (30g)
56

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di grasshopper-protocol/grsshppr

Tutte le issue di grasshopper-protocol/grsshppr

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.