Dashboard › cli › Distillation
cfa023e4-20a0-4079-904d-5b9b91f61968["lore_tm_v1_8iW_DnQ_BasFuA4dFeghmS3-SyAxnGwpspW-JH3aVyc","lore_tm_v1_5p3qR3_p883rkZJTlDahc9UI_Mc0h0oFDrPzPRKVjlQ","lore_tm_v1_7NzhFfdWQOQtIPCtUi_9vm5oeqirSR34oIrlPXM0-_I"]
packages/cli/test/lib/release-notes.test.ts expanding Vitest imports to afterEach, beforeEach, describe, expect, and test; importing UPGRADE_SOURCES from ../../src/lib/binary.js, fetchRecentReleases and GitHubRelease from ../../src/lib/delta-upgrade.js, fetchChangelog from ../../src/lib/release-notes.js, and mockFetch from ../helpers.js.packages/cli/test/lib/release-notes.test.ts adding a describe("fetchChangelog source affinity", ...) suite with mocked fetch behavior and release-body fixtures including "### Bug Fixes π\n\n- Unprefixed Toolkit release" and "### Bug Fixes π\n\n- Raw prefetched release"; visible test data includes toVersion: "0.21.0" and channel: "stable".checks for update when never checked before: when getVersionCheckInfo().lastChecked is initially null, shouldCheckForUpdate returns true and initiates the background check.mockFetch, collecting requestedUrls, handling HTTP 404, calling maybeCheckForUpdateInBackground(), waiting with vi.waitFor(), and including a "99.0.0" version fixture.e565b1afb39a341605adc883de8812851de7d581 containing extensive nightly and upgrade behavior tests in packages/cli/test/commands/cli/upgrade.test.ts, plus an HTTP 404 mock at packages/cli/test/commands/cli.test.ts:217.packages/cli/test/commands/cli/upgrade.test.ts replacing the old GitHub version.json nightly mock with GHCR token-exchange and OCI-manifest mocks; requests containing /manifests/nightly return manifest annotations containing version, while unmatched requests return HTTP 404.packages/cli/test/commands/cli/upgrade.test.ts: for version 88.88.88, Toolkit is probed first at https://api.github.com/repos/getsentry/toolkit/releases/tags/cli%4088.88.88 and returns 404; legacy CLI then succeeds at https://api.github.com/repos/getsentry/cli/releases/tags/88.88.88; changelog releases are fetched only from https://api.github.com/repos/getsentry/cli/releases?per_page=30, not Toolkit, and no request may contain per_page=100.99.99.99 must produce "Run 'sentry cli upgrade' to update."; a user-specified 88.88.88 target must produce "Run 'sentry cli upgrade 88.88.88' to update."; a resolved stable target test expects output containing "Latest:" and "1.0.0".packages/cli/test/commands/cli/upgrade.test.ts: requesting ["cli", "upgrade", "--method", "brew", "1.2.3"] must immediately report "Homebrew does not support installing a specific version" before any network call; check mode with ["cli", "upgrade", "--check", "--method", "brew"] must show "Method: brew", version 99.99.99, and "Run 'sentry cli upgrade' to update.".getsentry/toolkit/releases?per_page=100 probe returns 404, legacy getsentry/cli/releases/latest returns { tag_name: "99.99.99" }, and the changelog must be fetched from https://api.github.com/repos/getsentry/cli/releases?per_page=30, never https://api.github.com/repos/getsentry/toolkit/releases?per_page=30.getsentry/toolkit/releases?per_page=100 returns [{ tag_name: "cli@99.99.99" }], a requested 0.0.1 receives HTTP 404, and ["cli", "upgrade", "--method", "curl", "0.0.1"] must report "Version 0.0.1 not found"; a separate test verifies stripping a v prefix from a user-specified version."0.0.0-dev.1740000000" and command ["cli", "upgrade", "--check", "--method", "curl", "nightly"]; positional "nightly" switches the channel to nightly, fetches the latest version from GHCR, displays "nightly"/"Channel: nightly" and the resolved version, and shows an upgrade hint when it differs from CLI_VERSION "0.0.0-dev"."nightly" persists getReleaseChannel() as "nightly", while positional "stable" resets a previously configured setReleaseChannel("nightly") back to stable./manifests/nightly: one test downloads the nightly binary for ["cli", "upgrade", "--method", "curl", "nightly"] and uses manifest version "0.99.0-dev.1234567890"; another migrates an npm installation to a standalone binary for a pinned nightly and follows an HTTP 307 redirect to https://blob.example.com/nightly.gz.packages/cli/test/commands/cli/upgrade.test.ts retaining process-spawn error coverage with new Error("EBUSY: resource busy or locked, uv_spawn").