Dashboard › cli › Distillation
1a229529-5678-4dc3-9917-adf630b5f2c2["lore_tm_v1_UzDzz1aLM8ArjZYJ8AuycpRsvm3Mn7f42j2Icg5EWco"]
packages/cli/test/commands/cli.test.ts covering the upgraded source-aware GitHub release behavior, nightly channel behavior, version validation, installation methods, command execution, and error handling.upgradeCommand.func test mock from a single GitHub release object { tag_name: "v0.0.0-dev" } to a release-list response [{ tag_name: "cli@1.0.0" }]."unknown installation method" CLI-command case is skipped because detectInstallationMethod() runs real shell commands such as npm list, which can be slow or flaky in CI; unknown-method handling is instead covered indirectly by lib/upgrade.test.ts.99.99.99 to 88.88.88.const requests: string[] = []; in an upgrade-command test.getsentry/toolkit/releases?per_page=100 and returns [{ tag_name: "cli@99.99.99" }]; the requested nonexistent version 0.0.1 still receives HTTP 404 "Not Found".sentry cli upgrade --check --method curl nightly and asserting the output contains "Channel: nightly"."0.0.0-dev.1" and the message "Run 'sentry cli upgrade' to update.", replacing expectations for CLI_VERSION and "You are already on the target version".child_process.spawn, capture each { cmd, args }, and normally return fakeChildProcess(0); a failure test overrides this with fakeChildProcess(1).sentry cli upgrade --method curl --json.sentry-windows-x64.exe.gz and blob URL /blobs/sha256:abc456.