Dashboard › cli › Distillation
06fdffc1-2843-4498-93e8-d9611e6cc716["lore_tm_v1_22J2fGOQST83jpZ5Nru56jSY6a8nq0ROaZakxzg3RJ0"]
UPGRADE_SOURCES import from ../../src/lib/binary.js and GhcrManifestHttpError import from ../../src/lib/ghcr.js in packages/cli/test/lib/ghcr.test.ts.packages/cli/test/lib/ghcr.test.ts test verifying getAnonymousToken(UPGRADE_SOURCES[0]) requests the selected source’s GHCR scope repository:getsentry/toolkit:pull and resolves to token "toolkit-token".getAnonymousToken(undefined, controller.signal): aborting via AbortController must propagate an error with name: "AbortError" and issue exactly 1 request without retrying.TypeError("fetch failed") to become UpgradeError, including messages Failed to fetch manifest for tag "nightly": fetch failed and Failed to connect to GHCR: fetch failed.listTags("token") test expects exactly ["nightly", "patch-0.13.0", "patch-0.14.0"].packages/cli/test/lib/version-check.test.ts setup saves and clears process.env.SENTRY_CLI_NO_UPDATE_CHECK, preserves globalThis.fetch, and installs a mocked GitHub response { tag_name: "v0.0.0-dev" } to silence background-fetch warnings."checks for update when never checked before"; with no prior check, getVersionCheckInfo().lastChecked must be null and shouldCheckForUpdate should initiate the background check.packages/cli/test/lib/version-check.test.ts test named "passes the Toolkit source from stable discovery to patch prefetch without legacy access", using const toolkitSource = UPGRADE_SOURCES[0]!, tracking requestedUrls, matching https://api.github.com/repos/getsentry/toolkit, and handling URLs ending in /v2/getsentry/toolkit/manifests/nightly.