Dashboard › cli › Distillation
fee2ed62-a46e-4eca-805d-3c4665f9312c["lore_tm_v1_6ayMVyc5Fo8gIwNxhOnCRRDQXiMV5XqQDZ39NkHxm20","lore_tm_v1_XRkP2-N3_lyIwirfL7ayqmZVNWmCIY-GxyXlimQoB-U"]
packages/cli/test/lib/delta-upgrade.mocked.test.ts stable-delta fixtures so release tags use Toolkit package prefixes: "cli@0.14.0" and "cli@0.13.0" replace "0.14.0" and "0.13.0".packages/cli/test/lib/delta-upgrade.mocked.test.ts from api.github.com/repos/getsentry/cli/releases to api.github.com/repos/getsentry/toolkit/releases, while retaining the per_page= assertion.vi to the vitest imports and added UPGRADE_SOURCES alongside getPlatformBinaryName from ../../src/lib/binary.js in packages/cli/test/lib/delta-upgrade.mocked.test.ts.useTestConfigDir from ../helpers.js in packages/cli/test/lib/delta-upgrade.mocked.test.ts.const LEGACY_UPGRADE_SOURCE = UPGRADE_SOURCES[1]; and an initialization guard throwing new Error("Legacy upgrade source is not configured") when that source is absent.packages/cli/test/lib/delta-upgrade.mocked.test.ts that returns { ...actual, CLI_VERSION: version }, enabling tests to substitute a selected CLI version.packages/cli/test/lib/release-notes.test.ts from 297 to 509 shown lines, adding source-affinity coverage for fetchChangelog.packages/cli/test/lib/release-notes.test.ts imports to include afterEach and beforeEach from vitest, 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.fetchChangelog source affinity test suite with toolkitSource = UPGRADE_SOURCES[0]! and legacySource = UPGRADE_SOURCES[1]!; the suite saves globalThis.fetch in beforeEach and restores it in afterEach."cli@0.21.0" contributes changelog content, while "mcp@99.0.0" and unprefixed "0.21.0" releases are excluded; the sole request must be https://api.github.com/repos/getsentry/toolkit/releases?per_page=30, with no request containing getsentry/cli.fetchRecentReleases(undefined, toolkitSource) supplies normalized prefetchedReleases to fetchChangelog; a "cli@0.21.0" entry must produce one changelog item containing "Reuse prefetched releases", even when source is a cloned object { ...toolkitSource }."cli@0.21.0" contributes "Raw prefetched release", "mcp@0.21.0" is excluded, and requestedUrls remains []."0.21.0" and return null."cli@0.21.0-dev.1" to be excluded while stable "cli@0.21.0" remains and contributes "Stable release"."0.21.0" and exactly one request to https://api.github.com/repos/getsentry/cli/releases?per_page=30."0.21.0-dev.100" through "0.21.0-dev.200"; the mocked commit message is "fix: keep nightly stages affine", the changelog must contain one item, and the sole request must be https://api.github.com/repos/getsentry/toolkit/commits?sha=main&since=1970-01-01T00:01:41.000Z&until=1970-01-01T00:03:21.000Z&per_page=100, with no request containing getsentry/cli.