Dashboard › cli › Distillation
5dc7cc17-bffb-481c-97d1-3a228a778cd5["lore_tm_v1_zDVZ4As8FhBn7HKFK0rPGPkCyt7BjPOf-E9YgSD2TjU","lore_tm_v1_0X1xp_l1jhzJywFgMf65FJ3WYjil22DdGBx_Jwt_D5c"]
packages/cli/test/commands/cli.test.ts updates upgrade-command GitHub mocks from a single release object { tag_name: "v0.0.0-dev" } to a releases array [{ tag_name: "cli@0.0.0-dev" }], reflecting Toolkitβs package-prefixed release tags.packages/cli/test/commands/cli.test.ts, pinned-version release-tag mocks now recognize URL-encoded cli%40${version} and return { tag_name: \cli@${version}` }`; the former unprefixed-tag behavior was removed.mockNightlyVersion(version) in packages/cli/test/commands/cli.test.ts now treats https://api.github.com/repos/getsentry/toolkit as available with HTTP 200 before handling the GHCR token exchange and /manifests/nightly request.packages/cli/test/commands/cli.test.ts retains a test that invokes sentry cli upgrade --check --method brew.packages/cli/test/commands/cli.test.ts retains coverage that a user-specified v${CLI_VERSION} has its v prefix stripped and matches the current version when upgrading with --method curl.packages/cli/test/commands/cli.test.ts verify the downloaded binary is spawned with arguments containing cli, setup, --quiet, --method, and curl.packages/cli/test/commands/cli.test.ts includes running the new Homebrew binary while keeping JSON upgrades non-interactive; its fixture uses executable path /opt/homebrew/Cellar/sentry/old/bin/sentry.packages/cli/test/commands/cli.test.ts includes a test named "downloads nightly binary from GHCR for nightly channel" using gzipped fake ELF bytes new Uint8Array([0x7f, 0x45, 0x4c, 0x46])..download, .old, and .lock, then calls clearInstallInfo().packages/cli/test/lib/upgrade.test.ts now imports UPGRADE_SOURCES from ../../src/lib/binary.js and resolveExistingUpgradeVersion from ../../src/lib/upgrade.js.fetchLatestFromGitHub tests in packages/cli/test/lib/upgrade.test.ts include malformed/non-CLI release fixtures such as { tag_name: "cli@not-a-version" } and { tag_name: "mcp@9.0.0" }, exercising filtering of release tags.fetchLatestVersion tests for both "curl" and "brew" now mock GitHub with release arrays containing package-prefixed tags such as [{ tag_name: "cli@v2.0.0" }] rather than a single { tag_name: "v2.0.0" } object.versionExists coverage in packages/cli/test/lib/upgrade.test.ts now tests source fallback for curl upgrades and separately asserts that an explicitly selected source does not fall back to another source.versionExists tests can pass an explicit source as versionExists("curl", "0.14.0-dev.1772661724", UPGRADE_SOURCES[0]).packages/cli/test/lib/upgrade.test.ts now mock the Toolkit repository probe at https://api.github.com/repos/getsentry/toolkit with HTTP 200 before token and manifest requests.packages/cli/test/lib/upgrade.test.ts adds coverage that a Toolkit nightly manifest HTTP 404 falls back to the legacy source.packages/cli/test/lib/upgrade.test.ts adds coverage that GHCR HTTP 403 is not classified as a missing nightly version and that fetchLatestNightlyVersion() rejects with an error containing "HTTP 403" rather than falling back as if the version were absent.buildKnownCurlPaths("/home/user", {}) tests require known directories /home/user/.local/bin and /home/user/.sentry/bin to have a trailing platform separator, and assert every returned path ends with sep.