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

test(cli): raise line and branch coverage of commands/upgrade.ts (install and update area, ~27%)

Chiusa
#1,663 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

@Rohith-Saran ci sta già lavorando.

Dal 19/10/2026.

  • #1701 di @Rohith-Saran — integrata

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
72/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
bun, typescript
Ambito
cli, testing

Direzione di ricerca

Read cli/src/commands/upgrade.ts alongside cli/src/commands/__tests__/upgrade.test.ts, then check the existing helpers in cli/src/test-support. Add mocked unit tests for the error, no-op, and already-latest branches without network access or real installs. Run bun run test:coverage from cli/; done means line and branch coverage for the area rises, with the baseline updated only if the measured number moved.

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

Descrizione

area: cli area: tests coverage difficulty: medium good first issue hacktoberfest help wanted testing

TDK Hacktoberfest map

🎃 Part of Hacktoberfest. Filled dot = merged, hollow dot = open. Click the map for all open hacktoberfest issues.

Part of epic #1551 (unit test coverage). The install and update area is the lowest in cli/coverage-baseline.json (27.46% lines, 20.35% branches). Start with cli/src/commands/upgrade.ts and the existing cli/src/commands/__tests__/upgrade.test.ts.

Done when

  • New unit tests cover the error, no-op and already-latest branches in upgrade.ts, using mocks (no network, no real package installs).
  • bun run test:coverage in cli/ shows a higher line and branch number for the area. Raise cli/coverage-baseline.json in the same PR only if the number actually moved.
  • Follows the existing __tests__ patterns and the helpers in cli/src/test-support.

Sign-off: git commit -s.

Lingua principale
Starlark
Stelle
14
Fork
3
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

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 tdk-landscape/tdk-cli-core

Tutte le issue di tdk-landscape/tdk-cli-core

Issue simili

Altre issue su CLI

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.