Dashboard › cli › Distillation
a8690dee-1ee6-49c6-99a9-08d46ab1abac["lore_tm_v1_MIeDy_ptniprMfZzwoj-DAUBW_pMgP-APZCsOlvGkno","lore_tm_v1_qXxZQ5hfpZFSL3eGOP_NuPCpwgJikIEayyQa-KJql0U"]
packages/cli/test/commands/cli.test.ts updated upgrade-command GitHub mocks from single release objects such as { tag_name: "v99.0.0" } to Toolkit release-list responses using product-prefixed tags such as [{ tag_name: "cli@99.0.0" }]."shows installation info with specified method" now invokes func.call(context, { check: true, method: "curl", json: true }) and expects UpgradeResult.action === "checked" with method === "curl", replacing the prior non-check invocation and "up-to-date" expectation."check mode shows update available" mocks [{ tag_name: "cli@99.0.0" }], expects action === "checked", targetVersion === "99.0.0", and warning "Run 'sentry cli upgrade' to update."."check mode with version shows versioned command" distinguishes the /releases/tags/cli%402.0.0 request, returns { tag_name: "cli@2.0.0" } for that URL and [{ tag_name: "cli@99.0.0" }] otherwise, then expects warning "Run 'sentry cli upgrade 2.0.0' to update."."check mode compares the current version with a stable target" now expects currentVersion === "0.0.0-dev" and targetVersion === "1.0.0" from [{ tag_name: "cli@1.0.0" }], replacing the former assertion that current and target versions matched with no warning."999.0.0" now returns HTTP 404 for every fetch, still expects "Version 999.0.0 not found", and additionally asserts exactly 2 fetch calls.packages/cli/test/commands/cli/upgrade.test.ts added import setVersionCheckInfo from ../../../src/lib/db/version-check.js to seed cached version-check metadata in upgrade tests."Using cached target: 88.88.88"."never uses the cached target after %s"."99.99.99" to "88.88.88".["--channel", "stable"] for the stable-channel case.requests equals [], verifying the covered path performs no network requests.