Dashboard › cli › Distillation
59c841c0-6564-4031-bcd2-fc3ae58ff67c["lore_tm_v1_j1s7ht9Q3CP4nIpbdX4MV9-Xr7NXtbZsnNXBfE9T14s"]
Date: Sep 10, 2026
packages/cli/test/lib/upgrade.test.ts expanded upgrade coverage and now imports UPGRADE_SOURCES from ../../src/lib/binary.js and resolveExistingUpgradeVersion from ../../src/lib/upgrade.js.fetchLatestFromGitHub() pagination coverage tracks request counts, includes product-mismatched release tags such as mcp@9.0.${index}, expects a 2-request pagination flow, and exercises a GitHub Link header pointing to https://api.github.com/repositories/1114546946/releases?per_page=100&page=2."GitHub returned an invalid release pagination URL", "GitHub returned invalid release metadata", and "No version found in GitHub release"; additional paths include HTTP 404 and network TypeError("fetch failed").test.each(...) to reject invalid versions before network access, including "1.2.3-beta.1".resolveExistingUpgradeVersion() coverage includes package-manager inputs such as "bun" and an error path for resolveExistingUpgradeVersion("1.0.0").versionExists("curl", "1.0.0") network-failure coverage expects UpgradeError containing "Failed to connect to GitHub"; another mocked path throws Error("HTTP 404"), while HTTP 500 is also exercised.reason.repository:getsentry/toolkit:pull, returns token "toolkit-token", handles manifest metadata including layers: [], and retains a test that returns a version from a GHCR manifest annotation.