test(cli): raise line and branch coverage of commands/upgrade.ts (install and update area, ~27%)
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
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
🎃 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:coverageincli/shows a higher line and branch number for the area. Raisecli/coverage-baseline.jsonin the same PR only if the number actually moved.- Follows the existing
__tests__patterns and the helpers incli/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
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di tdk-landscape/tdk-cli-core
-
bug ci-cd packaging rank: 5 kyu
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
tdk-landscape/tdk-cli-core#1658 ·
-
area: cli area: tests contributing coverage difficulty: easy dx good first issue hacktoberfest help wanted island: Test Atoll testing
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
tdk-landscape/tdk-cli-core#1592 ·
-
area: cli area: tests contributing coverage difficulty: easy dx good first issue help wanted island: Test Atoll testing
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
tdk-landscape/tdk-cli-core#1578 ·
-
area: cli area: tests coverage difficulty: easy dx good first issue help wanted island: Test Atoll testing
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
tdk-landscape/tdk-cli-core#1577 ·
-
area: cli area: tests contributing coverage difficulty: easy dx good first issue help wanted island: Test Atoll testing
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
tdk-landscape/tdk-cli-core#1574 ·
Tutte le issue di tdk-landscape/tdk-cli-core
Issue simili
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
ericcornelissen/depreman#591 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
freedomofpress/dangerzone#1594 ·
I maintainer di solito rispondono entro 3 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
kunchenguid/firstmate#7604 ·
I maintainer di solito rispondono entro 1 giorno
-
bug P3
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
mpyw/declscope#262 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
anomalyco/opencode#57698 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno